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: 

Regarding Scheduled Delivery quantity

Former Member
0 Kudos

Hi Friends,

Can someone tell me how to create a test data in ME21N (Creating a purchase order) so that the schedule line items should be delivered partially.

So, that the purchase order which I created should be able to see in the table VETVG.

For example : For purchase order XYZ , Let say I have created scheduled quantity (EKET-MENGE) as 100 . I want to deliver this quantity partially 70 . So, the remaining 30 should appear in VETVG table.

Now the requirement is by using BAPI_PO_CHANGE, I want to process this 30 and to make VETVG table empty.

Can some one please explain the functionality involved for my question ?

I am unable to find where this 30 is being saved in the transaction/table.

Thanks

6 REPLIES 6

Former Member
0 Kudos

check the table EKET for the scheduled quantity .

and the fields are

MENGE

WEMNG

WAMNG

u need to substract WAMNG FROM MENGE to capture the <b>open quantity</b> into a internal table or field for that particular item in po .

And u need to make use of this internal table / varaible field .

regards,

vijay.

Message was edited by:

Vijay

0 Kudos

Can you plz describe MENGE, AMENG,WEMNG, WAMNG ? wt these fields actually mean.

So, which field I have to consider for my question ?

I have test data like this in EKET:

EBELN EBELP ETENR MENGE AMENG WEMNG WAMNG

00000123 11 1 500.000 0.000 500.000 0.000

00000124 12 1 25.000 0.000 0.000 0.000

So, which data is considered as partially delivered above ??

0 Kudos

You u need to look for values where MENGE has some value AND WAMNG ALSO HAS SOE VALUE...

MENGE = SCHEDULED QUANTITY AS FOR THE ITEM IN PO (OF ME21N)

WAMNG = SOME VALUE HAS TO BE THERE .

Then only it meets ur requirement .

try for a value which has some value in the table EKET on field Wamng.

regards,

vijay

0 Kudos

Hari,

U need to compare the fields MENGE and WEMNG..Basically if MENGE is Greater than WEMNG it would appear in the delivery due index.

MENGE - Schedule line quantity

WEMNG - Delivered quantity against the particular schedule line.

So in the below case

EBELN EBELP ETENR MENGE AMENG WEMNG WAMNG

00000123 11 1 500.000 0.000 500.000 0.000

00000124 12 1 25.000 0.000 0.000 0.000

The document 00000124 12 1 would appear in VETVG table, while the first one should not.

Regards

Anurag

0 Kudos

Anurag,

there are no entries in VETVG table !!

0 Kudos

I am not 100% certain about VETVG table but from defn point of view the particular document is OPEN for delivery and it might be possible that the entry depends on the delivery date

Regards

Anurag