2012 May 24 3:50 AM
Hi Experts,
I am using CO_SE_PRODORD_CHANGE to update operation details of production order.
Given below is my code snippet.
CALL FUNCTION 'CO_SE_PRODORD_CHANGE'
EXPORTING
iv_order_number = st_output-tprodord
* is_header =
* IT_HDR_USER_STATUS =
* IT_SEQUENCE =
it_operation = lt_operations_new
* IT_OPR_USER_STATUS =
* IT_PRT =
iv_commit = 'X'
IMPORTING
es_return = lw_return.
The FM returns an error "No active nametab exists for CI_AUFK".
But when i execute the function module as stand alone in SE37, the production order gets updated correctly.
Please help me solve this issue.
Thanks,
Saritha.
Hi Experts,
I am using CO_SE_PRODORD_CHANGE to update operation details of production order.
Given below is my code snippet.
CALL FUNCTION 'CO_SE_PRODORD_CHANGE'
EXPORTING
iv_order_number = st_output-tprodord
* is_header =
* IT_HDR_USER_STATUS =
* IT_SEQUENCE =
it_operation = lt_operations_new
* IT_OPR_USER_STATUS =
* IT_PRT =
iv_commit = 'X'
IMPORTING
es_return = lw_return.
The FM returns an error "No active nametab exists for CI_AUFK".
But when i execute the function module as stand alone in SE37, the production order gets updated correctly.
Please help me solve this issue.
Thanks,
Saritha.
2012 May 24 4:24 AM
Hi,
First check on the below SAP Note
Note 922484 - System message when you change the order using a BAPI
Or
Just check on the AUFK table, any new fields must be added aor deleted to the table with custom include CI_AUFK and must not have activated correctly.
Try executing the Program 'RSNTABCONSISTENCY'
Select "Individual Objects", click F4, select "Search for Database Tables", and give AUFK table.
Thanks & Regards
Bala Krishna
2012 May 25 2:56 AM
The issue was occurring due to a subcontracting operation. I had missed out on paasing the purchasing group and material group. Found that these fields need to be passed for subcontarcting operations.
But now i have another issue. In case of subcontracting operations, Purchase organization is also a mandatory field. The FM does not have any parmeter to pass the purchase Organization.
Can someone please help with this? How do i create subcontracting operations using this FM? Is there any other FM/BAPI to do that?
Thanks,
Saritha
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |