‎2005 Oct 19 9:42 PM
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
‎2005 Oct 20 4:30 AM
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 )
‎2005 Oct 20 2:58 AM
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.
‎2005 Oct 20 3:33 AM
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
‎2005 Oct 20 4:30 AM
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 )
‎2005 Oct 20 7:55 PM
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
‎2005 Oct 20 9:07 PM
hi,
I very helpful answer, please let me know how to call exit_sapleinm_009 from exit_sapleinm_007.
thanks
Raj
‎2005 Oct 21 1:44 AM
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.
‎2005 Oct 21 2:50 AM
‎2005 Oct 21 4:22 AM
‎2005 Oct 25 12:12 AM
‎2005 Oct 25 12:13 AM
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
‎2005 Oct 25 1:49 AM
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
‎2005 Oct 25 3:04 AM
Hi sanjay,
We already have this (SAPKH6C34) implemented in our system,
please suggest.
raj
‎2005 Oct 25 4:15 AM
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
‎2005 Oct 25 4:38 PM
hi sanjay,
can you please tell me where to look for code corrections.
thanks
‎2005 Nov 05 6:17 AM
‎2007 Jan 10 8:23 PM
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
‎2007 Jan 18 7:34 PM
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.