05-10-2010 8:40 AM
Hi,
Need your help for the below issue.
I am replacing the PO # with Delivery Doc # . But the replaced value is not getting reflected in the IDOC segment field(e1bp2017_gm_item_create-po_number.).
Function Module which I am using is IDOC_INPUT_MBGMCR as a copy.
Here is my code given below:
SELECT
SINGLE vbeln
INTO lx_vbeln
FROM lips
WHERE vgbel EQ e1bp2017_gm_item_create-po_number.
Move lx_vbeln TO e1bp2017_gm_item_create-po_number.
.
.
.
MOVE-CORRESPONDING e1bp2017_gm_item_create
TO goodsmvt_item.
Then this is passed as TABLE in "BAPI_GOODSMVT_CREATE".
Please do the needful.
05-10-2010 8:44 AM
Hi Dheepa,
Check it in debug whether the filed is empty or having po#, when ur code is executed for the replacement. if it is empty, po# is populated after ur code. in this case you need to write the code in suitable place.
--
Reddy
05-10-2010 8:50 AM
Hi Reddy,
In debug mode PO # is not getting replaced with delivery Doc #.
Example:PO # is 100 and Delivery Doc # is V100,The lx_vbeln variable is showing as empty value.
05-10-2010 9:09 AM
Hi,
is the field goodsmvt_item-PO_NUMBER is getting updated as per your requirement before the bapi call "BAPI_GOODSMVT_CREATE"?
Regards
Vinod