‎2007 Aug 20 6:26 AM
Hi,
Can anyone tell me which function module to be used for OUtbound DESADV01 which i will be using for ASN. In addition to this, please let me know which procesisng code will be used.
Can anyone please share the code for writting a funciion module in case I have to write custom FM.
Regards
Rinku
Message was edited by:
Rinku Malik
‎2007 Aug 20 6:52 AM
Hi Rinku,
Try the below FM
Function module : IDOC_OUTPUT_DELVRY
Process code : DELV
Message type : DESADV
<b>User Exits</b>
EXIT_SAPLV56K_001
EXIT_SAPLV56K_002 - here you can write the code
<b>Reward Points if helpful</b>
Regards
Gokul
‎2007 Aug 20 6:53 AM
Hi,
Check this Function module
IDOC_OUTPUT_DESADV01
Check this process code
SD05
Regards
Arun
‎2007 Aug 20 7:48 AM
Hey Arun,
Did you see Gokul's reply. Why do you think it is not correct...I am confused now which one is right ! !
<b>Question, I have to ammend get some data from custom table too so how can I add that in the IDOC.</b>
Message was edited by:
Rinku Malik
‎2007 Aug 20 9:40 AM
Hi,
In the Function module IDOC_OUTPUT_DESADV01 there are no user exits available.
Regards
Arun
‎2007 Aug 21 6:16 AM
Hi,
Create a new function group from se37.
From the menu Goto --> Function group --> create group
Copy the function module IDOC_OUTPUT_DESADV01 into ZIDOC_OUTPUT_DESADV01 function module. Add your code in the function module.
create a new Z Process code ZSD05 in we41 tcode and attach the function module
ZIDOC_OUTPUT_DESADV01 to the process code.
In tcode we57 attach the function module to the idoc type and message type.
Regards
Arun
‎2007 Aug 21 7:38 AM
Hi,
Try IDOC_OUTPUT_DELVRY function module. Because exits are already available, Extend it using the exit.
If not try creating a new function module by copying the already existing function module and extend it.
Regards
Arun