[sap-log-sd] Change Relevant for Billing field in Sales Order using BAPI_SALESORDER_CHANGE

Posted by greatspiker11
on Jul 21 at 1:13 PM
Hi Masters,

I am manually trying to change the value of 'Relevant for billing' from 'G' to 'A' (or any other value) using BAPI_SALESORDER_CHANGE then committing it using BAPI_TRANSACTION_COMMIT.

These are the steps I followed:
1. In SE37, I use Function Module -> Test -> Test Sequence then entered BAPI_SALESORDER_CHANGE and BAPI_TRANSACTION_COMMIT. Then Enter.

2. In BAPI_SALESORDER_CHANGE, I filled in the following details:
-RFC target sys
-SALESDOCUMENT
-ORDER_HEADER_INX = U
-ORDER_ITEM_IN: Item Number =100 & BILL_REL=A
-ORDER_ITEN_INX: Item Number=100, UPDATEFLAG=U, BILL_REL=U

3. Then I Execute it and RETURN says that the HEADER AND ITEM has been processed successfully and that the sales order has been changed.

4. Then I press F3 and I am led to the next BAPI_TRANSACTION_COMMIT and filled in the following details again:
-RFC target sys
-WAIT=X

5. Then I Execute it.

6. When I checked table VBAP for field FKREL (Relevant for Billing), I still see the old value ('G'). No update has occurred.

I have tried this on a customer item (from 'G' to 'A' or blank) and a logistical item (from 'A' to 'D' or blank) and none worked, so far.

Could anybody please help me one this matter? Thanks in advance!
__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
View this online
  
Popular White Papers

In the Spotlight
IBM Helps Clients Exploit the Power of Cloud Computing. Click Here for IBM's Cloud Computing Virtual Briefing Center.
_.____.__