Quantcast
Channel: SCN: Message List
Viewing all 8594 articles
Browse latest View live

Re: BAPI / FM for MEK2

$
0
0

Hi Prasenjit,

 

I have written code below : condition record is updated but when I check the record through tcode MEK2, "valid from date" is not getting updated.

 

Is there anything else to be done in the code ??

 

   REPORT  ZGEQ_TEST.

PARAMETERS: p_KBETR type KBETR DEFAULT '99'.
*PARAMETERS: p_KNUMA type KNUMA_AG DEFAULT 'X000009996'.
PARAMETERS: p_datef type sy-datum DEFAULT '20130401'.
PARAMETERS: p_datet type sy-datum DEFAULT '20130731'.
*PARAMETERS: p_kunnr TYPE kunnr DEFAULT '28523272'.
PARAMETERS: p_matnr type matnr DEFAULT 'P7734527'.
PARAMETERS: p_werks type werks DEFAULT '8001'.

START-OF-SELECTION.

DATA:
cr LIKE TABLE OF komv WITH HEADER LINE, " copy_records
nr, "New_Record
key_fields LIKE TABLE OF komg WITH HEADER LINE,
komk LIKE TABLE OF komk WITH HEADER LINE,
komp LIKE TABLE OF komp WITH HEADER LINE,
COPY_RECS_IDOC LIKE TABLE OF KOMV_IDOC WITH HEADER LINE,
i_kona TYPE kona.

**********************************************************

* KOMK/KOMP Fuellen

*Fill KOMK

komk-mandt = '250'.
*komk-vkorg = '1310'.
*komk-vtweg = '01'.
*komk-spart = '01'.
*komk-kunnr = p_kunnr.
komk-kappl = 'M'.
komk-werks = p_werks.
komk-ERDAT = sy-datum.
komp-kposn = '000001'.
komp-matnr = p_matnr.
*komp-KNUMA_AG = p_KNUMA.
komp-kposn = '000001'.

key_fields-mandt  = '250'.
*key_fields-vkorg = '3376'.
*key_fields-kunnr = p_kunnr.
*key_fields-vtweg = '01'.
*key_fields-spart = '01'.
key_fields-matnr p_matnr.

cr-kappl = 'M'.
cr-kschl = 'ZGFB'.
cr-krech = 'C'.
cr-KBETR = p_KBETR.
cr-waers = 'INR'.
cr-kpein = 1.
cr-kmein = 'EA'.
cr-kopos = 01.
cr-kzbzg = 'C'.
*cr-knumh = '0005014306'.
APPEND cr.

i_kona-abtyp = 'C'.
*  i_kona-knuma  =  p_knuma.
*COPY_RECS_IDOC-KNUMA_AG = p_KNUMA.
*append COPY_RECS_IDOC.

CALL FUNCTION 'RV_CONDITION_RESET'.

* --> KOMK/KOMP werden korrekt gef#llt. Funktion i.o.

**********************************************************

CALL FUNCTION 'RV_CONDITION_COPY'
  EXPORTING
    application              = 'M'
    condition_table          = '915'
    condition_type           = 'ZGFB'
    date_from                = p_datef
    date_to                  = p_datet
    enqueue                  = 'X'
    i_komk                   = komk
    i_komp                   = komp
    key_fields               = key_fields
    maintain_mode            = 'B'
*    no_authority_check       = space
    no_field_check           = 'X'
    keep_old_records         = space
*    overlap_confirmed        = 'X'
    i_kona                   = i_kona
*    SELECTION_DATE           = sy-datum
  IMPORTING
    e_komk                   = komk
    e_komp                   = komp
    new_record               = nr
  TABLES
    copy_records             = cr
    COPY_RECS_IDOC           = COPY_RECS_IDOC
  EXCEPTIONS
    enqueue_on_record        = 01
    invalid_application      = 02
    invalid_condition_number = 03
    invalid_condition_type   = 04
    no_authority_ekorg       = 05
    no_authority_kschl       = 06
    no_authority_vkorg       = 07
    no_selection             = 08
    table_not_valid          = 09.

