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: 

Re: Problem in recording VF02 billing transaction

Former Member
0 Kudos

Hi all,

I am having a problem in recording the VFO2 for the processing of Despatch details in third screen Header Texts.

How to write the BDC code for uploading data for this TCODE VF02.particularly with header texts.....

Thanks in Advance

Ravi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

y dont u make use of BAPI ?

Have u seen my reply to ur second post on the same issue.

<b>BAPI_BILLINGDOC_CREATE</b>and its documentation

Regards

Prabhu

3 REPLIES 3

Former Member
0 Kudos

y dont u make use of BAPI ?

Have u seen my reply to ur second post on the same issue.

<b>BAPI_BILLINGDOC_CREATE</b>and its documentation

Regards

Prabhu

0 Kudos

Is there any procedure for Recording the transaction Vf02 in BAPI

If so pls let me know the Procedure.

I also want to know if it can be handled using BDC

Former Member
0 Kudos

Hi

Check this function module : <b>GN_INVOICE_CREATE</b>

<b>CALL FUNCTION 'GN_INVOICE_CREATE'

EXPORTING

DELIVERY_DATE = DELIVERY_DATE

INVOICE_DATE = INVOICE_DATE

INVOICE_TYPE = 'ZFX'

PRICING_DATE = PRICING_DATE

VBSK_I = X_VBSK

WITH_POSTING = 'D'

ID_NO_ENQUEUE = 'X'

TABLES

XKOMFK = IT_KOMFK

XKOMFKGN = IT_KOMFKGN

XKOMFKKO = IT_KOMFKKO

XKOMFKTX = IT_KOMFKTX

XKOMV = IT_KOMV

XTHEAD = IT_HEAD

XVBFS = IT_VBFS

XVBPA = IT_VBPA

XVBRK = IT_VBRK

XVBRP = IT_VBRP

XVBSS = IT_VBSS

SUCCESS_DOC_OUT = IT_SUCCESS.</b>

Or you can use BAPI :- <b>BAPI_BILLINGDOC_CREATEMULTIPLE</b>

<b>CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'

EXPORTING

CREATORDATAIN = GS_CREATORDATAIN

  • TESTRUN = co_x

  • POSTING = co_x

TABLES

BILLINGDATAIN = GT_BILLINGDATAIN

  • CONDITIONDATAIN = GT_CONDITIONDATAIN

  • CCARDDATAIN =

  • TEXTDATAIN =

  • ERRORS =

RETURN = GT_RETURN

SUCCESS = GT_SUCCESS.</b>

regards,

Hiren Patel

Don't forget to Reward points