Skip to Content
0
Former Member
Apr 07, 2008 at 09:02 PM

Bapi to create biling document

19 Views

Hi Experts:

I am using this bapi to created billind doc using delivery number and adding pricing condition.

GT_BILLINGDATAIN-REF_DOC = G_VBELN.

GT_BILLINGDATAIN-REF_DOC_CA = 'J'.

APPEND GT_BILLINGDATAIN.

*item condition type

GT_CONDITIONDATAIN-DATA_INDEX = '1'.

GT_CONDITIONDATAIN-COND_TYPE = 'ZD01'.

GT_CONDITIONDATAIN-COND_VALUE = 15.

GT_CONDITIONDATAIN-COND_CURR = G_CURRENCY.

APPEND GT_CONDITIONDATAIN.

CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'

TABLES

BILLINGDATAIN = GT_BILLINGDATAIN

CONDITIONDATAIN = GT_CONDITIONDATAIN

RETURN = GT_RETURN

SUCCESS = GT_SUCCESS

The invoice gets created but Pricing Condition did not.

Is there anyway you guys help me out.

thanks in advance.