11-26-2009 3:29 PM
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.
11-27-2009 7:25 AM
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.
11-26-2009 3:32 PM
Hi Natasha,
Post the relevant code.
Check if the internal table is getting populated or not. There could be many possibilities.
Regards
Abhii
11-26-2009 4:05 PM
for using call transaction you need to pass selection screen input values. r u doing the same?
11-27-2009 4:47 AM
Try BAPI_PRODORD_CREATE
BAPI_INTERNALORDER_CREATE
KAUF_ORDER_CREATE
11-27-2009 7:25 AM
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.
11-27-2009 10:11 AM
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.
11-27-2009 7:56 PM
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.
11-28-2009 3:08 PM
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.