cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_CTRACDOCUMENT_CREATE

Former Member
0 Kudos

i have a fica document in dfkkko(header) and dfkkop(item) tables.

What i want to do is to create an equality document so that the augst field in dfkkop gets status 9. so the payment to the customer will be done.

But nothing changed with the BAPI is there sometihng wrong of my use ?

Thank you very much in advance for all responses.

data: ls_fkkko1 like BAPIDFKKKO.

data: lv_docnum like BAPIDFKKKO-DOC_NO,

       lv_return like BAPIRET2.

select single * from dfkkko

   into ls_fkkko1

   where opbel = '008000022809'.

call function 'BAPI_CTRACDOCUMENT_CREATE'

   exporting

     testrun                       = 'X'

     documentheader                = ls_fkkko1

*   RECKEYINFO                    =

     COMPLETEDOCUMENT              = 'X'

*   NET_RECEIVABLES               =

   IMPORTING

     DOCUMENTNUMBER                = lv_docnum

     RETURN                        = lv_return

* TABLES

*   PARTNERPOSITIONS              =

*   GENLEDGERPOSITIONS            =

*   REPETITIONPOSITIONS           =

*   POSITIONLOCKS                 =

*   DATESFORDEFERREDREVENUE       =

*   EXTENSIONIN                   =

*   ITEMRELATIONS                 =

*   CARDDATA                      =

*   GENLEDGERPOSITIONSEXT         =

*   WITHHOLDINGTAX                =

           .

call function 'BAPI_TRANSACTION_COMMIT'

* EXPORTING

*   WAIT          =

* IMPORTING

*   RETURN        =

           .


Accepted Solutions (1)

Accepted Solutions (1)

kishore_balakrishnan
Participant
0 Kudos

Please donot pass textrun as X ... and check again

Former Member
0 Kudos

Thank you for the response i think it will work with your advice but for now i have choosen to done the work with a batch input and it works fine for me.

Answers (0)