02-26-2014 5:15 AM
Hi friends,
i got small problem please help me.
i want to transfer material stock using tcode MB1b and Movement type 311.
so iam using BDC for stock transfer after BDC execution SY-subrc =0
i want to get the data from data base for which materials moved to successfully (for this reason i want to get the data from data base)
If iam Execute program with Debugging mode it will display data, without Debugging data not displayed.
what is the reason if iam doing debugging it will display data?
with out debugging data not displayed?
If anybody know these reason please suggestion me.
thanks to all'
02-26-2014 5:31 AM
Hi Priya ,
Some time it take time to execute one part of code after other part.
so can use " WAIT UP TO x SECONDS . " where x = 1,2 , 3.....
after one part of code.
02-26-2014 5:22 AM
02-26-2014 5:25 AM
CALL TRANSACTION TCODE USING BDCDATA[]
MODE S_MODE-LOW
UPDATE 'A'
MESSAGES INTO MESSTAB1[].
REFRESH BDCDATA.
IF SY-SUBRC = 0.
LOOP AT MESSTAB1.
MESSAGE ID MESSTAB1-MSGID
TYPE MESSTAB1-MSGTYP
NUMBER MESSTAB1-MSGNR
INTO L_MSTRING
WITH MESSTAB1-MSGV1
MESSTAB1-MSGV2
MESSTAB1-MSGV3
MESSTAB1-MSGV4.
ENDLOOP.
SKIP.
LOOP AT MESSTAB1 .
IF MESSTAB1-MSGNR = '060'..
NUMBER = MESSTAB1-MSGV1.
SELECT MBLNR MATNR WERKS LGORT CHARG MENGE FROM MSEG INTO TABLE IT_TEMP
WHERE MBLNR EQ NUMBER AND BWART = '311' AND LGORT = 'NE01'.
IF SY-SUBRC = 0.
It_TEMP1[] = It_TEMP[].
ENDIF.
ENDIF.
ENDLOOP.
ENDIF..
PERFORM display_data.
02-26-2014 5:31 AM
Hi Priya ,
Some time it take time to execute one part of code after other part.
so can use " WAIT UP TO x SECONDS . " where x = 1,2 , 3.....
after one part of code.
02-26-2014 5:37 AM
Thank U ankitha.. WAIt UP TO X second s also already iam used but not display data.
i have another problem also In SAP rows 999 only if i have 5000 records in sap how to process, after 999 continue ?