06-06-2011 7:47 AM
Dear All Experts,
We have some requirements to add new field in purchase order. We have done some development on this, but it is not working. Below :-
<<Specifications removed by moderator>>
Coding is as below:-
zxm06top
data: gl_aktyp type c,
gl_no_screen type c,
gl_rekko like ekko,
gl_ekko_ci like ekko_ci,
gl_ekpo_ci like ekpo_ci,
gl_ekpo like ekpo,
gl_ekko like ekko,
gl_ucomm like sy-ucomm.
types: begin of ekko_tab,
ebeln like ekko-ebeln,
ebelp LIKE ekpo-ebelp,
ekko like ekko,
end of ekko_tab.
data: gt_ref_ekko_tab type table of ekko_tab.
EXIT_SAPMM06E_006
gl_aktyp = i_trtyp.
gl_no_screen = i_no_screen.
ekko_ci = i_ci_ekko.
gl_ekko = i_ekko.
EXIT_SAPMM06E_007
move-corresponding i_ekko to gl_ekko_ci.
gl_ekko = i_ekko.
EXIT_SAPMM06E_008
e_ci_ekko = gl_ekko_ci.
if gl_ekko_ci-zzremark1 ne ekko_ci-zzremark1.
e_ci_ekko-zzremark1 = ekko_ci-zzremark1.
if gl_aktyp ne 'A'.
e_ci_update = 'X'.
endif.
endif.
But i am unable to save records to EKKO table and also unable to fetch them.
Kindly help me on this topic.
Regards,
Shaligram
Moderator Message: Do not dump your specifications. Be clear with what exactly is your problem. A generic statement, saying that "its not working", does not help. Have you debugged your program and tried to analyze where's the problem area?
Edited by: kishan P on Jun 6, 2011 2:06 PM
06-06-2011 7:57 AM
Hi,
Try this :
To Move data from screen fields to program and vice versa
(A). Screen fields to program (EXIT_SAPMM06E_008)
In this FM :
move-corresponding (Yor screen fields, i guess it is *gl_ekko_ci* in your program) to e_ci_ekko.
(B). Program to Screen (EXIT_SAPMM06E_006)
In this FM :
move-corresponding i_ekko to (Yor screen fields, i guess it is *gl_ekko_ci* in your program).
Similarly for item details and make sure that your project is active
06-06-2011 8:20 AM
Hi,
Add the below code to the exit EXIT_SAPMM06E_006
MOVE-CORRESPONDING I_CI_EKKO TO CI_EKKODB.
Regards,
Nagaraj
06-06-2011 9:33 AM
Thank you very much for your replies, but still i am unable to solve my problem.