on 01-09-2009 11:28 AM
Hi all
To Get the Inquiry Number
Iam trying to get the data from BAPI_INQUIRY_CREATEFROMDATA2 bapi using webdynpro java
Ihave submitted the mandatory values like matrial,quantity,item no.....
When i retriving the inquiry number it is not getting,but when I get the message from the return structure
MESSAGE
it is showing"The HEADER_IN is successfully executed",but the number is not returning
Iam trying to access it from the "salesdocument" attribute.
Any help will be awarded
thanks
madhu
Hi,
once check the BAPI in ECC side .
if working fine use external break point and check the rfc execution through the webdynpro java (UI).
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhusudhan,
Can you post your code?
J
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
public void wdDoInit()
{
Bapi_Inquiry_Createfromdata2_Input bin=new Bapi_Inquiry_Createfromdata2_Input();
wdContext.nodeBapi_Inquiry_Createfromdata2_Input().bind(bin);
bin.addInquiry_Conditions_In( new Bapicond());
bin.addInquiry_Items_In( new Bapisditm() );
bin.addInquiry_Partners(new Bapiparnr() );
bin.addInquiry_Schedules_In(new Bapischdl() );
bin.setInquiry_Header_In(new Bapisdhd1() );
}
public void executeBapi_Inquiry_Createfromdata2_Input( )
{
//@@begin executeBapi_Inquiry_Createfromdata2_Input()
IWDMessageManager mgr=wdComponentAPI.getMessageManager();
try
{
wdContext.currentBapi_Inquiry_Createfromdata2_InputElement().modelObject().execute() ;
wdContext.nodeOutput().invalidate() ;
}
catch(Exception e)
{
mgr.reportException(e.getMessage() ,false );
}
Here i am getting the message SALES_HEADER_IN has been processed successfully
but not returning the sales document number
thanks
madhu
Hi,
It is better to discuss with an ABAP guy or Functional guy and check what are the mandatory or optional fields that are needed to be supplied to the BAPI. Because as you are using Standard BAPI from SAP, you need to understand the behaviour of BAPI. In some cases you also need to pass some optional parameters that are needed for the BAPI. You also can try to Debug BAPI from webdynpro using External Debugging.
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check the data is coming or not at backend side, also u can try to debugg ur application by putting some brake points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhusudan,
You have to invalidate the Output node which is child node of RFC Input node. After invalidating Web Dynpro will extract the data from passive model.
Best Regards,
Gopal
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.