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: 

ia01-operation description-over 19 entries not coming in bdc uploading

Former Member
0 Kudos
90

Hi experts,

i am facing one one problem when uploading operations description data. Here iam able to upload upto 19 records, if records are more than 19, it is not uploading in that screen . how to add more entries than 19 into that screen.

screen number is 'SAPLCPDI' '3400'.

adavnce ..........thanks and regards

asrreddy

3 REPLIES 3

Former Member
0 Kudos
42

It is very simple do as follow

perform bdc_screen using 'SAPMM07I' '0721' 'X'.

i = 1.

loop at itab_stock.

concatenate 'ISEG-MATNR(' i ')' into fnam.

perform bdc_field using fnam itab_stock-matnr.

if i = '12'.

perform bdc_field using 'BDC_OKCODE' '/00'.

perform bdc_screen using 'SAPMM07I' '0721' 'X'.

i = 0.

endif.

i = i + 1.

endloop.

perform bdc_field using 'BDC_OKCODE' '/00'.

perform bdc_screen using 'SAPMM07I' '0721' 'X'.

perform bdc_field using 'BDC_OKCODE' '=BU'.

call transaction 'MI01' using itab_bdcdata mode 'A' MESSAGES INTO

ITAB_msg.

CLEAR itab_bdcdata[].

In my case i have 12 rows in table and see the screen and program name called inside loop and outisde loop..and before loop...and also u have to call screen after 12 records..

regards..

REWARD POINTS

0 Kudos
42

thanks soumya sekhar.............

but i t is not working in this case.

u can try ......

here by my code is :

LOOP AT IT_OPERDESC WHERE EQUNR = IT_EQUI-EQUNR.

  • CLEARING THE TABLE CONTROL LINE FLAG ONCE ONE SCREEN IS FULLY RECORDED

IF SCRLINE = MAXCNT.

BREAK-POINT.

  • SCRLINE = 0.

  • SCRLINE = 19.

    • SCRLINE = SCRLINE + 19.

  • ADD 19 TO SCRLINE.

ENDIF.

PERFORM BDC_FIELD USING 'BDC_OKCODE' '/00'.

CLEAR: SCREENFLD.

ADD 1 TO SCRLINE.

  • CONCATENATE 'PLPOD-VORNR' '(' SCRLINE ')' INTO SCREENFLD.

  • CONDENSE SCREENFLD NO-GAPS.

  • PERFORM BDC_FIELD USING 'BDC_OKCODE' SCREENFLD.

CONCATENATE 'PLPOD-VORNR' '(' SCRLINE ')' INTO SCREENFLD.

CONDENSE SCREENFLD NO-GAPS.

PERFORM BDC_FIELD USING 'BDC_CURSOR' SCREENFLD.

PERFORM BDC_FIELD USING 'BDC_OKCODE' '=WPLT'.

CLEAR: SCREENFLD.

CONCATENATE 'RC27X-FLG_SEL' '(' SCRLINE ')' INTO SCREENFLD.

CONDENSE SCREENFLD NO-GAPS.

PERFORM BDC_FIELD USING SCREENFLD 'X' .

CLEAR: SCREENFLD.

CONCATENATE 'PLPOD-LTXA1' '(' SCRLINE ')' INTO SCREENFLD.

CONDENSE SCREENFLD NO-GAPS.

PERFORM BDC_FIELD USING SCREENFLD IT_OPERDESC-LTXA1.

ENDLOOP.

if any changes u can suggest me....................for the above code.

thanks and regards

0 Kudos
42

Hi dasr,

If u have solved this problem, can u please tell me how to do that.