‎2008 Nov 25 12:07 PM
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
‎2008 Nov 25 2:26 PM
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
‎2008 Nov 25 1:12 PM
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.
‎2008 Nov 25 2:26 PM
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
‎2008 Nov 26 8:45 AM
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
‎2008 Nov 26 9:42 AM
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
‎2008 Nov 28 11:58 AM
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
‎2008 Dec 01 2:07 PM
Hi,
I think you should create a Z structure with the required fields.
Rhea.
‎2008 Dec 02 11:22 AM
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
‎2008 Dec 04 7:50 AM
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