cancel
Showing results for 
Search instead for 
Did you mean: 

How to update Billing Plan using BAPI_SALESORDER_CHANGE

nitish_govindwar
Participant
0 Kudos

Hi,

In my case initailly sales order header data is created and saved, with reference to SO Project is created and then item level data is updated.

So clients requirement is to create any upload programme which can use for mass upload.

i.e to develop a program to upload,

i) Items in Sales Order.

ii) Billing Plan & Pricing Conditions in SO

I am trying to use BAPI_SALESORDER_CHANGE for this requirement. Problem is in this scenerio user exit is already used which validate "Amount" at item level and "Bill. value" in Billing plan tab should be same.

As observed Billing plan data can not be updated using this BAPI.

Even I've tried to use BDC for this requirement, but as we need to double click on line item while updating billing plan data and conditions it does not work while recording.

Incase anyone have worked on similar scenerio and found out solution, please share all your inputs.

Warm Regards,

Nitish

Accepted Solutions (0)

Answers (1)

Answers (1)

gomatheeswaran_palaniappa
Active Contributor
0 Kudos

Hi,

The following code will take you to Billing plan tab in BDC.


  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'
                                wa_vbap-vbeln.              
  PERFORM bdc_dynpro      USING 'SAPMV45A' '4001'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=ITEM'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                itemno . "'RV45A-MABNR(wa_vbap-posnr)'.
  PERFORM bdc_dynpro      USING 'SAPMV45A' '4003'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=T\06'.
  PERFORM bdc_dynpro      USING 'SAPLV60F' '4001'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.

Regards,

P Gomatheeswaran

nitish_govindwar
Participant
0 Kudos

Hi Gomathisawaran,

Thanks for your input, cant we use BAPI_SALESORDER_CHANGE for this requirement.

Dont we have any option which will adjust this user exit and can give required output in BAPI.

Definately I am trying to work out BDC as well, will let you know.

Warm Regards,

Nitish

gomatheeswaran_palaniappa
Active Contributor
0 Kudos

Hi,

In our project we used this BDC and that was successful. For BAPI, the following thread might help you.

Thanks & Regards,

P Gomatheeswaran