2012 Apr 26 2:00 PM
Hi all,
I have requirement in Sales Delivery .In VL02 or VL01 ,after doing Post Goods Issue ,user will go to extras->Delivery output->Item and here he will give an Custom Output type . This output type has to generate a .TXT file in application server .
Can some body guide how can i implement this . Shall i go for User exit ? I am proceeding with BADI - LE_SHP_DELIVERY_PROC and method SAVE_AND_PUBLISH_DOCUMENT .. But how do get information about Output type when i am in this method.
I believe i should create this .txt file when saving the document in vl01 or vl02.
Thanks,
Srini
2012 Apr 26 2:14 PM
This should be done via output control.
Configure new output in transaction NACE for application V2 (Shipping).
Search forum for how to configure output type.
Regards,
Pawan.
This should be done via output control.
Configure new output in transaction NACE for application V2 (Shipping).
Search forum for how to configure output type.
Regards,
Pawan.
2012 Apr 26 2:11 PM
Inside the output type Program only you can meet this requirement.
write your code to download file on the App server in a FM and call that FM from Driver program of the Output type as a Background task
2012 Apr 26 2:14 PM
This should be done via output control.
Configure new output in transaction NACE for application V2 (Shipping).
Search forum for how to configure output type.
Regards,
Pawan.
2012 Apr 26 2:54 PM
Hi pawan,
consider i am creating Output type and assinging it to zprogram ..So my zprogram will be called when this output type is triggered. My doubt is how do i receive transaction details like Delivery doc number into my zprogram.
Thanks,
Srini
2012 Apr 26 4:45 PM
Calling program will fill NAST structure and pass that to your Zprogram.
In Zprogram include standard program RVADTABL.
INCLUDE RVADTABL.
take a look at standard program RLE_DELNOTE.
Regards,
Pawan.
2012 Apr 26 4:59 PM
Hi Pawan,
I am able to see record created in NAST table for my Custom Output type . But my Zprogram is not calling i guess. Because in my zprgam inside subroutine i wrote some code to generate .txt file .It didnt create . Also i had break-point in my custom program which didnt trigger..
Thanks,
Srini
2012 Apr 26 5:18 PM
Create output in document with option 'send with periodically scheduled job'.
Put breakpoint in subroutine and test your output from program RSNAST00 .
Output program are called in update mode so its bit tricky debugging from transaction itself.
Regards.
Pawan.
2012 Apr 27 12:37 PM
Define your output type as transport medium as "Special Function" and attach your program in customizing to this output type which will generate the file on application server.
Use standard routine
FORM ENTRY USING RETURN_CODE TYPE I
US_SCREEN TYPE C.
You will get nast-objky which will have delivery number. Write your logic based on this delivery to generate the file.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |