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

Output Types Query

Former Member
0 Likes
518

Hi All,

I have got a requirement that once the status of the shipment is changed to loading end (Transaction VT02N) the partner function should receive a mail.

What I thought was to write the code in the user exit.

But the client is thinking using the output types.

My question is that how can I pass the shipment number from the output types to my code?

what will be the interface between the Output type and my code?

Please help

Dnyanesh

3 REPLIES 3
Read only

Former Member
0 Likes
475

The data in the transaction will be accessible to your program (through output types through Communication structures like NAST).

Tha nast-objkey wil have the document number,(In this case it will be shipment number).

Once you have the shipment number, you can get all other data using tables VTTK, VTTP, VTTS etc.

Regards,

Ravi

Read only

Former Member
0 Likes
475

Hi,

For every condition type which is triggered based on some business logic, an entry is stored in table NAST and TNAPR. Refer to these two tables you can find the Document Key and further you can refer to the IDOC`s control record. First step is that you`ll have to identify the output type that is configured for the shipment transaction.

Reward if helpful.

Regards

Read only

Former Member
0 Likes
475

Hello,

I think u can use routines for ur requirement.

Vasanth