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

How to trigger VA21 form driver program in other custom program

0 Likes
916

Hi Experts,

I have created one driver program to create quotation(VA21) by using BAPI.Quotation is creating successfully.But my requirement is after creation of quotation need to trigger form driver program immediately why because this driver progarm contains code to convert quote smartform in to PDF format and placing in content server.After placing in content server need to get this form PDF data into my custom program(where BAPI is calling) and need to convert into Xstring format and send to SAP PI.

Please suggest me how to trigger this quotation smartform driver program immediately after creation of quotation using BAPI.Is it possible through NACE output type and condition record settings or possible to trigger this driver program from custom program(where BAPI is calling) immediately after creation of quotation.

Thanks in advance..

Regards

vijay

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
751

if your quotation smartform driver program is assigned to a message type, you can set the customizing to output immediately. For you, I assume medium 5 (external transmission) and time spot 4 (send immediately upon saving).

Regards, Clemens

Hi Experts,

I have created one driver program to create quotation(VA21) by using BAPI.Quotation is creating successfully.But my requirement is after creation of quotation need to trigger form driver program immediately why because this driver progarm contains code to convert quote smartform in to PDF format and placing in content server.After placing in content server need to get this form PDF data into my custom program(where BAPI is calling) and need to convert into Xstring format and send to SAP PI.

Please suggest me how to trigger this quotation smartform driver program immediately after creation of quotation using BAPI.Is it possible through NACE output type and condition record settings or possible to trigger this driver program from custom program(where BAPI is calling) immediately after creation of quotation.

Thanks in advance..

Regards

vijay

2 REPLIES 2
Read only

Clemenss
Active Contributor
0 Likes
752

if your quotation smartform driver program is assigned to a message type, you can set the customizing to output immediately. For you, I assume medium 5 (external transmission) and time spot 4 (send immediately upon saving).

Regards, Clemens

Read only

0 Likes
751

Thanks Clemens for your reply

I tried this but when i create quote through my custom program output type is generating correctly but it is in yellow color.When i save this quote manually in VA22 that time output is triggering and became to green color and sending quote pdf file to content server.

So how can i trigger output type properly(to make it into green color) directly from driver program

Thanks in Advance

Regards

vijay