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

EXTENSIONIN PARAMETER IN BAPI_RESERVATION_CREATE1

Former Member
0 Likes
2,298

Hi Experts,

I need the extension structure name to use when I have custom fields during the creation of a reservation via the BAPI, BAPI_RESERVATION_CREATE1.

The thing is I am creating the reservation from srm, but for my cuf fields to be displayed, I need to pass them through the BAPI extension structure. I have tried all sorts of structures and they do not work.

I need your help guys.

Thabo.

Edited by: Thabo Matsepe on Nov 25, 2008 1:10 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,583

Hi,

In the EXTENSIONIN param Structure should be BAPI_TE_XXXXX(Which has the custom fields) .

If you don't know one in se11 search with BAPI_TE_* , I am sure you will one which has ur fields.

And then in Value part1 should have your data.

For Ex. you want to send company code , asset no.

first4 will be your comp code , Next 12 will ur Asset no .

Please revert back if more help required.

Also Check for similar work

[Thread|https://forums.sdn.sap.com/click.jspa?searchID=19143539&messageID=6381845]

Rhea.

Edited by: rhea on Nov 25, 2008 3:31 PM

Edited by: rhea on Nov 25, 2008 3:31 PM

8 REPLIES 8
Read only

Former Member
0 Likes
1,583

Hi,

You can extend your own parameters by enhancing the BAPI .

Goto function module < enhance interface.

It will ask for Implementation name.

According to your requirement write the code.

Read only

Former Member
0 Likes
1,584

Hi,

In the EXTENSIONIN param Structure should be BAPI_TE_XXXXX(Which has the custom fields) .

If you don't know one in se11 search with BAPI_TE_* , I am sure you will one which has ur fields.

And then in Value part1 should have your data.

For Ex. you want to send company code , asset no.

first4 will be your comp code , Next 12 will ur Asset no .

Please revert back if more help required.

Also Check for similar work

[Thread|https://forums.sdn.sap.com/click.jspa?searchID=19143539&messageID=6381845]

Rhea.

Edited by: rhea on Nov 25, 2008 3:31 PM

Edited by: rhea on Nov 25, 2008 3:31 PM

Read only

0 Likes
1,583

Thanks Rhea,

That is actually my problem, I searched for four days now for this structure but I still cannot find it.

I also had the same idea that I must look for a structure - BAPI_TE_*, but I searched and searched and I cannot find a relevant one for Reservations.

Do you have any ideas?

Thanks,

Thabo

Read only

0 Likes
1,583

Hi,

May i know the customer fields you are trying to pass?

May be you need to create a structure 'ZBAPI_TE_RESB' with your custom fields.

Rhea.

Edited by: rhea on Nov 26, 2008 10:50 AM

Read only

0 Likes
1,583

Hi Rhea,

My fileds are Net Asset and Regional Indicator, the fields do appear on the coding block structure CI_COBL, so the fields do appear on the PO for example.

Now I want to make the same fields appear on the Reservation.

I have also realised when debugging object BAPI_RESERVATION_CREATE1, that when I force populate the item structure s_resb, the fields do not populate, but when I force populate the header structure s_rkpf then the fields get populated on the reservation. This gives me an idea that I must populate a structure that references the header table RKPF.

The other thing is that the coding block structure CI_COBL is part of RKPF.

Regards,

Thabo

Read only

0 Likes
1,583

Hi,

I think you should create a Z structure with the required fields.

Rhea.

Read only

0 Likes
1,583

Hi,

Check these structures.

BAPIRKPF

BAPIRKPF_APP

BAPIRKPFC

BAPIRKPFC_APP

and

BAPI_TE_MEREQACCOUNTING

Rhea.

Edited by: rhea on Dec 2, 2008 12:34 PM

Read only

0 Likes
1,583

Hi Rhea,

I have also realised that there is a lot of inconsistencies with the SAP code, so I have logged a customer message with them.

Thanks a lot for your help.

I will wait for SAP to resolve some of the issues first.

Regards,

Thabo