According to the baidu to way, first in the export EXIT_SAPLACC4_001 did PARK:
READ the TABLE the extension WITH KEY field1='bapis - PARK.
IF sy - subrc=0.
MOVE TO 2 t_acchd - status_new. "state change
ENDIF.
Also COMMIT in the self-built procedures (many will think that is not to COMMIT) :
CALL the FUNCTION 'BAPI_ACC_GL_POSTING_POST'
EXPORTING
Documentheader=header
IMPORTING
Obj_type=obj_type
Obj_key=obj_key
Obj_sys=obj_sys
TABLES
Accountgl=accountgl
Currencyamount=currencyamount
Return=it_return
Extension1=extension1.
CALL the FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
Wait='X'.
P.s: whether BAPI_ACC_GL_POSTING_POST or BAPI_ACC_DOCUMENT_POST, all have the same problem, I know that is probably where I write wrong, but check out, please great god put forward the solution, I under reference or a reference to see if I where there is wrong? Anyway, there is no error prompt,
Thank you very much!!!!!!
CodePudding user response:
His top!Performed after the returned message is:
Voucher Posting success: BKPFF DEVCLNT300 message number is: 100000041010002017, 605 type is: S, ID: RW
But then do not check FBV3, FB03 nature is also not easy,
But after number segment has been occupied, I manually create prefabricated credentials, it would only be along I generated after the number,
But I tried to remove the enhancement in the PARK (not change status to 2), can the normal Posting, but is direct accounting voucher Posting, FB03 can check, not prefabricated vouchers, prefabricated certificate, I need do
Looked at the two or three days to find out the problem, ask everybody to help see or provide some reference for me, thank you!
CodePudding user response:
CALL the FUNCTION 'BAPI_ACC_GL_POSTING_POST'EXPORTING
DOCUMENTHEADER=DOCUMENTHEADER
IMPORTING
OBJ_SYS=OBJ_SYS
OBJ_KEY=OBJ_KEY
OBJ_TYPE=OBJ_TYPE
TABLES
EXTENSION1=EXTENSION1
RETURN=RETURN
CURRENCYAMOUNT=CURRENCYAMOUNT
ACCOUNTGL=ACCOUNTGL
EXCEPTIONS
OTHERS=01.
CASE SY - SUBRC.
OK
the WHEN 0."WHEN OTHERS. "to be implemented
Other precast vouchers related configuration of your company has set a
CodePudding user response:
Look at the data table with new credentials data?