Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Replaced value is not getting relected in IDOC segment field

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

Hi,

is the field goodsmvt_item-PO_NUMBER is getting updated as per your requirement before the bapi call "BAPI_GOODSMVT_CREATE"?

Regards

Vinod