Skip to Content
author's profile photo
Former Member

bdc

hi

i have to upload only 2 field in a modified transaction ZREC3 which is modified from tr FBZ1 can anyone tell me where is the problem when i execute my report it shows me changed value but when i go to transaction it shows no changes

REPORT ZBDC_L2.

data : begin of itab occurs 0 ,

XBLNR LIKE BKPF-XBLNR ,

KONTO LIKE RF05A-KONTO,

end of itab.

data : bdcdata like bdcdata occurs 0 with header line.

data : messtab like bdcmsgcoll occurs 0 with header line.

ITAB-XBLNR = 'PRASHANT-III'.

ITAB-KONTO = '24541612'.

APPEND ITAB.

LOOP AT ITAB.

BDCDATA-PROGRAM = 'SAPMF05A'.

BDCDATA-DYNPRO = '0103'.

BDCDATA-DYNBEGIN = 'X'.

APPEND BDCDATA.

CLEAR BDCDATA.

BDCDATA-FNAM = 'BKPF-XBLNR'.

BDCDATA-FVAL = 'prashant-III'.

APPEND BDCDATA.

CLEAR BDCDATA.

BDCDATA-FNAM = 'RF05A-KONTO'.

BDCDATA-FVAL = '24541612'.

APPEND BDCDATA.

CLEAR BDCDATA.

BDCDATA-FNAM = 'BDC_OKCODE'.

BDCDATA-FVAL = '=BU'.

APPEND BDCDATA.

CLEAR BDCDATA.

BDCDATA-FNAM = 'BDC_OKCODE'.

BDCDATA-FVAL = '/11'.

APPEND BDCDATA.

CALL TRANSACTION 'FBZ1' using BDCDATA mode 'A' update 'N' messages into messtab.

REFRESH BDCDATA.

ENDLOOP.

Add comment
10|10000 characters needed characters exceeded

4 Answers

  • author's profile photo
    Former Member
    Posted on Aug 21, 2007 at 11:37 AM

    Hi lalith,

    sorry lalith if u get angry by seeing this,

    y cant u go for LSMW recording method.

    Thanks

    Naveen khan

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 07:03 AM

    Lalith,

    You can do a recording of the ZREC3 transaction by executing transaction SHDB.

    Click on the new recording button

    Enter a name for the recording ZTEST or something

    Transaction Code - ZREC3

    Leave everything else the same, and click start recording. Follow the process you normally would for making the update in the transaction and save.

    The resulting output will give you all the necessary fields you need to populate in order to update the transaction. The Call transaction should then work.

    Cheers,

    Steve

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 08:46 AM

    hi,

    since your mode when call transaction is 'A', make sure that you haven't do additional interact with the transaction when execute your report. or you can change the mode to 'N' to check whether your report still works.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 08:55 AM

    Hi

    try

    ITAB-XBLNR = 'PRASHANT-III'.

    ITAB-KONTO = '24541612'.

    APPEND ITAB.

    LOOP AT ITAB.

    BDCDATA-PROGRAM = 'SAPMF05A'.

    BDCDATA-DYNPRO = '0103'.

    BDCDATA-DYNBEGIN = 'X'.

    APPEND BDCDATA.

    CLEAR BDCDATA.

    BDCDATA-FNAM = 'BKPF-XBLNR'.

    BDCDATA-FVAL = ITAB-XBLNR.

    APPEND BDCDATA.

    CLEAR BDCDATA.

    BDCDATA-FNAM = 'RF05A-KONTO'.

    BDCDATA-FVAL = ITAB-KONTO.

    APPEND BDCDATA.

    CLEAR BDCDATA.

    BDCDATA-FNAM = 'BDC_OKCODE'.

    BDCDATA-FVAL = '=BU'.

    APPEND BDCDATA.

    CLEAR BDCDATA.

    BDCDATA-FNAM = 'BDC_OKCODE'.

    BDCDATA-FVAL = '/11'.

    APPEND BDCDATA.

    reward points to all helpful answers

    kiran.M

    Add comment
    10|10000 characters needed characters exceeded