2016 Jun 07 3:24 PM
Hi Experts,
I have added custom field EKKO-zzlprio with F4 help while saving the PO the value of this field is updating in EKKO table but updated value is not showing on screen after save.
After debugging it shows the changed value but directly it is showing previous value.Please help me with the problem.Thanks in advance.
2016 Jun 07 3:40 PM
Which BADI/ Exit/ Enhancement are you using to populate this custom field?
Thanks,
Juwin
2016 Jun 07 3:54 PM
Hi Juwin,
I am using following exits:
EXIT_SAPMM06E_006 --> LXM06F36
EXIT_SAPMM06E_007 --> LXM06F38
EXIT_SAPMM06E_008 --> LXM06F37.
Thanks.
2016 Jun 07 3:57 PM
In EXIT_SAPMM06E_008, what are the values being passed back to the caller? Are you populating E_CI_UPDATE field?
Thanks,
Juwin
2016 Jun 07 4:02 PM
Hi ,
Following code is written there:
IF sy-tcode EQ 'ME21N' OR sy-tcode EQ 'ME22N' OR sy-tcode EQ 'ME23N' .
ekko_ci-zzlprio = ekko-zzlprio.
ENDIF.
No, I am not populating E_CI_UPDATE field.
2016 Jun 07 4:11 PM
You have to populate that flag field E_CI_UPDATE as X, so that calling program knows you have updated the Zfield. Kindly populate this field as X and try again.
Thanks,
Juwin
2016 Jun 07 4:16 PM
Hi,
Please explain me clearly where and how this should be updated.Thanks!
2016 Jun 07 4:22 PM
You may use:
IF sy-tcode EQ 'ME21N' OR sy-tcode EQ 'ME22N' OR sy-tcode EQ 'ME23N' .
ekko_ci-zzlprio = ekko-zzlprio.
E_CI_UPDATE = 'X'.
ENDIF.
2016 Jun 07 4:30 PM
Hi ,
I had tried that but when i create any PO using ME21n and after save if i navigate to display the next PO, it was asking me for saving blank PO.That's why i removed that code.
2016 Jun 07 4:41 PM
Ok, for that, try this way:
IF sy-tcode EQ 'ME21N' OR sy-tcode EQ 'ME22N' OR sy-tcode EQ 'ME23N' .
if ekko_ci-zzlprio <> ekko-zzlprio.
ekko_ci-zzlprio = ekko-zzlprio.
E_CI_UPDATE = 'X'.
endif.
ENDIF.
2016 Jun 08 8:33 AM
Hi,
I tried it's not working, do you have any other solution. Please help.
2016 Jun 08 8:47 AM
Hi Bhoomika,
In the Exit EXIT_SAPMM06E_008, Have you updated the field like below:
e_ci_ekko-zzlprio = ekko_ci-zzlprio.
In the User Exit EXIT_SAPMM06E_006,
ekko_ci-zzlprio = I_ekko-zzlprio.
Please try above.
Thanks and Regards,
Vinay Mutt
2016 Jun 08 11:31 AM
Hi Bhoomika ,
Please follow the below links .
SAPTechnical.COM - Adding custom fields to the Purchase Order transaction ME22N
Guide How to Create or Define a Custom fild in Purchase Order - ERP SCM - SCN Wiki
With Regards,
Sudhir S