Application Development 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: 

Any BAPI or FM for transaction TP04

Former Member
0 Kudos

Dear all,

Please tell me are there any bapi or FM to create travel request.

Please help me.

Thanks and Regards,

Chandra

4 REPLIES 4

Former Member
0 Kudos

Hi,

Check this FM this will help you i think,

<b>SWX_TRAVELREQ_CREATE</b>

\[removed by moderator\]

Regards,

Vimal

Edited by: Jan Stallkamp on Aug 6, 2008 2:26 PM

0 Kudos

Dear Vimal,

Thank you very much,

I think the above function module for booking scenario.

Please help me.

Thanks and Regards,

Chandra M

amit_khare
Active Contributor
0 Kudos

I think you need to use BDC.

This BAPI is there - BAPI_TRIP_CREATE_FROM_DATA but it uses PR01.

Check following to find BAPI for any tcode -

1. Find out the package of the transaction.

Start Va01 go to system --> status.

Double click on transaction

Package is VA

Open this package in SE80

Open business engineering-->Business object types

Find the BO which sounds the most appropriate

I would suggest BUS2032 Sales Order

Double click.

Open methods.

Find the released method with from data or something similar in the name

, Createfromdat2

Position the cursor in it and click the program button

Scroll down to find the bapi used in this method

With this way you can also find out programs and FM's

2. Start va01 go to system-->status

Double click transaction VA01

Double click on package

Read the application component. (this is SD-SLS Sales)

Then open the transaction BAPI

Sales and distribution>Sales>sales order

createfromdat2

Regards,

Amit

\[removed by moderator\]

Edited by: Jan Stallkamp on Aug 6, 2008 2:26 PM

0 Kudos

Dear Amit,

Thanku very much,

I have tried with bdc(included in the RFC), but the problem is when I am trying to call from frontend(web dynpro appl) it is giving problem.

Thanks and Regards,

Chandra