04-28-2006 2:01 PM
Hi,
For customizing reasons I had to use enhancement <u>M06E0004</u> (EXIT_SAPLEBND_002)
This enhancement allows you to <b>change the communication structure for determining the release strategy</b> for external purchasing documents. I added a new field to the CEKKO structure that I use in the customizing to determine my release strategy.
In the exit I added the following code:
data: wa_bekpo LIKE LINE OF it_bekpo.
MOVE-CORRESPONDING I_CEKKO TO E_CEKKO.
READ TABLE it_bekpo INTO wa_bekpo INDEX 1.
IF sy-subrc EQ 0.
E_CEKKO-ZZ_MENGE = wa_bekpo-menge.
E_CEKKO-ZZ_MTART = wa_bekpo-mtart.
ENDIF.
With this code I copy the input CEKKO data to the output CEKKO data and I fill in the Z-fields menge (Purchase order quantity) and mtart (Material type)
So for so good!
After I completed my customizing, I began testing and I bumped against a weird <u>problem</u>:
<i><b>It appears that when I fill in a qty of 1,3L (in ME21N) that the system thinks it is 1300L.</b></i>
Did you already have this problem and maybe you can give me a hint in the right direction?
Kind Regard,
Bert D
04-28-2006 2:05 PM
Hi Bret,
What is the reference field you are using for the QTY? Check if there is any conversion routine at the dataelement level.
Cheers
VJ
04-28-2006 2:05 PM
Hi Bret,
What is the reference field you are using for the QTY? Check if there is any conversion routine at the dataelement level.
Cheers
VJ
04-28-2006 2:11 PM
Hello Bert,
Firstly r u trying to move item level qty to the header level qty?? Is this logic correct??
E_CEKKO-ZZ_MENGE = wa_bekpo-menge.
secondly before u coded this logic in the user exit how the system behaving when u entered 1,3L in the qty. Check that first. It has got to do something with the format at vendor level i think.
04-28-2006 2:18 PM
VJ,
My ZZ_MENGE fields uses data-element BSTMG and it refers to EKPO-MEINS which should be correct...
There are nog conversions at domain level for BSTMG
Dani,
The logic is correct yes. I'm going to check the default logic. Can you tell me where I can find those vendor specific settings?
Regards
Bert D.
<u><b>UPDATE</b></u>
I added a new field to the CEKKO structure: ZZ_MEINS
It is being filled up along with the other Z-fields. I changed the reference of the ZZ_MENGE field from EKPO-MEINS to ZACEKKO-ZZ_MEINS.
After testing, the same behavoir still exists.
Can someone spare a clue for me?
Message was edited by: Bert D
11-06-2008 11:04 AM
Dear Bert D,
Can you please guide me how to add the new field in CEKKO. I Like to add UBETO (over delivery tolerance) in the structure.
Also can you please give the coding to update the UBETO value to CEKKO new field.
Thank you
Siva