Application Development and Automation 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: 
Read only

Bapi BAPI_PRODORDCONF_CREATE_TT

Former Member
0 Likes
3,225

Hi people,

I'm trying to use BAPI_PRODORDCONF_CREATE_TT to load data into tx CO11N. I need to fill the field "production date", and couldn't find the corresponding field in this bapi. I can't fill the structure "goodsmovements" because this bapi define it automatically. If you have some tip about it, please, let me know.

regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,378

Hello

Please have a look at OSS note 351181 below. This might help.

Symptom

Goods movements which have a filled the date of production (GOODSMOVEMENTS-PROD_DATE) are transferred to a BAPI for the confirmation.

However, this date is lost in the course of processing so that the goods movements run incorrectly and must be reprocessed

Additional key words

BAPI_PRODORDCONF_CREATE_TT, BAPI_PRODORDCONF_CREATE_TE,

BAPI_PRODORDCONF_CREATE_HDR, GOODSMOVEMENTS-PROD_DATE, date of production,

Batch, shelf life expiration date, SLED

Cause and prerequisites

The problem is caused by a program error. The goods movements in internal table IMSEG_TAB are available to FORM routine VB_GOODS_MOVEMENTS. This FORM routine also includes the date of production in field HSDAT.

The goods movement data is transferred with MOVE-CORRESPONDING to internal table TMP_AFFW_TAB. However, it does not have field HSDAT. The date of production is managed in field MHDAT, there.

Solution

Implement the program correction. The date of production is transferred from IMSEG_TAB to field MHDAT of TMP_AFFW_TAB if it does not already contain a shelf life expiration date.

<b>Reward points if useful</b>

Regards

Saket Sharma

null

1 REPLY 1
Read only

Former Member
0 Likes
1,379

Hello

Please have a look at OSS note 351181 below. This might help.

Symptom

Goods movements which have a filled the date of production (GOODSMOVEMENTS-PROD_DATE) are transferred to a BAPI for the confirmation.

However, this date is lost in the course of processing so that the goods movements run incorrectly and must be reprocessed

Additional key words

BAPI_PRODORDCONF_CREATE_TT, BAPI_PRODORDCONF_CREATE_TE,

BAPI_PRODORDCONF_CREATE_HDR, GOODSMOVEMENTS-PROD_DATE, date of production,

Batch, shelf life expiration date, SLED

Cause and prerequisites

The problem is caused by a program error. The goods movements in internal table IMSEG_TAB are available to FORM routine VB_GOODS_MOVEMENTS. This FORM routine also includes the date of production in field HSDAT.

The goods movement data is transferred with MOVE-CORRESPONDING to internal table TMP_AFFW_TAB. However, it does not have field HSDAT. The date of production is managed in field MHDAT, there.

Solution

Implement the program correction. The date of production is transferred from IMSEG_TAB to field MHDAT of TMP_AFFW_TAB if it does not already contain a shelf life expiration date.

<b>Reward points if useful</b>

Regards

Saket Sharma

null