‎2005 Oct 18 2:38 PM
Hi all,
Is there any way i can change the values entered on Screen in program.
I have a following Scenario:
1) In Transaction IW32, user will change short text etc for operation.
2) During SAVE, we will check certain conditions in USER Exit EXIT_SAPLCOIH_009.
3) Inside this user exit i am using FM PM_ORDER_DATA_READ to read the values entered on the screen.It will give me internal table which will be exact replica of Table control on the screen. Internally this FM is reading values from Screen and transporting it to the Memory ID.
4)Based on some condition it is required to revert the changes done for particular operation. I have tried changing the values in internal table and exporting it again to memory, but it didn't reflect after save. I was under impression that execution of SAVE after user exit will take the values from memory id. But it seems that it's taking values from screen only.
I am thinking, if we can read the values entered on screen , is it possible to change this values also.
Let me know if more clarification is required.
Note: I have one more thread open for Long Text under same scenario. Please consider this two threads independent of each other.
Akash
‎2005 Oct 18 2:59 PM
We use this exit to carry out error checking and to send user messages via pop-ups etc... one of the problems we had was that if the user saves from a screen other than the central header screen the data structure CAUFVD_IMP is incomplete so we forced users to only be able to save from the central header screen to ensure data consistency. Another problem which might be more reflective of your issue is that there is no export structure from the user exit so you cannot change data and transport it back to the screen. Perhaps that has changed in the newer versions as we on 3.1i.
Hope this helps.
Dave
‎2005 Oct 18 4:12 PM
HI,
Why don't you use BADI workOrder_update , create implemention for this definition if implementation is not created (Version 4.7) in Before_update method. if you are using 4.6c just try same logic in_update or At_save methods
Just add following logic
declare as follows
FIELD-SYMBOLS: <fs_operation> TYPE afvgb.
LOOP AT it_operation ASSIGNING <fs_operation>.
<fs_operation>-slwid = c_ywty001.
ENDLOOP.
Thanks
Ramesh
‎2006 Jan 11 10:15 AM
Hi:
I have the same problem, but i want to modify fields from an ampliation-user Screen.
the fields are it_header-YYEDIF_HKONT and it_header-YYEDIF_AUFNR
but the bady only have import parameters, and i did'nt know how can i change them.
Thanks.