Application Development 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: 

Help: BAPI_SLSTRANSACT_CREATEMULTI

Former Member
0 Kudos

good morning,

sorry for my english, i try to explain, well!!!

I have a little problem with bapi

"BAPI_SLSTRANSACT_CREATEMULTI".

I call bapi in the abap program as any other function module, when i execute program, nothing happens: no message, no return code, no document (also with BAPI_TRANSACTION_COMMIT).

which kind of data is required for table INPUT_FIELDS?

which is the error?

Help!!

Best regards.

Ale

Message was edited by: alessandra la monica

11 REPLIES 11

Former Member
0 Kudos

Hi,

Which version of R/3 is this ? I can't find this BAPI in 4.7

regards,

Madhavan

0 Kudos

hi,

BAPI_SLSTRANSACT_CREATEMULTI is on CRM 4.0.

Thanks.

Ale

0 Kudos

Hi,

I don't have access to the CRM server here but if Iam not mistaken this function module is used in the CRM Service Order/Contract modules. I have used function module 'bapi_slstransact_create' which calls 'BAPI_SLSTRANSACT_CREATEMULTI' or I think the former gets called by the latter. Anyways I found that the paramaters of 'bapi_slstransact_create' were insufficient to create a full fledged Service Order/Contract. So I copied it and created zbapi_slstransact_create to which I added the required parameters. Refer to the documentation of the standard function module for how it should be used. It's slightly tricky as there are many hard-coded values to be used in the parameters and you get some of these values only through debugging when this function module gets called.

The following code might help. Sorry I don't have access to the CRM server to make this clearer.

function zbapi_slstransact_create.

*"----


""Local interface:

*" IMPORTING

*" VALUE(I_SERVICE_OS) TYPE CRMT_SRV_OSSET_COMT OPTIONAL

*" VALUE(TESTRUN) LIKE BAPIFLAG-BAPIFLAG OPTIONAL

*" TABLES

*" HEADER STRUCTURE BAPIBUS20001_HEADER_INS

*" ITEM STRUCTURE BAPIBUS20001_ITEM OPTIONAL

*" RETURN STRUCTURE BAPIRET2 OPTIONAL

*" SALES STRUCTURE BAPIBUS20001_SALES OPTIONAL

*" PARTNER STRUCTURE BAPIBUS20001_PARTNER_INS OPTIONAL

*" ORGANISATION STRUCTURE BAPIBUS20001_ORGMAN_INS OPTIONAL

*" SHIPPING STRUCTURE BAPIBUS20001_SHIPPING OPTIONAL

*" APPOINTMENT STRUCTURE BAPIBUS20001_APPOINTMENT_INS OPTIONAL

*" TEXT STRUCTURE BAPIBUS20001_TEXT_INS OPTIONAL

*" STATUS STRUCTURE BAPIBUS20001_STATUS_INS OPTIONAL

*" INPUT_FIELDS STRUCTURE BAPIBUS20001_INPUT_FIELDS

*" PRODUCT STRUCTURE BAPIBUS20001_PRODUCT OPTIONAL

*" SCHEDULELINE STRUCTURE BAPIBUS20001_SCHEDLIN OPTIONAL

*" CUSTOMER_HEAD STRUCTURE BAPIBUS20001_CUSTOMER_H OPTIONAL

*" CUSTOMER_ITEM STRUCTURE BAPIBUS20001_CUSTOMER_I OPTIONAL

*" PRICING STRUCTURE BAPIBUS20001_PRICING OPTIONAL

*" PRICING_ITEM STRUCTURE BAPIBUS20001_PRICING_I OPTIONAL

*" CONDITION_CREATE STRUCTURE BAPIBUS20001_CONDITION_CREATE

*" OPTIONAL

*" BILLING STRUCTURE BAPIBUS20001_BILLING OPTIONAL

*" CONFIG_CFG STRUCTURE BAPIBUS20001_CONFIG_CFG OPTIONAL

*" CONFIG_BLB STRUCTURE BAPIBUS20001_CONFIG_BLB OPTIONAL

*" CONFIG_INS STRUCTURE BAPIBUS20001_CONFIG_INS OPTIONAL

*" CONFIG_PRT STRUCTURE BAPIBUS20001_CONFIG_PRT OPTIONAL

*" CONFIG_VAL STRUCTURE BAPIBUS20001_CONFIG_VAL OPTIONAL

*" CONFIG_VK STRUCTURE BAPIBUS20001_CONFIG_VK OPTIONAL

