Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Display Problem?

Former Member
0 Kudos

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'

1 ACCEPTED SOLUTION

former_member221367
Participant
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

Hi Priya,

  Can you paste your code..???

Rgds,

Vijay SR

0 Kudos

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.

former_member221367
Participant
0 Kudos

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.

0 Kudos

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 ?