cancel
Showing results for 
Search instead for 
Did you mean: 

Can BAPI_PR_CREATE work in VC?

Former Member
0 Kudos

Hi, all. I tried to test BAPI_PR_CREATE in VC7.0.

I have already checked input parameters by se37, but I still counldn`t use this bapi in VC correctly.

So I think that maybe VC7.0 doesn`t support this bapi. Am I right? Or just I didn`t use this bapi in the correct way.

Best Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I am able to use BAPI_PR_CREATE in VC7.0 .

First check did you configured the connection settings and all.

Try to accessBapi_bank_getlist .

Plz let me know your issues

Goivndu

Former Member
0 Kudos

Hi, Govindu.

I could use BAPI_BANK_GETLIST or BAPI_SALESORDER_GETLIST successfully.

When I tested BAPI_PR_CREATE, I used 4 input ports:1. Prheader 2. Prheaderx 3. Pritem 4. Pritemx.

Following are my input values:

Prheader: PR_TYPE = NB

Prheaderx:PR_TYPE = X

Pritem: Material = 1157

Plant = 1000

Quantity = 1

Pritemx: Material = X

Plant = X

Quantity = X

(PS:I tried these parameters in my backend system and it could work )

Then I got a message "No instance of object type PurchaseRequisition has been created. External reference: # 1"

Thx for you guys help.

Former Member
0 Kudos

Hi, Govindu.

Can you tell me what parameters did you actually ues?

Best regards.

Louis Huang.

Former Member
0 Kudos

I find the anwser finally.

One of my input parameter "Material" can`t be "1157".

Although the value "1157" can work in SE37 but not in VC.

I changed a value "M-15" and it could work.

So wired......

Former Member
0 Kudos

Hi Louis,

>One of my input parameter "Material" can`t be "1157".

>Although the value "1157" can work in SE37 but not in VC.

This just can't be the reason.

If the external service works fine with one valid input, then it should work for all valid inputs.

Please check again.

Regards,

Vani

Former Member
0 Kudos

Hi, vani.

The actual reason is about the "size".

The total characters for a material is 18.

So if I change "1157" with "000000000000001157", then it can work.

Thx for your reminding.

Best Regards.

Louis Huang.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Louis,

>So I think that maybe VC7.0 doesn`t support this bapi

There is no such thing as this bapi works in VC and the other doesn't !

Please check the following:

1. Are you able to test the data service successfully (right-clk on the dragged bapi and select test data service) at design time? Does it give you desired output?

2. Are you providing the right inputs?

If you get any error, please post it here.

Regards,

Vani

Former Member
0 Kudos

Hi, vani.

Thx for your help.

I doubt that there is something wrong with my parameters, but I have no idea how to solve this problem.

I have checked my parameters which can work in SE37. I posted my parameters and the result few posts before. You can check it out.

Best Regards.

Louis Huang.

Former Member
0 Kudos

Hi Louis,

Kindly check you've authorization to use the BAPI.

Regards

Basheer

Former Member
0 Kudos

Hi, Basheer.

I have checked my authorization and it`s not the reason.

Thx ^^

Best Regards.

Louis Huang

Former Member
0 Kudos

Hi Louis,

Kindly elaborate your problem, where you find the difficulty? Can you able to drag the bapi into the visual composer story board.

Regards

Basheer

Former Member
0 Kudos

Hi, Basheer.

I could drag a BAPI from the pannel. I just didn`t know what parameters I exactly need.

Best Regards,

Louis Huang.