12-03-2015 10:23 AM
Hi,
I need to copy the Basic Finish Date from 'IW38' to Custom field (Target Date) of type date under enhancement tab in IW32 tcode. I have design layout in screen 900 of function group xwoc. Please refer the screen designing i have attached.
Jiya
12-03-2015 10:43 AM
Hello Jiya,
Suppose the field name of your Target date is ZZTRGTDT, then:
Put this code in the include ZXWOCU07 of user-exit IWO10009.
CAUFVD_IMP-ZZTRGRTDT = CAUFVD_IMP-GLTRP.
CALL FUNCTION 'CO_IH_SET_HEADER'
EXPORTING
CAUFVD_IMP = CAUFVD_IMP.
PERFORM HEADER_UPDATE(SAPLCOIH).
When you create an Order with Basic Finish Date filled OR whenever you put the Basic Finish Date and Save the Order the Target Date field is automatically updated with the value of Basic Finish Date upon SAVE event of the Order. You can verify this by re-entering the Order ( IW33 / IW32).
Hope this serves your purpose.
Also have a look at this related document posted recently.
Regards
KJogeswaraRao
12-03-2015 10:43 AM
Hello Jiya,
Suppose the field name of your Target date is ZZTRGTDT, then:
Put this code in the include ZXWOCU07 of user-exit IWO10009.
CAUFVD_IMP-ZZTRGRTDT = CAUFVD_IMP-GLTRP.
CALL FUNCTION 'CO_IH_SET_HEADER'
EXPORTING
CAUFVD_IMP = CAUFVD_IMP.
PERFORM HEADER_UPDATE(SAPLCOIH).
When you create an Order with Basic Finish Date filled OR whenever you put the Basic Finish Date and Save the Order the Target Date field is automatically updated with the value of Basic Finish Date upon SAVE event of the Order. You can verify this by re-entering the Order ( IW33 / IW32).
Hope this serves your purpose.
Also have a look at this related document posted recently.
Regards
KJogeswaraRao
12-03-2015 12:14 PM
Hi,
I have written this code as structure name is zzotfd,now what i need to write on PERFORM HEADER_UPDATE(SAPLCOIH).?
It was not existing so i have created as global data in include program ZXWOCTOP and object name is SAPLCOIH, now what i need to write under perform statement
.Can you guide me. I have pasted the code.
IF sy-tcode = 'IW38' .
caufvd_imp-zzotfd = caufvd_imp-gltrp.
ENDIF.
CALL FUNCTION 'CO_IH_SET_HEADER'
EXPORTING
caufvd_imp = caufvd_imp
* IMPORTING
* CAUFVD_EXP =.
PERFORM HEADER_UPDATE.
Thanks in Advnace.
Jiya
12-03-2015 12:21 PM
Jiya,
Why confusion?
I have clearly mentioned that this code is for include ZXWOCU07. Put the code as it is. There is nor IW38 here. You may use Code IW32 for If. The result will be seen upon Order SAVE.
12-08-2015 10:24 AM
Hi,
The code is working fine in debugging mode and it will work in save mode, i need to display the value on screen while we open a transaction iw32
i need to display like the highlighted one
Jiya
12-08-2015 10:43 AM