Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VL02 Output type

Former Member
0 Likes
1,368

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

1 ACCEPTED SOLUTION
Read only

Pawan_Kesari
Active Contributor
0 Likes
1,246

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.

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

7 REPLIES 7
Read only

former_member209818
Active Contributor
0 Likes
1,246

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

Read only

Pawan_Kesari
Active Contributor
0 Likes
1,247

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.

Read only

0 Likes
1,246

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

Read only

0 Likes
1,246

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.

Read only

0 Likes
1,246

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

Read only

0 Likes
1,246

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.

Read only

former_member189779
Active Contributor
0 Likes
1,246

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.