Skip to Content
0
Former Member
May 28, 2010 at 03:22 AM

BAPI_SALESORDER_CREATEFROMDAT2 not can save with configure

141 Views

Hi.

I need to create sale order with configure using BAPI_SALESORDER_CREATEFROMDAT2.

But BAPI always give me error message as shown below

" SALES_HEADER_IN has been processed successfully"

" Internal error: 000100, 000100, NOT_ALL_INPUT_DATA_PROCESSED_AND_INCONSISTENT,"

" Error in SALES_ITEM_IN 000100."

If I remove all tables related to configure from BAPI . then It can generate a sale order successfully.

I think below those parameters cause the error. But I don`t know why? Please give me guidance. Thanks .

ORDER_CFGS_REF = order_cfgs_ref

ORDER_CFGS_INST = order_cfgs_inst

ORDER_CFGS_PART_OF = order_cfgs_part_of

ORDER_CFGS_VALUE = order_cfgs_value

ORDER_CFGS_REFINST = ORDER_CFGS_REFINST

Below is import value for related to configure table

order_cfgs_ref

posex conf_id root_id

000100 000001 00000100

order_cfgs_inst

Seq Config_id Inst_id

1 000001 00000100 MARA 300 000000000059000154 1

2 000001 00000200 MARA 300 000000000059000175 1

3 000001 00000300 MARA 300 000000000059000101 1

4 000001 00000400 MARA 300 000000000059000103 1

5 000001 00000500 MARA 300 000000000059000102 1

6 000001 00000600 MARA 300 000000000059000104 1

order_cfgs_part_of

Seq Config_id parent_id inst_id part of

1 000001 00000100 00000200 0015 MARA 000000000059000175

2 000001 00000200 00000300 0120 MARA 000000000059000101

3 000001 00000200 00000400 2100 MARA 000000000059000103

4 000001 00000200 00000500 2200 MARA 000000000059000102

5 000001 00000200 00000600 2411 MARA 000000000059000104

6 000001 00000200 00000700 2421 MARA 000000000059000105

order_cfgs_value

Seq conig_id inst_id

1 000001 00000100 CMA_PRODUCT_LINE 5500

2 000001 00000200 GRP_SDCOM_VKOND CMG_BASE_PRICE 7

3 000001 00000200 GRP_SDCOM_VKOND CMG_OPTION_PRICE 7

4 000001 00000200 GRP_SDCOM_VKOND CMG_INFLATION_FACTOR 7

5 000001 00000200 GRP_VBAK_VBTYP C

6 000001 00000200 GRP_MAT_FILLERS S 8

ORDER_CFGS_REFINST

Seq posex config_id Inst_id

1 000100 000001 00000100

2 000200 000001 00000200

3 000300 000001 00000300

4 000400 000001 00000400

5 000500 000001 00000500

6 000600 000001 00000600

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

EXPORTING

  • SALESDOCUMENTIN = HEADER_IN-SALESDOCUMENTIN

ORDER_HEADER_IN = ORDER_HEADER_IN

ORDER_HEADER_INX = ORDER_HEADER_INX

  • SENDER =

  • BINARY_RELATIONSHIPTYPE =

  • INT_NUMBER_ASSIGNMENT =

BEHAVE_WHEN_ERROR = BEHAVE_WHEN_ERROR

LOGIC_SWITCH = LOGIC_SWITCH

TESTRUN = TESTRUN

  • CONVERT = ' '

  • IMPORTING

  • SALESDOCUMENT =

TABLES

RETURN = RETURN

ORDER_ITEMS_IN = ORDER_ITEMS_IN

ORDER_ITEMS_INX = ORDER_ITEMS_INX

ORDER_PARTNERS = order_partners

ORDER_SCHEDULES_IN = order_schedules_in

ORDER_SCHEDULES_INX = order_schedules_inx

ORDER_CONDITIONS_IN = ORDER_CONDITIONS_IN

ORDER_CONDITIONS_INX = ORDER_CONDITIONS_INX

ORDER_CFGS_REF = order_cfgs_ref

ORDER_CFGS_INST = order_cfgs_inst

ORDER_CFGS_PART_OF = order_cfgs_part_of

ORDER_CFGS_VALUE = order_cfgs_value

ORDER_CFGS_REFINST = ORDER_CFGS_REFINST

EXTENSIONIN = EXTENSIONIN

  • PARTNERADDRESSES =

.

Edited by: SHI CHUN QING on May 28, 2010 5:23 AM

Edited by: SHI CHUN QING on May 28, 2010 5:25 AM