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

BAPI_SALESORDER_CREATEFROMDAT2 configure error

Former Member
0 Likes
1,006

HI every one

Now occurs a new things It can not be used as RFC in nonew sap system just like IBM Lotous Notes

that is to say ,in none sapsystem, configuration can not be generate for a salesorder.but it runs well in sap use this function.

I Don't know the reason.

5 REPLIES 5
Read only

Former Member
0 Likes
845

It come out a message "CU 013 CFG_IS_INCONSISTENT_OR_INCOMPLETE"

Read only

0 Likes
845

IF I set order_cfgs_ref-sce = 1.

then will occurs

"SALES_HEADER_IN has been processed successfullyInternal error in communication between configuration and sales doc.CONFIGURATION_PROCESSINGCondition PR01 is not allowed as header condition "

Read only

0 Likes
845

It sounds like you are trying to put an item level condition type in the sales header table. Item conditions need to go in the condition_in table with the ITM_NUMBER set. Give that a try.

Read only

0 Likes
845

NO,I can run it well in abap SE38

So It can not be the problem as you described ,I need a solution to resolve the calling in none-sap system. just like IBM lotous Notes with JCO development.

I Post my codes :

wa_order_cfgs_ref-posex = zwa_order_items_in-po_itm_no.

wa_order_cfgs_ref-config_id = zwa_order_items_in-po_itm_no.

wa_order_cfgs_ref-root_id = '00000001'.

APPEND wa_order_cfgs_ref TO i_order_cfgs_ref.

wa_order_cfgs_inst-config_id = zwa_order_items_in-po_itm_no.

wa_order_cfgs_inst-inst_id = '00000001'.

wa_order_cfgs_inst-obj_type = 'MARA'.

wa_order_cfgs_inst-class_type = '300'.

wa_order_cfgs_inst-obj_key = zwa_order_items_in-material.

APPEND wa_order_cfgs_inst TO i_order_cfgs_inst.

LOOP AT zorder_cfgs_info INTO zwa_order_cfgs_info.

MOVE-CORRESPONDING zwa_order_cfgs_info TO wa_order_cfgs_value.

  • Transfer inform to outputform

CALL FUNCTION 'CONVERSION_EXIT_ATINN_OUTPUT'

EXPORTING

input = wa_order_cfgs_value-charc

IMPORTING

output = wa_order_cfgs_value-charc.

wa_order_cfgs_value-config_id = zwa_order_cfgs_info-posex.

wa_order_cfgs_value-inst_id = '00000001'.

APPEND wa_order_cfgs_value TO i_order_cfgs_value.

Read only

0 Likes
845

close