Skip to Content
0
Former Member
Dec 02, 2009 at 11:57 AM

BAPI_SLSTRANSACT_CREATEMULTI create condition

39 Views

for creating new condition in order is this code is complete?

Condition fields

perform input_fields using p_handlei

'B'

'CONDITION'

''

'COND_TYPE'.

PERFORM input_fields USING p_handlei

'B'

'CONDITION'

''

'CURRENCY'.

PERFORM input_fields USING p_handlei

'B'

'CONDITION'

' '

'COND_RATE'.

*Condition Data

CLEAR t_condition.

t_condition-ref_handle = p_handlei.

t_condition-ref_kind = 'A'.

t_condition-currency = 'INR'.

t_condition-cond_type = 'ZP00'.

t_condition-cond_rate = '1000'.

APPEND t_condition.

CALL FUNCTION 'BAPI_SLSTRANSACT_CREATEMULTI'

  • EXPORTING

  • testrun = p_test

TABLES

header = t_header

item = t_item

return = t_return

sales = t_sales

partner = t_partner

organisation = t_organisation

appointment = t_appointment

condition_create = t_condition

input_fields = t_input_fields

scheduleline = t_scheduleline

pricing = t_pricing

product = t_product

pricing_item = t_pricing_item

saved_process = t_saved_process

doc_flow = t_doc_flow.

But it is not updating the condition value in order create by BAPI,

please suggest the solution