on 04-22-2013 10:24 AM
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 =
.
Please donot pass textrun as X ... and check again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.