CALL FUNCTION 'RV_CONDITION_SAVE'.
CALL FUNCTION 'RV_CONDITION_RESET'.
commit work.


Master data is coming wrong in sap bw, although in source system it is corect

$
0
0


Hi all,

 

Master data is coming wrong at the PSA level itself. Our source system is CRM which has the correct data but still it is coming wrong at PSA level. I tried reloading the data but was in vain.

 

IDName
XABC
YABC

 

We have two fields-- ID and Name.  For ID X , the Name is ABC(say) and for ID Y the Name should be DEF(say). But for both the IDs X and Y the name is coming as ABC, which is wrong

 

Can you please guide me what to do in this case ?

Re: Database Access Error: Reason while allocating context handle

$
0
0

Hi Kishore,

 

I am afraid I am an ASE guy and don't know anything about BO and its installation requirements.

 

If no BO expertise replies soon then I would advise you log an incident to sort this out.

 

Sorry I can't help more.

 

Andy

Re: User is not unable to see the data

How to cancel goods movement (602 MT) by BAPI?

$
0
0

Hi All.

 

I need to cancel the subj document.

 

The business process is below.

  1. Sale order REN type by BAPI_CUSTOMERRETURN_CREATE
  2. Delivery by  BAPI_OUTB_DELIVERY_CREATE_SLS
  3. Goods movement by WS_DELIVERY_UPDATE_2. In this case is created MM document with 602 movement type

 

The documents chain works right.

But I need to create the reversal chain too. I.e. to cancel these three documents

 

In first step I try to cancel the MM document and hope to create MM document with 601 movement type.

If I do it by VL09 transaction manually, the result is right. But if I try to do it in my Z-program by FM  WS_REVERSE_GOODS_ISSUE, I get the short-dump ITAB_ILLEGAL_ORDER in include FV45VF0C_CATALOGUE_BUILD.

 

The dump position is below

 

*$*$-End:   EHP_CATALOGUE_BUILD_02--------------------------------------------------------------$*$*
* - and delete already existing corresponding entry from X_SDFIELDS
     READ TABLE X_SDFIELDS WITH KEY DELNR = LS_CATALOGUE-DELNR
                                    DELPS = LS_CATALOGUE-DELPS
                                    KFDNA = LS_CATALOGUE-KFDNA
                           BINARY SEARCH TRANSPORTING NO FIELDS.


The X_SDFIELDS table is not sorted and not hashed.

I ask the SAP-support to correct this fragment of code (Binary search in unsorted table), but get answer

The FM WS_REVERSE_GOODS_ISSUE is not released for customers and I should not use it.

The FM is called from VL09 transaction and works right in this case.

 

Please propound a cancellation method for the document of 602 MT.

 

Regards, Anuser.

Re: outgoing Payment Query

$
0
0

Hi Unnikrishnan

 

I think not correct as fewer records.

 

Maybe Nagarajan  can help to rectify this modifed Query below?

 

DECLARE @REPORTBY AS NVARCHAR(1)  

  

/* SELECT FROM [dbo].[OFPR] T0 */    

/* WHERE */ DECLARE @DATEFROM datetime   

SET @DATEFROM =/* T0.F_RefDate */'[%0]'    

  

/* SELECT FROM [dbo].[OFPR] T1 */    

/* WHERE */ DECLARE @DATETO datetime    

SET @DATETO=/* T1.T_RefDate */'[%1]'    

  

/*  

SET @DATEFROM = '20140101'  

SET @DATETO = '20140131'  

*/  

  

  

