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: 

How to put value of specific line number in BDC

former_member190178
Participant
0 Kudos

Hi all,

I am working on a BDC (MI04)which has 3 fields as header:

Document Number:

Date:

Fiscal Year.

After entering I get a screen having default Material Number, its description and its serial number. There is one field named QTY where I need to push the value through BDC.

But the issue is that I am not able to reach to that Material Code to push the qty value. I am getting the Material Code and its serial number in the text file from user.

May some times the given material code in on the NEXT PAGE (P+). So dont know how to go to the next page and push the qty in front of the correct material code..

Please help. Its very very urgent.

Thanks in Advance.

-=Maddu=-

6 REPLIES 6

Former Member
0 Kudos

Hi Pal,

When u do the BDC recording u can do the recording in such a way that it prompts on the Material Code element.

In the Program u can get the value in an Internal Table ..

and assign the value to the Bdctab at that point.

Hope this helps.

Thanx,|

Navin.

raymond_giuseppi
Active Contributor
0 Kudos

There is a "position" icon (function code ABA) to move the desired line on top of the screen (so use 01 in your BDC)

You can find the line number in the tables IKPF/ISEG.

Regards

PS: Why didn't you use BAPIs like BAPI_MATPHYSINV_COUNT ?

0 Kudos

Could you please elobrate it more. If on every page say 6 items are coming and I need to update the 8th record, which will come on the second page then how wil I be able to reach to the recoud going by logic.

Please help.

0 Kudos

Hi,

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=P+'. for next page

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=P++'. for last page

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=P-'. for previous page

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=P+'. for first page

regards,

muralidhar.

0 Kudos

Still the things are not solved. Please help.

0 Kudos

Try something like

perform bdc_dynpro      using 'SAPMM07I' '0731'.
perform bdc_field       using 'BDC_CURSOR'
                              'ISEG-ERFMG(01)'.
perform bdc_field       using 'BDC_OKCODE'
                              '=KLA'. " Menu goto/position
perform bdc_dynpro      using 'SAPMM07I' '1701'.
perform bdc_field       using 'BDC_CURSOR'
                              'RM07I-ZEILE'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ENT2'.
perform bdc_field       using 'RM07I-ZEILE'
                              '8'. " give the "iseg-zeile" of the record to fill
perform bdc_dynpro      using 'SAPMM07I' '0731'.
perform bdc_field       using 'BDC_CURSOR'
                              'ISEG-ERFMG(01)'. " fill line 1 displayed

Regards