*" CONFIG_REF STRUCTURE BAPIBUS20001_CONFIG_REF OPTIONAL

*" ADDRESS STRUCTURE BAPIADDR3 OPTIONAL

*" BILLPLAN STRUCTURE BAPIBUS20001_BILLPLAN OPTIONAL

*" BILLPLAN_DATE STRUCTURE BAPIBUS20001_BILLPLAN_DATE OPTIONAL

*" CREATED_PROCESS STRUCTURE BAPIBUS20001_HEADER_INS OPTIONAL

*" SAVED_PROCESS STRUCTURE BAPIBUS20001_OBJECT_ID OPTIONAL

*" DOC_FLOW STRUCTURE BAPIBUS20001_DOC_FLOW_INS OPTIONAL

*" OBJECTS STRUCTURE BAPIBUS20001_OBJECTS OPTIONAL

*" PRODUCTS STRUCTURE BAPIBUS20001_PRODUCTS OPTIONAL

*"----


  • local internal fields

data: lv_loghandle type bapibus20001_control-log_handle.

  • local internal tables

data: begin of lt_objects_to_save occurs 2.

include structure bapibus20001_guid_dis.

data: end of lt_objects_to_save.

data: begin of lt_saved_objects occurs 2.

include structure bapibus20001_object_id.

data: end of lt_saved_objects.

data: begin of lt_return occurs 2.

include structure bapiret2.

data: end of lt_return.

  • data objects like bapibus20001_objects occurs 0 with header line.

*----


  • 1. intialization

*----


refresh: created_process,

saved_process.

----


  • 2. call the CREATE BAPI

----


  • call function 'BAPI_BUSPROCESSND_CREATEMULTI'

call function 'ZBAPI_BUSPROCESSND_CREATE'

exporting

i_service_os = i_service_os

tables

header = header

item = item

sales = sales

partner = partner

organisation = organisation

shipping = shipping

appointment = appointment

text = text

status = status

product = product

input_fields = input_fields

scheduleline = scheduleline

customer_head = customer_head

customer_item = customer_item

pricing = pricing

pricing_item = pricing_item

condition_create = condition_create

billing = billing

config_cfg = config_cfg

config_blb = config_blb

config_ins = config_ins

config_prt = config_prt

config_val = config_val

config_vk = config_vk

config_ref = config_ref

billplan = billplan

billplan_date = billplan_date

document_flow = doc_flow

created_process = created_process

objects = objects

products = products

return = return.

----


  • 3. call the SAVE BAPI

----


if testrun is initial.

loop at created_process.

lt_objects_to_save-guid = created_process-guid.

append lt_objects_to_save.

endloop.

call function 'BAPI_BUSPROCESSND_SAVE'

exporting

update_task_local = false

save_frame_log = true

importing

log_handle = lv_loghandle

tables

objects_to_save = lt_objects_to_save

saved_objects = lt_saved_objects

return = lt_return.

saved_process[] = lt_saved_objects[].

loop at lt_return.

return = lt_return.

append return.

endloop.

endif.

endfunction.

regards,

Madhavan

0 Kudos

Hi Madhavan!

can you send me your program with bapi BAPI_SLSTRANSACT_CREATEMULTI? Now I successful create the headers of sales documents, but without partner and without items, even if i call all structures.

the errors are:

1-incomplete interface data - no reference specified;

2-enter madatory partner;

best regards.

Ale

0 Kudos

Hi Alessandra,

Sorry for the late reply as I was away on a training programme for almost 2 weeks. I don't have the program that I wrote for creating Service Orders/Contracts as I did this in a Client location. But I will try to get the same for you.

Let me know if your problem has been resolved. Please award points if my answers helped.

regards,

Madhavan

0 Kudos

Hi Ale,

While I try to get my main programme for you, you can check out the following function module which I have used within the earlier function module that I sent to you. Pay attention to those interface parameters for which you get an error.

function zbapi_busprocessnd_create.

*"----


""Local interface:

*" IMPORTING

*" VALUE(I_SERVICE_OS) TYPE CRMT_SRV_OSSET_COMT OPTIONAL

*" TABLES

*" HEADER STRUCTURE BAPIBUS20001_HEADER_INS

*" ITEM STRUCTURE BAPIBUS20001_ITEM OPTIONAL

*" ACTIVITY STRUCTURE BAPIBUS20001_ACTIVITY_INS OPTIONAL

*" SALES STRUCTURE BAPIBUS20001_SALES OPTIONAL

*" PARTNER STRUCTURE BAPIBUS20001_PARTNER_INS OPTIONAL