SELECT   ISNULL(T01.BeginStr,'') + ' ' + CONVERT(NVARCHAR(20), T0.DOCNUM) [DOCUMENT NO.] 

  , T0.DocDate [DATE]

  , T0.CardCode [CARDCODE]

  , T0.CardName [NAME]

  , T0.DocCurr

  , T0.DocTotal [TOTAL incl. GST]

  , T0.DocTotalFC  [TOTAL (FC) incl. GST]

  

  , T0.Comments [Remarks]

  , T0.JrnlMemo

  , T0.CounterRef [Ref 2]

  

  /*BANK CHARGES*/

  , T0.BcgSum [Bank Charges], T0.BcgSumFC [Bank Charges (FC)]

  /*CHECK PAYMENT*/

  , T2.CheckAct, T4.[AcctName], T2.Currency [Check Curr.]

  , T2.CheckSum, T0.CheckSumFC 

  , T2.AcctNum, T2.BankCode

  /*BANK TRANSFER*/

  , T0.TrsfrAcct, T6.[AcctName], T0.TrsfrSum, T0.TrsfrSumFC 

  , T0.CashAcct, T4.[AcctName], T0.CashSum, T0.CashSumFC 

  /*CREDIT CARD/ADJUSTMENT PAYMENT*/

  , T03.CardName [ADJ. TYPE], T3.CreditAcct [ADJ. ACC.], T5.AcctName, T0.CreditSum, T0.CredSumFC

  /*PAYMENT ON ACCOUNT*/

  , T0.PayNoDoc, T0.NoDocSum, T0.NoDocSumFC

  

  , T0.DocRate 

  , T0.DiffCurr 

FROM OVPM T0   

LEFT OUTER JOIN NNM1 T01 ON T0.ObjType = T01.ObjectCode AND T0.Series = T01.Series   

LEFT OUTER JOIN VPM1 T2 ON T0.DocNum = T2.DocNum   

LEFT OUTER JOIN (VPM3 T3 LEFT OUTER JOIN OCRC T03 ON T3.CreditCard = T03.CreditCard)  

ON T0.DocNum = T3.DocNum left join OACT t4 on T2.CheckAct = T4.AcctCode left join OACT t5 on T5.AcctCode = t3.creditacct left join OACT T6 on t0.CashAcct = t6.AcctCode 

WHERE T0.DocType = 'C'  

AND T0.DOCDATE BETWEEN @DATEFROM AND @DATETO   

  

UNION ALL   

  

SELECT   ISNULL(T01.BeginStr,'') + ' ' + CONVERT(NVARCHAR(20), T0.DOCNUM) [DOCUMENT NO.] 

  , T0.DocDate [DATE]

  , T0.CardCode [CARDCODE]

  , T0.CardName [PAY-TO NAME]

  , T0.DocCurr

  , T0.DocTotal [TOTAL incl. GST]

  , T0.DocTotalFC  [TOTAL (FC) incl. GST]

  

  , T0.Comments [Remarks]

  , T0.JrnlMemo

  , T0.CounterRef [Ref 2]

  

  /*BANK CHARGES*/

  , T0.BcgSum [Bank Charges], T0.BcgSumFC [Bank Charges (FC)]

  /*CHECK PAYMENT*/

  , T2.CheckAct, T4.AcctName, T2.Currency [Check Curr.]

  , T2.CheckSum, T0.CheckSumFC 

  , T2.AcctNum, T2.BankCode

  /*BANK TRANSFER*/

  , T0.TrsfrAcct, T6.AcctName, T0.TrsfrSum, T0.TrsfrSumFC 

  , T0.CashAcct, T4.AcctName, T0.CashSum, T0.CashSumFC 

  /*CREDIT CARD/ADJUSTMENT PAYMENT*/

  , T03.CardName  [ADJ. TYPE], T3.CreditAcct [ADJ. ACC.], T5.AcctName, T0.CreditSum, T0.CredSumFC

  /*PAYMENT ON ACCOUNT*/

  , T0.PayNoDoc, T0.NoDocSum, T0.NoDocSumFC

  

  , T0.DocRate 

  , T0.DiffCurr 

FROM OVPM T0   

LEFT OUTER JOIN NNM1 T01 ON T0.ObjType = T01.ObjectCode AND T0.Series = T01.Series   

