Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3167

BDC error on VA42

$
0
0

Hello ABAPers,

 

When I was trying to record BDC for VA42 Unit Costing update I ended up getting the following error. (I have used BAPI_CONTRACT_CREATEFROMDATA to create a service contract. However, to update costing, I found that BDC was the only method)

Capture.JPG

Can anyone suggest on how this can be resolved ?

 

Following is the program that was generated.

 

include bdcrecx1.

 

start-of-selection.

 

perform open_group.

 

perform bdc_dynpro      using 'SAPMV45A' '0102'.

perform bdc_field       using 'BDC_CURSOR'

                               'VBAK-VBELN'.

perform bdc_field       using 'BDC_OKCODE'

                               '/00'.

perform bdc_field       using 'VBAK-VBELN'

                               '71001901'.

 

perform bdc_dynpro      using 'SAPMV45A' '4001'.

perform bdc_field       using 'BDC_OKCODE'

                               '=PKAL'.

 

perform bdc_field       using 'BDC_CURSOR'

                               'VBAP-POSNR(01)'.

perform bdc_field       using 'RV45A-VBAP_SELKZ(01)'

                               'X'.

 

perform bdc_dynpro      using 'SAPLSPO2' '0100'.

perform bdc_field       using 'BDC_OKCODE'

                               '=OPT1'.                                        "Unit Costing

 

perform bdc_dynpro      using 'SAPLKKEA' '1600'.

perform bdc_field       using 'BDC_CURSOR'

                               'RK70_KKEA-KLVAR'.

perform bdc_field       using 'BDC_OKCODE'

                               '=GOON'.

perform bdc_field       using 'RK70_KKEA-KLVAR'

                               'YPC1'.                                        "Costing Variant

 

 

perform bdc_dynpro      using 'SAPLKKDI' '1301'.

perform bdc_field       using 'BDC_CURSOR'

                               'RK70L-HERK2(01)'.

perform bdc_field       using 'BDC_OKCODE'

                               '=PSEL'.

perform bdc_field       using 'RK70E-LST_SETNR'

                               '    1'.

perform bdc_dynpro      using 'SAPLKKDI' '1950'.

perform bdc_field       using 'BDC_CURSOR'

                               'RK70L-TYPPS'.

perform bdc_field       using 'BDC_OKCODE'

                               '=TYPP'.

perform bdc_field       using 'RK70L-TYPPS'

                               'V'.

perform bdc_dynpro      using 'SAPLKKDI' '1950'.

perform bdc_field       using 'BDC_CURSOR'

                               'RK70L-KSTAR'.

perform bdc_field       using 'BDC_OKCODE'

                               '=BKDT'.

perform bdc_field       using 'RK70L-TYPPS'

                               'V'.

perform bdc_field       using 'RK70L-MENGE'

                               '                   1'.

perform bdc_field       using 'RK70L-KSTAR'

                               '9060200000'.

 

perform bdc_dynpro      using 'SAPLKKDI' '1301'.

perform bdc_field       using 'BDC_CURSOR'

                               'RK70L-TYPPS(01)'.

perform bdc_field       using 'BDC_OKCODE'

                               '=EBCK'.

 

perform bdc_field       using 'RK70E-LST_SETNR'

                               '    1'.

perform bdc_dynpro      using 'SAPLSPO1' '0100'.

perform bdc_field       using 'BDC_OKCODE'

                               '=YES'.

 

perform bdc_dynpro      using 'SAPMV45A' '4001'.

perform bdc_field       using 'BDC_OKCODE'

                               '=SICH'.


perform bdc_transaction using 'VA42'.

 

perform close_group.

 

Thanks and regards,

Kiran


Viewing all articles
Browse latest Browse all 3167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>