2009 Apr 02 8:09 AM
Hi,
I'm using FM BAPI_SHIPMENT_CHANGE to change shipment doc, just to un-tick checkbox "Shipment costs relevance" from shipment header. Below is my code:
DATA: HEADER LIKE BAPISHIPMENTHEADER,
HEAACT LIKE BAPISHIPMENTHEADERACTION,
RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
HEADER-SHIPMENT_NUM = '1121110450'.
HEADER-SHPMNT_COST_REL = ''.
HEAACT-SHPMNT_COST_REL = 'C'.
CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
EXPORTING
HEADERDATA = HEADER
HEADERDATAACTION = HEAACT
TABLES
RETURN = RETURN.
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
ENDIF.There is no error from RETURN tab and transaction commit, but it doesn't clear the value for field "Shipment costs relevance". Could u please comment?
Hi,
I'm using FM BAPI_SHIPMENT_CHANGE to change shipment doc, just to un-tick checkbox "Shipment costs relevance" from shipment header. Below is my code:
DATA: HEADER LIKE BAPISHIPMENTHEADER,
HEAACT LIKE BAPISHIPMENTHEADERACTION,
RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
HEADER-SHIPMENT_NUM = '1121110450'.
HEADER-SHPMNT_COST_REL = ''.
HEAACT-SHPMNT_COST_REL = 'C'.
CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
EXPORTING
HEADERDATA = HEADER
HEADERDATAACTION = HEAACT
TABLES
RETURN = RETURN.
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
ENDIF.There is no error from RETURN tab and transaction commit, but it doesn't clear the value for field "Shipment costs relevance". Could u please comment?
2009 Apr 10 7:14 AM
Hi, this is to update you that my prob resolved. This is what i changed:
HEAACT-SHPMNT_COST_REL = 'D'.Thanks.
2009 May 22 3:27 PM
Hi
I am having a similar problem to the above. I want to change the shipment planned status (STDIS) from Planned (X) to unplanned (SPACE) and vice versa. Please suggest what should be the values for HEAACT-STATUS_PLAN as I did not understand why you used 'D' for clearing the check box of shipment cost relevance in the earlier case.
Please reply at the earliest.
Thanks!!
2009 Jul 14 10:33 AM
Hi,
I am currently working on the same issue. I need to untick the shipment cost relevance check box under stages tab in VT02N Tcode.
Please suggest how to do this. I am unable to do with the code provided by you.
please guide as you have already solved this before.
thanks for your help in advance.
2012 Jun 25 7:28 PM
Hi abc efc,
I'm facing the same problem about How to use this BAPI. Can you please tell me when do you find the information?
Where is this BAPI?
Best Regards!
Thanks In Advance!
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |