on 02-27-2008 2:56 PM
I have a invoice creation scenario. We have two tables on EP with name invoice & invoice_detail. I have created a BAPI which takes ZISOH_STRUCT structure, similar to invoice table, as import parameter and invoice_detail in tables.
When I created a Webdynpro adaptive RFC model and it gives me error:
Mandatory parameter ZISOH_STRUCT of method ZBAPI_CREATE_ORDER missing
any idea whats wrong with my code or BAPI?
my problem has been fixed by doing following changes in the code:
1. Initialize the import parameter structure in the wdDoInit() method or any where before using it and link it to parent model class reference.
Zisoh model = new Zisoh();
Zbapi_Create_Interim_Order_Input requestMO = new Zbapi_Create_Interim_Order_Input();
requestMO.setZisoh_Struct(model);
wdContext.nodeZbapi_Create_Interim_Order_Input().bind(requestMO);
2. When table parameters is passed you need to get parent model class reference and call add<parametername>() method on the reference for table parameters .
wdContext.currentZbapi_Create_Interim_Order_InputElement().modelObject().addZisoi_Tab(tabLineItem);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ali,
I think the problem is with your BAPI. When you add the return structure, please make sure that its a 'table type'( Commonly used Std format). When you follow this way you will get a warning like 'Use of table type may reduce RFC performance'. Ignore this and go on.
This will work; Ensure that you specify the table type under Export tab (Not in tab Tables).
This will work.
Regards
-Vinod
reward, if found helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
Try to reimport the FNM then restart the sevrver and try to bind to UI elements.
check like this or other wise give me ur NWDS and EP version details.
Thanks,
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Javed,
Just ensure that you have added ZISOH_STRUCT to your node with valid values before executing the BAPI.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any body out there to help me out?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.