LEFT OUTER JOIN VPM1 T2 ON T0.DocNum = T2.DocNum   

LEFT OUTER JOIN (VPM3 T3 LEFT OUTER JOIN OCRC T03 ON T3.CreditCard = T03.CreditCard)  

ON T0.DocNum = T3.DocNum left join OACT t4 on T2.CheckAct = T4.AcctCode left join OACT t5 on T5.AcctCode = t3.creditacct left join OACT T6 on t0.CashAcct = t6.AcctCode 

WHERE T0.DocType = 'S'  

AND T0.DOCDATE BETWEEN @DATEFROM AND @DATETO   

  

UNION ALL  

  

SELECT  ISNULL(T01.BeginStr,'') + ' ' + CONVERT(NVARCHAR(20), T0.DOCNUM) [DOCUMENT NO.] 

  , T0.DocDate [DATE]

  , ISNULL(T0.CARDNAME,'') [CARDCODE]

  , T0.Address [NAME]

  , T0.DocCurr 

  , T0.DocTotal [TOTAL incl. GST]

  , T0.DocTotalFC  [TOTAL (FC) incl. GST]

  

  , T0.Comments [Remarks]

  , T0.JrnlMemo

  , T0.CounterRef [Ref 2]

  

  /*BANK CHARGES*/

  , T0.BcgSum [Bank Charges], T0.BcgSumFC [Bank Charges (FC)]

  

  /*CHECK PAYMENT*/

  , T2.CheckAct, T4.AcctName, T2.Currency

  , T2.CheckSum, T0.CheckSumFC 

  , T2.AcctNum, T2.BankCode

  

  /*BANK TRANSFER*/

  , T0.TrsfrAcct, T6.AcctName, T0.TrsfrSum, T0.TrsfrSumFC 

  , T0.CashAcct, T4.AcctName, T0.CashSum, T0.CashSumFC 

  /*CREDIT CARD/ADJUSTMENT PAYMENT*/

  , T03.CardName  [ADJ. TYPE], T3.CreditAcct [ADJ. ACC.], T5.AcctName, T0.CreditSum, T0.CredSumFC

  /*PAYMENT ON ACCOUNT*/

  , T0.PayNoDoc 

  , CASE T0.DOCTYPE WHEN 'A' THEN 0 ELSE T0.NoDocSum END [PMNT ON ACC.]

  , CASE T0.DOCTYPE WHEN 'A' THEN 0 ELSE T0.NoDocSumFC END [PMNT ON ACC. (FC)] 

  

  , T0.DocRate [Payment Rate]

  , T0.DiffCurr 

FROM OVPM T0   

LEFT OUTER JOIN NNM1 T01 ON T0.ObjType = T01.ObjectCode AND T0.Series = T01.Series   

LEFT OUTER JOIN VPM1 T2 ON T0.DocNum = T2.DocNum   

LEFT OUTER JOIN (VPM3 T3 LEFT OUTER JOIN OCRC T03 ON T3.CreditCard = T03.CreditCard)  

ON T0.DocNum = T3.DocNum left join OACT t4 on T2.CheckAct = T4.AcctCode left join OACT t5 on T5.AcctCode = t3.creditacct left join OACT T6 on t0.CashAcct = t6.AcctCode 

WHERE T0.DocType = 'A'  

AND T0.DOCDATE BETWEEN @DATEFROM AND @DATETO

Adding fields from KOMK structure to screen painter.

$
0
0

Hello Everyone,

 

i have created an Extra tab(like ADDITIONAL DATA B) using BADI, i have added fields from VBAP table, its working fine. But when i add fields from KOMK structure(KOMK-STCEG) only empty field is showing. Do i need to code something in PBO or PAI?

 

 

Thanks & Regards,

NarsiReddy Cheruku.

Re: How to structure Heavy equipment Like Dumpers etc

$
0
0

HI,

There is no STD SAP Report or Transaction available for Sub-Equipment Usage List.


