Sunteți pe pagina 1din 13

BDC recording from testing client to development client

By Venkatraman N, IBM

This method would be useful, when you dont have required datum in development client and when you have same in testing client and you want to BDC recording with that datum. Login to the Testing client where you will have data. Go to transaction SHDB and press new recording.

As an instance, here we will try to modify vendors postal code of his address. So, give FK02 as the transaction code to be executed and give recording name like ZRECORD.

Now it goes to Vendor master update screen. Opt a vendor and click the address checkbox and press enter.

It will show the vendors address information.

Now change the existing PIN code 700019 to 560076 and press save. It will take you to the recording screen.

Now you cannot create a program with this recording information in testing client. So, import your recording information to one presentation server file. Press import button.

Give a text file name and save it in the presentation server.

Then Go to SHDB transaction in development client and go to new recording. Give the recording name as ZRECORDINGNEW and opt the same vendor master updation transaction code FK02.

In this case your development client should have at least one vendor. If not create it and input the vendor in FK02 transaction and as you did earlier select the address checkbox.

It will show you the address information. You dont change anything in that and come back. Because this is not the vendor to whom we are going to change his PIN Code.

Now it will show you the recording information. Delete all the recording information and press the import button and browse bdc_recording file from the presentation server.

The previous recording information will loaded in to BDC recording and go back from the screen. It would popup for saving the recording. Now save that recording.

Select the recording and press program button. It will popup for new program creation. Input the required details and the expected BDC recording program will get created.

report ZVENDORUPDATE no standard page heading line-size 255. include bdcrecx1. start-of-selection.

perform open_group. perform bdc_dynpro using 'SAPMF02K' '0106'. perform bdc_field using 'BDC_CURSOR' 'RF02K-LIFNR'. perform bdc_field using 'BDC_OKCODE' '/00'. perform bdc_field using 'RF02K-LIFNR' 'B002568'. perform bdc_field using 'RF02K-D0110' 'X'. perform bdc_dynpro using 'SAPMF02K' '0110'. perform bdc_field using 'BDC_CURSOR' 'LFA1-PSTLZ'. perform bdc_field using 'BDC_OKCODE' '=UPDA'. perform bdc_field using 'LFA1-NAME1' 'MURARI SHARAN SRIVASTAVA'. perform bdc_field using 'LFA1-SORTL' '000568'. perform bdc_field using 'LFA1-STRAS' 'Brook House, Shakespeare Sarani'. perform bdc_field using 'LFA1-ORT01' 'Kolkatta'. perform bdc_field using 'LFA1-PSTLZ' '560076'. perform bdc_field using 'LFA1-LAND1' 'IN'. perform bdc_field using 'LFA1-REGIO' '25'. perform bdc_field using 'LFA1-SPRAS' 'EN'. perform bdc_transaction using 'FK02'. perform close_group.

S-ar putea să vă placă și