*" ORGANISATION STRUCTURE BAPIBUS20001_ORGMAN_INS OPTIONAL

*" SHIPPING STRUCTURE BAPIBUS20001_SHIPPING OPTIONAL

*" APPOINTMENT STRUCTURE BAPIBUS20001_APPOINTMENT_INS OPTIONAL

*" TEXT STRUCTURE BAPIBUS20001_TEXT_INS OPTIONAL

*" STATUS STRUCTURE BAPIBUS20001_STATUS_INS OPTIONAL

*" INPUT_FIELDS STRUCTURE BAPIBUS20001_INPUT_FIELDS OPTIONAL

*" CREATED_PROCESS STRUCTURE BAPIBUS20001_HEADER_INS OPTIONAL

*" RETURN STRUCTURE BAPIRET2 OPTIONAL

*" LEAD STRUCTURE BAPIBUS20001_LEAD OPTIONAL

*" OPPORTUNITY STRUCTURE BAPIBUS20001_OPPORTUNITY OPTIONAL

*" PRODUCT STRUCTURE BAPIBUS20001_PRODUCT OPTIONAL

*" SCHEDULELINE STRUCTURE BAPIBUS20001_SCHEDLIN OPTIONAL

*" CUSTOMER_HEAD STRUCTURE BAPIBUS20001_CUSTOMER_H OPTIONAL

*" CUSTOMER_ITEM STRUCTURE BAPIBUS20001_CUSTOMER_I OPTIONAL

*" PRICING STRUCTURE BAPIBUS20001_PRICING OPTIONAL

*" PRICING_ITEM STRUCTURE BAPIBUS20001_PRICING_I OPTIONAL

*" CONDITION_CREATE STRUCTURE BAPIBUS20001_CONDITION_CREATE

*" OPTIONAL

*" BILLING STRUCTURE BAPIBUS20001_BILLING OPTIONAL

*" CONFIG_CFG STRUCTURE BAPIBUS20001_CONFIG_CFG OPTIONAL

*" CONFIG_BLB STRUCTURE BAPIBUS20001_CONFIG_BLB OPTIONAL

*" CONFIG_INS STRUCTURE BAPIBUS20001_CONFIG_INS OPTIONAL

*" CONFIG_PRT STRUCTURE BAPIBUS20001_CONFIG_PRT OPTIONAL

*" CONFIG_VAL STRUCTURE BAPIBUS20001_CONFIG_VAL OPTIONAL

*" CONFIG_VK STRUCTURE BAPIBUS20001_CONFIG_VK OPTIONAL

*" CONFIG_REF STRUCTURE BAPIBUS20001_CONFIG_REF OPTIONAL

*" ADDRESS STRUCTURE BAPIADDR3 OPTIONAL

*" BILLPLAN STRUCTURE BAPIBUS20001_BILLPLAN OPTIONAL

*" BILLPLAN_DATE STRUCTURE BAPIBUS20001_BILLPLAN_DATE OPTIONAL

*" EXTENSIONIN STRUCTURE BAPIPAREX OPTIONAL

*" DOCUMENT_FLOW STRUCTURE BAPIBUS20001_DOC_FLOW_INS OPTIONAL

*" BATCH STRUCTURE BAPIBUS20001_BATCH OPTIONAL

*" PRICING_AGR_CRM STRUCTURE BAPIBUS20001_PRICE_AGR_CRM OPTIONAL

*" FINPROD_ITEM STRUCTURE BAPIBUS20001_FINPROD_ITEM OPTIONAL

*" CANCEL STRUCTURE BAPIBUS20001_CANCEL OPTIONAL

*" CANCEL_IR STRUCTURE BAPIBUS20001_CANCEL_IR OPTIONAL

*" PRODUCT_LIST STRUCTURE BAPIBUS20001_PRODUCT_LIST OPTIONAL

*" PRODUCTS STRUCTURE BAPIBUS20001_PRODUCTS OPTIONAL

*" OBJECTS STRUCTURE BAPIBUS20001_OBJECTS OPTIONAL

*" PAYPLAN STRUCTURE BAPIBUS20001_PAYPLAN OPTIONAL

*" PAYPLAN_DATE STRUCTURE BAPIBUS20001_PAYPLAN_DATE OPTIONAL

*" CONFIG_FILTER_CFG STRUCTURE BAPIBUS20001_CONFIG_FILTER_CFG

*" OPTIONAL

*" CONFIG_FILTER_INS STRUCTURE BAPIBUS20001_CONFIG_FILTER_INS