We can use IH08 to some extent, like change period from 1900 till 9999. You will get multiple records for same equipment. But this can't be called  as usage list


VL10B error

$
0
0

Hi All,

 

While performing VL10B, I have updated the purchase order number & executed (F8). I see "Activities Due to Shipping 'Purchase orders, fast display" screen. In there when i select the line item and press background button i see below error message. Kindly advice

 

"At least one order was blocked and could not be delivered"

 

  Thanks

Michael

Re: Problem with logon to CRM WebUI

$
0
0

Sorry fo the dealy I was on holidays can you create a new organization from scratch?

Re: PRS Condition calculate Twice in PO(High Priority)

$
0
0

PRS is used for "Gross Price"

You have to use one condition type as condition class B - Prices

Set these two condition type as condition class = B - Prices.

The test the scenario with new contract.

 

Regards

Dev

Re: Setup LMDB: Job "SAP_LMDB_LDB_0000000001" is running for long period

$
0
0

hi.

 

i am getting Error always " Determination of component from SCR failed

 

how to fix this Error

 

regards,

gayathri.k

Re: How to copy CJ40 wbs values to CJ30

$
0
0

Hi,

 

CJ30->Open Project->Select the required WBS elements->Menu bar->Edit->Copy View->Select Option 5(Planned Total)->Give 100 if asked for percentage->click on continue icon.

 

Check if your Planned values will get copied to Original Budget. Then select Budget column->Edit->total up->save.

 

Also you can use IMCCP3 tranx to copy plan values as suggested above.

 

 

Regards

Shishir

Re: Print Layout design

$
0
0

No Rathna, There is no option where you can copy and paste fields from Crystal Reports to PLD.

 

Use the option where Crystal Report can be served  same as a PLD .

 

No SDK required.

 

It helps a lot where PLD doent able to serve all the desired calculated fields.

 

Thanks

TAruna

Re: How to do multiple row select with a  checkbox?

$
0
0

Press and hold the control key while selecting the rows.


Re: Multiple Dispatcher in The Landscape

$
0
0

Hi Tomas/Sriram,

 

The OS is windows 2008R2 & 2012 server.

 

Yes..It would be really make a senese that We can put Two WD, One for all TEST and DEV env and One for Prod  environment.

 

So if I will put all Prod systems (ECC, EP, PI, BI, BO) in one WD, what are the things I need to be take care and what are the area that need special attention according to you.

 

Thanks & Regards,

Satyabrat

AR credit memo can not add

$
0
0

Hi

I try to add AR credit memo with downpayment. Balance of invoice is -0.01

When i hit add button nothing happens. No error. Document is still in "Add" mode.

What can be the reason?

SAP 8.82 PL6

Regards

Lukasz

Re: Price Control in Material Master updation Based on valuated Project Stock

$
0
0

Did you checked the wiki Link which was posted earlier.

It suffice your requirement.

But need to config the projects as per steps

Problem in editing SBO b1f forms with VS2010

$
0
0

Hi there,

I've installed VS2010 in my laptop, and then SBO9PL11 version with SDK and Studio Suite with both options (SBO Studio and SBO Studio for VS) and for both x86 and x64 versions.

 

I can work fine with SBO Studio inside SBO x86 or x64, create forms and so on.

 

However, when I create a new SBO project in VS, I cannot visualize SBO forms inside VS but only in XML.

I tried to uninstall either one of the versions, but the problem persists.

 

Does any body know how to solve this?

Is there any way to manually associate the *.b1f form files with SBO Studio editor inside VS?

 

Regards,

mdias

Re: Penultimate Payment Terms

$
0
0

Dear Pritesh,

 

In this case you need to substitute the field "fixed days" in payment term box in OBB8 on the basis of last billing day of previous.

I.e. Day of last billing date -1

You can try to capture that date from the VBRP or VBRK table.

 

You need to specify the additional month as 1 as given in my prevoius comment.

 

BR,

Sapan

Viewing all 8594 articles
Browse latest View live


Latest Images