Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call transaction

Former Member
0 Likes
1,119

Hi,

I'm trying to create an order through KKF1 by method call transaction through my program,It's not creating the order.

But when I tried to do it individually through KKF1 transaction. It's creating the order with same input values.

Could anyone let me know what would be the reason for this.

Thanks

Natasha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,069

Hi Natasha,

before using call transaction you have to set the fields with the values for Order type, material number and plant.

To do this u have to use the 'SET PARAMETER ID ' statement.

The parameter IDs for these are.

Order type - AAT

Material Number - MAT

Plant - WRK

Hope this will help you.

Regards,

Bhavesh.

Hi Natasha,

before using call transaction you have to set the fields with the values for Order type, material number and plant.

To do this u have to use the 'SET PARAMETER ID ' statement.

The parameter IDs for these are.

Order type - AAT

Material Number - MAT

Plant - WRK

Hope this will help you.

Regards,

Bhavesh.

7 REPLIES 7
Read only

Former Member
0 Likes
1,069

Hi Natasha,

Post the relevant code.

Check if the internal table is getting populated or not. There could be many possibilities.

Regards

Abhii

Read only

Former Member
0 Likes
1,069

for using call transaction you need to pass selection screen input values. r u doing the same?

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,069

Try BAPI_PRODORD_CREATE

BAPI_INTERNALORDER_CREATE

KAUF_ORDER_CREATE

Read only

Former Member
0 Likes
1,070

Hi Natasha,

before using call transaction you have to set the fields with the values for Order type, material number and plant.

To do this u have to use the 'SET PARAMETER ID ' statement.

The parameter IDs for these are.

Order type - AAT

Material Number - MAT

Plant - WRK

Hope this will help you.

Regards,

Bhavesh.

Read only

Former Member
0 Likes
1,069

For your requirement you will have to set the parameter id 's that are present in the transaction.

Eg:


SET PARAMETER ID 'AAT'  FIELD 'VALUE1' "Value for Order Type
SET PARAMETER ID 'MAT'  FIELD 'VALUE2' "Value for Material
SET PARAMETER ID 'WRK' FIELD 'VALUE3' "Value for plant
  CALL TRANSACTION 'KKF1' AND SKIP FIRST SCREEN.

Read only

Former Member
0 Likes
1,069

Hi Natasha,

You can put break-point and see what is coming in the BDC data internal table.

Also, execute BDC in foreground, and see what is happening.

Regards,

Nisha Vengal.

Read only

Former Member
0 Likes
1,069

Hi Natasha,

Please Debug the Program find first if you data is coming in the internal table the check

BDCDATA Table is populating or not and in call transaction use display mode as 'A' " all screen

you will get the answer

Regards

Nilesh.