Application Development and Automation 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: 
Read only

Problem while calling transaction in BDC

Former Member
0 Likes
603

Hi,

I am using BDC call transaction to record verdor creation(FK01).Problem is while calling transaction FK01, values are not getting populated in the screen.When was doing in debug mode all the data is getting populated into internal table.what could be the reason?

Regards,

Pratapvdl.

5 REPLIES 5
Read only

Former Member
0 Likes
573

Hi,

can u show the code wat u have written for BDC.

Regards,

Madhukar Shetty

Read only

Former Member
0 Likes
573

values are not getting populated in the screen

As per your statement, I think you are trying to run the BDC in foreground mode. right ?? If yes then,

1. Your internal table will definitely have the record values which you have uploaded from the data file ( for eg .txt).

2. Since your values are not getting populated on the screen, then definitely there is prob with your recording.

I would suggest you to do transaction recording once again and then populate internal table of type BDCDATA propoerly.

Please let us know if you are still coming across the same problem.

Cheers

VJ

Read only

0 Likes
573

Yes,

i have given the mode as 'A'(fore ground) and update mode as 'S' .All the data is getting populated into iternal table but those values are not getting transfered to screen. I have mentioned code below how i am using call transaction

call transaction 'FK01' using it_bdcdata

mode c_mod

update c_updat

messages into i_tab.

Regards,

Pratapvd.

Read only

0 Likes
573

Hi Pratapvd,

Since you are still facing the same problem, it would be great if you can paste your code here and let us analyze the code first.

Anyways, in the mean time, you can check in debugging mode that whether your BDCDATA internal table i.e. it_bdcdata

is having that screen number and field name which you want to populate. If it is not there then there is prob with your recording. Apart from that you can refer below mentioned code for your reference as well.


    IF NOT lt_mat IS INITIAL.

      LOOP AT lt_mat INTO ls_mat.

        PERFORM bdc_dynpro      USING 'SAPLMGMM' '0060'.
        PERFORM bdc_field       USING 'BDC_CURSOR'                              'RMMG1-MATNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'                              '/00'.
        PERFORM bdc_field       USING 'RMMG1-MATNR'                              ls_mat-matnr.

        PERFORM bdc_dynpro      USING 'SAPLMGMM' '0070'.
        PERFORM bdc_field       USING 'BDC_CURSOR'                              'MSICHTAUSW-DYTXT(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'                              '=ENTR'.
        PERFORM bdc_field       USING 'MSICHTAUSW-KZSEL(01)'                              'X'.

        PERFORM bdc_dynpro      USING 'SAPLMGMM' '4004'.
        PERFORM bdc_field       USING 'BDC_CURSOR'                              ls_mat-MAKTX.
        PERFORM bdc_field       USING 'MAKT-MAKTX'                              ls_mat-maktx.
        PERFORM bdc_field       USING 'MARA-MEINS'                              ls_mat-meins.
        PERFORM bdc_field       USING 'MARA-MATKL'                              ls_mat-matkl.
        PERFORM bdc_field       USING 'BDC_OKCODE'                              '=BU'.

        CALL TRANSACTION 'MM02' USING lt_bdcdata
                                MODE 'A'
                                UPDATE 'A'
                                MESSAGES INTO lt_msgcoll.
        CLEAR ls_mat.
      ENDLOOP.
    ENDIF.
  ELSE.
    EXIT.
  ENDIF.

Come up with your prob if you are still facing same prob.

Cheers

VJ

Read only

Former Member
0 Likes
573

This is a FAQ by now.

Make sure that "use central address management" is checked off on the first screen.

Rob