*" OPTIONAL

*" CONFIG_FILTER_PRT STRUCTURE BAPIBUS20001_CONFIG_FILTER_PRT

*" OPTIONAL

*" CONFIG_FILTER_VAL STRUCTURE BAPIBUS20001_CONFIG_FILTER_VAL

*" OPTIONAL

*" ACTIVITY_I STRUCTURE BAPIBUS20001_ACTIVITY_I OPTIONAL

*"----


data: lt_orderadm_h_com type crmt_orderadm_h_comt,

ls_orderadm_h_com like line of lt_orderadm_h_com,

lt_activity_h_com type crmt_activity_h_comt,

lt_activity_i_com type crmt_activity_i_comt,

lt_partner_com type crmt_partner_comt,

lt_orgman_com type crmt_orgman_comt,

lt_appointment_com type crmt_appointment_comt,

lt_text_com type crmt_text_comt,

lt_status_com type crmt_status_comt,

lt_service_os_com type crmt_srv_osset_comt,

lt_input_fields type crmt_input_field_tab,

ls_created_process like line of created_process,

lt_order_guids type crmt_object_guid_tab.

data: lt_opport_h_com type crmt_opport_h_comt,

lt_lead_h_com type crmt_lead_h_comt,

lt_orderadm_i_com type crmt_orderadm_i_comt,

ls_orderadm_i_com like line of lt_orderadm_i_com,

lt_product_i_com type crmt_product_i_comt,

lt_schedlin_i_com type crmt_schedlin_i_comt,

lt_sales_com type crmt_sales_comt,

lt_shipping_com type crmt_shipping_comt,

lt_customer_h_com type crmt_customer_h_comt,

lt_customer_i_com type crmt_customer_i_comt,

lt_pricing_com type crmt_pricing_comt,

lt_billing_com type crmt_billing_comt,

lt_config_com type crmt_config_comt,

lt_pricing_i_com type crmt_pricing_i_comt,

lt_pridoc_com type crmt_pridoc_comt,

lt_billplan_com type crmt_billplan_comt,

lt_doc_flow_com type crmt_doc_flow_comt.

data: ls_process_settings type bapibus20001_procsettings.

  • dummy table to fill interface of mapping routine

data: lt_condition_change type table of bapibus20001_condition_change,

lt_condition_delete type table of bapibus20001_condition_delete.

  • // Update

data: lt_header_save type table of bapibus20001_guid_dis,

ls_header_save like line of lt_header_save,

lt_saved_objects type table of bapibus20001_object_id,

ls_saved_object like line of lt_saved_objects.

  • // Container of BAPI dialog status before this function group starts

data: lv_bapi_no_dialog type crmt_boolean.

  • // BAPI update

data: lt_batch_com type crmt_batch_comt,

lt_pricing_agr_crm_com type crmt_price_agreements_crm_comt,

lt_finprod_i_com type crmt_finprod_i_comt,

lt_cancel_com type crmt_cancel_comt,

lt_cancel_ir_com type crmt_cancel_ir_comt,

lt_ordprp_i_com type crmt_ordprp_i_comt,

lt_ordprp_i_d_com type crmt_ordprp_i_d_comt,

lt_ordprp_objl_i_d_com type crmt_ordprp_objl_i_d_comt,

lt_payplan_com type crmt_payplan_comt,

lt_payplan_d_com type crmt_payplan_d_comt,

lt_config_filter_com type crmt_config_filter_comt.

*---- surpress dialog

perform set_no_dialog changing lv_bapi_no_dialog.

perform map_into_orderadm_h_com_ins tables header

return

changing lt_orderadm_h_com.

  • Item

perform map_into_orderadm_i_com tables item

return

changing lt_orderadm_i_com.

perform map_into_partner_com_ins tables partner

changing lt_partner_com.

perform map_into_orgman tables organisation input_fields

changing lt_orgman_com.

perform map_into_text_com_ins tables text

return

changing lt_text_com.

  • perform map_into_service_os_com_ins tables LT_service_os

  • changing lt_service_os_com.

  • opportunity

perform map_into_opport_h_com tables opportunity

return

changing lt_opport_h_com.

  • lead

perform map_into_lead_h_com tables lead

return

changing lt_lead_h_com.

  • product

perform map_into_product_i_com tables product

return

changing lt_product_i_com.

  • scheduleline

perform map_into_schedlin_i_com tables scheduleline

changing lt_schedlin_i_com.

  • customer_head

perform map_into_customer_h tables customer_head

