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

acknowledgement

Former Member
0 Likes
2,894

Hi,

I am trying to post PO Acknowledgement using ORDERSOR IDOC type and Message type ORDRSP.

When I try to post with different quantity than in Purchase order, its getting error with message ' acknowledgement contains quantity variance, can anybody provide solution for this?

thanks

Raj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,396

Yes there is an exit EXIT_SAPLEINM_009 where you just have to change YEKPO-MENGE( order_line_item-MENGE) equal to your IDOC quantity . Now in this exit the IDOC quantity is not available.

In exit EXIT_SAPLEINM_007 which is called before above exit you have the idoc data . Here you can pass the IDOC qty to an ABAP memory which you can read in EXIT_SAPLEINM_009 and pass it to YEKPO-MENGE. If you have multiple items in one IDOC make sure to pass the full key i.e PO Number / Item Number / Qty in an internal table to ABAP memory .

Cheers.

( Dont forget to reward if answers were helpful )

17 REPLIES 17
Read only

Former Member
0 Likes
2,396

Check in PO what is the under delivery & over delivery tolerance defined for the PO item in item details . If there is some percentage here you cannot go beyond this. You have to change this to a deisred value . These values come from material master ( Purchasing data -> Purchasing value key ).

Cheers.

Read only

0 Likes
2,396

what your are saying is true, is there any way (user exit or oss note.. ) we can bypass this over and under delivery tolerance check,

so that PO acknowledgement is posted without this check.

manually when I posted in PO this check is not considered.

Your answer is highly appreciated.

Thanks

Raj

Read only

Former Member
0 Likes
2,397

Yes there is an exit EXIT_SAPLEINM_009 where you just have to change YEKPO-MENGE( order_line_item-MENGE) equal to your IDOC quantity . Now in this exit the IDOC quantity is not available.

In exit EXIT_SAPLEINM_007 which is called before above exit you have the idoc data . Here you can pass the IDOC qty to an ABAP memory which you can read in EXIT_SAPLEINM_009 and pass it to YEKPO-MENGE. If you have multiple items in one IDOC make sure to pass the full key i.e PO Number / Item Number / Qty in an internal table to ABAP memory .

Cheers.

( Dont forget to reward if answers were helpful )

Read only

0 Likes
2,396

Hi Sanjay,

This is great help, but Iam unable to call EXIT_SAPLEINM_009.

how to call EXIT_SAPLEINM_009 from EXIT_SAPLEINM_007 ?

Please let me know.

thanks

Raj

Read only

0 Likes
2,396

hi,

I very helpful answer, please let me know how to call exit_sapleinm_009 from exit_sapleinm_007.

thanks

Raj

Read only

0 Likes
2,396

Hi Raj,

You got me wrong.

There is no need to call EXIT_SAPLEINM_009 from EXIT_SAPLEINM_007 and in fact you cannot do this.

If you read my previous post all you have to do is -

In Exit EXIT_SAPLEINM_007 , read the quantity from IDOC DATA and pass to abap memory using

EXPORT <FEILDNAME> to MEMORY ID <NNNN>.

In Exit EXIT_SAPLEINM_007 .

IMPORT <FEILDNAME> from MEMORY ID <NNNN>.

and then you have to pass it to YEKPO-MENGE.

I hope you know the concept of ABAP memory . So the two exits will communicate using ABAP memory.

Cheers.

Read only

0 Likes
2,396

what is abap memory

thanks

Raj

Read only

0 Likes
2,396

Thanks for the info

Raj

Read only

0 Likes
2,396

hi,

Thank's for the info, I am almost done with your help, but have one problem.

in the order confirmation, for the first time when confirmation quantity is less than the PO quantity it is creating confirmation line in PO, when remaining quantity is posted, it is over writing the first confirmation line.

what I wanted is second confirmation line instead of over writing the first line.

idoc type - ORDERS05, MESSAGE TYPE - ORDRSP, FUNCTION MODULE - IDOC_INPUT_ORDRSP.

Please help me in this

Thanks

Raj

Read only

0 Likes
2,396

This is standard functionality . If you want to change this I guess you will have implement code corrections mentioned in OSS 494377. ( You need not create the report mention in OSS for correcting old POs ).

Cheers

Read only

0 Likes
2,396

Hi sanjay,

We already have this (SAPKH6C34) implemented in our system,

please suggest.

raj

Read only

0 Likes
2,396

Have you really checked if code corrections are there in your system . This corrrection is not avaialble in any package .

<b>"The source code changes of the attached SAP note represent a

modification. Among other things, this means that they are not to be

included in either an SAPSupport Package nor for a future development

level. This modification is particularly not covered by the SAP Standard

support system." </b>

Cheers

Read only

0 Likes
2,396

hi sanjay,

can you please tell me where to look for code corrections.

thanks

Read only

0 Likes
2,396

Thanks for your help.

raj

Read only

Former Member
0 Likes
2,396

We are implementing Vendor confirmations via EDI. We need IDOC FM IDOC_INPUT_ORDRSP update PO item data in addition to updating PO confirmation. Is this possible using this FM?

For example, if vendor confirms 1 cs out of 3 cs on po, the po is updated where a confirmation line is added to the po. But the po item information like EKPO-MENGE and EKET_EINDT are not updated.

Rachelle

Read only

0 Likes
2,396

We configured our system to accept inbound vendor confirmation via EDI which is updating po confirmation overview tab and MRP is showing that the qty is confirmed. This is fine.

But when we do goods receipt on the po we need to be able to send EDI Proof of delivery to vendor. This part we are not sure how to do as the output message determiination is not set up on Goods receipt document. When we post goods receipt on inbound delivery created via edi vendor confirmation, the quantity is not getting updated in the po and in MRP. Also we tried MIGO on the po, which is not tying back to inbound delivery.