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

Posted by wnash7658 (SAP Specialist and Project Leader)
on Jul 28 at 5:26 AM
1. BREAKPOINT and go through the program.
2. BILL_REL is related to CRM
3. LOGIC_SWITCH in the BAPI can be used for your purpose.

Mark as helpful.

Regards,
Waza

---------------Original Message---------------
From: greatspiker11
Sent: Thursday, July 21, 2011 1:15 PM
Subject: Change Relevant for Billing field in Sales Order using BAPI_SALESORDER_CHANGE

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
Mark as helpful
View this online
  
wnash7658
SAP Logistics Sales and Distribution Helper

Posted helpful replies on 50 threads in a group to earn a Silver Achievement
Popular White Papers

In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements
_.____.__