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

bdc

Former Member
0 Likes
533

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.

4 REPLIES 4
Read only

Former Member
0 Likes
485

Hi lalith,

sorry lalith if u get angry by seeing this,

y cant u go for LSMW recording method.

Thanks

Naveen khan

Read only

Former Member
0 Likes
485

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

Read only

Former Member
0 Likes
485

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.

Read only

Former Member
0 Likes
485

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