changing lt_customer_h_com.

  • customer_item

perform map_into_customer_i tables customer_item

changing lt_customer_i_com.

  • pricing

perform map_into_pricing tables pricing

return

changing lt_pricing_com.

  • pricing_item

perform map_into_pricing_i tables pricing_item

return

changing lt_pricing_i_com.

  • billing

perform map_into_billing tables billing

changing lt_billing_com.

  • config

perform map_into_config tables config_cfg

config_blb

config_ins

config_prt

config_val

config_vk

config_ref

return

changing lt_config_com.

  • config filter

perform map_into_config_filter tables config_filter_cfg

config_filter_ins

config_filter_prt

config_filter_val

return

changing lt_config_filter_com.

  • pricing conditions

perform map_into_pridoc tables condition_create

lt_condition_change

lt_condition_delete

return

changing lt_pridoc_com.

  • billplan

perform map_into_billplan tables billplan

billplan_date

return

changing lt_billplan_com.

  • appointment

perform map_into_appointment

tables return appointment changing lt_appointment_com.

  • document flow

perform map_into_docflow

tables document_flow changing lt_doc_flow_com.

inserttable activity gs_activity_h_com lt_activity_h_com.

inserttable status gs_status_com lt_status_com.

inserttable sales gs_sales_com lt_sales_com.

inserttable shipping gs_shipping_com lt_shipping_com.

perform map_into_input_fields tables input_fields

changing lt_input_fields.

  • batch

perform map_into_batch

tables batch

changing lt_batch_com.

  • pricing agreements

perform map_into_pricing_agr_crm

tables pricing_agr_crm

return

changing lt_pricing_agr_crm_com.

  • finprod item

perform map_into_finprod_i_com

tables finprod_item

changing lt_finprod_i_com.

  • cancel

perform map_into_cancel

tables cancel

cancel_ir

changing lt_cancel_com

lt_cancel_ir_com.

  • ordprp ( partner range product )

perform map_into_ordprp

tables product_list

products

objects

changing lt_ordprp_i_com

lt_ordprp_i_d_com

lt_ordprp_objl_i_d_com.

  • payplan

perform map_into_payplan

tables payplan

payplan_date

changing lt_payplan_com

lt_payplan_d_com.

  • activity i

perform map_into_activity_i tables activity_i return extensionin

changing lt_activity_i_com.

call function 'CRM_ORDER_MAINTAIN'

exporting

it_lead_h = lt_lead_h_com

it_opport_h = lt_opport_h_com

it_activity_h = lt_activity_h_com

it_activity_i = lt_activity_i_com

it_sales = lt_sales_com

it_pricing = lt_pricing_com

it_pricing_i = lt_pricing_i_com

it_orgman = lt_orgman_com

it_shipping = lt_shipping_com

it_product_i = lt_product_i_com

it_batch = lt_batch_com

it_finprod_i = lt_finprod_i_com

it_config = lt_config_com

it_payplan = lt_payplan_com

it_payplan_d = lt_payplan_d_com

it_customer_h = lt_customer_h_com

it_customer_i = lt_customer_i_com

it_appointment = lt_appointment_com

it_text = lt_text_com

it_schedlin_i = lt_schedlin_i_com

it_partner = lt_partner_com

  • it_service_os = lt_service_os_com

it_service_os = i_service_os

it_cancel = lt_cancel_com

it_cancel_ir = lt_cancel_ir_com

it_status = lt_status_com

it_billplan = lt_billplan_com

it_billing = lt_billing_com

it_ordprp_i = lt_ordprp_i_com

it_ordprp_i_d = lt_ordprp_i_d_com

it_ordprp_objl_i_d = lt_ordprp_objl_i_d_com

it_price_agreements_crm = lt_pricing_agr_crm_com

it_config_filter = lt_config_filter_com

it_pridoc = lt_pridoc_com

changing

ct_orderadm_h = lt_orderadm_h_com

ct_orderadm_i = lt_orderadm_i_com

ct_doc_flow = lt_doc_flow_com

ct_input_fields = lt_input_fields

cv_log_handle = gv_loghandle

exceptions

error_occurred = 1

document_locked = 2

no_change_allowed = 3

no_authority = 4

others = 5.

if sy-subrc ne 0.

perform set_bapireturn2 tables return

using gc_msgtype-abort syst-msgid syst-msgno

syst-msgv1 syst-msgv2 syst-msgv3 syst-msgv4

space 0 space space space.

endif.

*---- get created processes

