on 04-08-2010 6:50 AM
Dear People,
Is it possible for me to pass PO number to the function module 'PRICING'.
If so, what set of fields do i need to pass.
Thanks and Regards,
Sandeep
Hi,
As far as I undetrstood your question - it is rather ABAP question.
You can pass PO number to memory outside "pricing" module and then read it in this module using ABAP instrukctions:
EXPORT / IMPORT.
eg.
outside PRICING module:
EXPORT PONUMBER TO MEMORY ID 'ZPONUM'.
in PRICING module:
IMPORT PONUMBER TO LVALUE FROM MEMORY ID 'ZPONUM'
Hope, it helps.
regards,
wojciech
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Pricing is a standard SAP supplied FM. I wouldn't go around doing mods to it without careful consideration and approval from the bosses.
PO number into pricing? This is really odd. Are you trying differentiate pricing based on the PO number? It is not unusual to have sales prices based on the purchase price but PO number itself is a new one on me. I'd be curious to know what your actual requirement is. Please do post it. Maybe there is a different way to meet the requirement.
As to the mechanics of dealing with FM pricing. What you don't want to do is to IMPORT and EXPORT to memory because you are modifying standard SAP code. What you want to do is to add purchase order number to the input pricing communication structure.
1. Run SE37 and look at the input parameters. You should be able to find the import structure that said something like KOMP or KOMK ( depends on it you want PO number at item or header level). The structure type should be KOMP or KOMK.
2. If so, extend KOMP/KOMK via SE11 and add PO number field to it and generate.
That should do it. When you call FM pricing, simply fill in the PO number field.
Frank
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.