cancel
Showing results for 
Search instead for 
Did you mean: 

To Get the Inquiry Number from BAPI_INQUIRY_CREATEFROMDATA2 bapi using webd

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Madhusudhan,

Can you post your code?

J

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member192434
Active Contributor
0 Kudos

check the data is coming or not at backend side, also u can try to debugg ur application by putting some brake points.

Former Member
0 Kudos

Hi,

Please refer to the following thread:

May be this can help you.

Regards.

Rajat

Former Member
0 Kudos

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