loop at lt_orderadm_h_com into ls_orderadm_h_com

where not guid is initial.

move-corresponding ls_orderadm_h_com to ls_created_process.

append ls_created_process to created_process.

insert ls_orderadm_h_com-guid into table lt_order_guids.

endloop.

call function 'BAPI_BUSPROCESSND_PROCSETTINGS'

importing

process_settings_out = ls_process_settings.

*---- get application log

perform get_appl_log tables return

using gv_loghandle ls_process_settings-msglevel lt_order_guids.

*---- Restore BAPI dialog flag

perform set_dialog_from_flag using lv_bapi_no_dialog.

*---- Clear object buffers on event ROLLBACK

perform busprocessnd_init on rollback.

*---- Save transaction immediately on demand

if ls_process_settings-save eq true.

loop at created_process into ls_created_process.

ls_header_save-guid = ls_created_process-guid.

append ls_header_save to lt_header_save.

endloop.

call function 'BAPI_BUSPROCESSND_SAVE'

tables

objects_to_save = lt_header_save

saved_objects = lt_saved_objects

return = return.

loop at lt_saved_objects into ls_saved_object.

ls_created_process-object_id = ls_saved_object-object_id.

modify created_process from ls_created_process

transporting object_id

where guid eq ls_saved_object-guid.

endloop.

endif.

endfunction.

regards,

Madhavan

0 Kudos

Hello there!!

Could you please post the forms you're calling from this function module. I'm trying to create an opportunity via BAPI_BUSPROCESSND_CREATEMULTI, and I'm absolutely unable to set my item (product) into it...

Could you please help me?

Does anyone have some BAPI_BUSPROCESSND_CREATEMULTI sample code?

Thanks in advance, greetings from Madrid.

0 Kudos

Hi Madhavan,

I am trying to use CRM_ORDER_MAINTAIN to create sales orders.I am not able to update pricing reference material and batch details.

I saw your code for updating the table CRMT_PRODUCT_I_COMT(pricing reference material and batch details).Could you please let me know how are you updating this structure.Following is my code for updating the same.

data GT_PRODUCT TYPE CRMT_PRODUCT_I_COMT.

WA_INPUT_FIELDS-REF_GUID = P_GUID_I.

WA_INPUT_FIELDS-OBJECTNAME = 'PRODUCT_I'.

WA_INPUT_FIELDS-REF_KIND = 'B'.

WA_FIELDNAMES-FIELDNAME = 'PROCESS_QTY_UNIT'.

  • WA_FIELDNAMES-CHANGEABLE = 'B'.

INSERT WA_FIELDNAMES INTO TABLE WA_INPUT_FIELDS-FIELD_NAMES.

WA_FIELDNAMES-FIELDNAME = 'PRICE_PRODUCT_ID'.

  • WA_FIELDNAMES-CHANGEABLE = 'B'.

INSERT WA_FIELDNAMES INTO TABLE WA_INPUT_FIELDS-FIELD_NAMES.

WA_FIELDNAMES-FIELDNAME = 'BATCH_ID'.

INSERT WA_FIELDNAMES INTO TABLE WA_INPUT_FIELDS-FIELD_NAMES.

INSERT WA_INPUT_FIELDS INTO TABLE GT_INPUT_FIELDS.

CLEAR WA_PRODUCT.

WA_PRODUCT-REF_GUID = P_GUID_I.

PERFORM F_CONVERT_DATA USING P_DATA-ZZSC_OBJID

CHANGING WA_PRODUCT-PRICE_PRODUCT_ID.

WA_PRODUCT-BATCH_ID = P_DATA-ZZCHARG.

WA_PRODUCT-PROCESS_QTY_UNIT = 'UN'.

INSERT WA_PRODUCT INTO TABLE GT_PRODUCT.

Please let me know here am I going wrong.

Thanks,

Chamu

0 Kudos

Hi Javier,

I have seen your post regarding creating opportunity using FM BAPI_BUSPROCESSND_CREATEMULTI. I am facing the similar problem.I am unable to update the products here.

Can u help me in this?

Do u have any sample code?Please mail me at the earliest to shwetha_korlepara@infosys.com. Its and urgent requirement for me.

Thanks in Advance,

Shwetha

Former Member
0 Kudos

Hi,

Check in function module CRM_MDG_OPP2QUOT in CRM for the correct usage of the BAPi call.

regards

Aveek

Former Member
0 Kudos

Hi!

thank you very much!

Now I create header's sales order but i don't create its Items because program finishes with errors!

Regards.

Ale