2008 Mar 10 10:30 AM
Hi,
In my program code for outgoing payments(F-53) I am passing the following values for the BAPI_ACC_DOCUMENT_POST and getting the message in RETURN table as Document Successfully Posted( S RW 605) and I am able to see the document number in export parameter also. I am using BAPI_TRANSACTION_COMMIT after this. But the the document is not updated in database. Can you please suggest me that I have do any customization settings to update in databse or I am passing any wrong values for BAPI.My requirement is using BAPI, I have to update outgoing payments in SAP.
The values I am passing are as below.
DOCUMENTHEADER
-
BUS_ACT = RFBU
USERNAME = SY-UNAME
COMP_CODE = 3000
DOC_DATE = SY-DATUM
PSTNG_DATE = SY-DATUM
FISC_YEAR = 2008
FIS_PERIOD = 03
DOC_TYPE = KZ
TABLES
-
ACCOUNTGL
-
ITEMNO_ACC = 1
GL_ACCOUNT = 113100
DOC_TYPE = KZ
COMP_CODE =
FIS_PERIOD = 03
FISC_YEAR = 2008
PSTING_DATE = SY-DATUM
DE_CRE_IND = H
ACCOUNTPAYABLE
-
ITEMNO_ACC = 2
VENDOR_NO = 205203
COMP_CODE = 3000
PYMT_CUR = USD
PYMT_AMT = 100
CURRENCYAMOUNT
-
1ST LINE
-
ITEMNO_ACC = 1
CURRENCY = SGD
AMT_BASE = -100
2ND LINE
-
ITEMNO_ACC = 2
CURRENCY = SGD
AMT_BASE = 100
Thanks
Santhikumar
Hi,
In my program code for outgoing payments(F-53) I am passing the following values for the BAPI_ACC_DOCUMENT_POST and getting the message in RETURN table as Document Successfully Posted( S RW 605) and I am able to see the document number in export parameter also. I am using BAPI_TRANSACTION_COMMIT after this. But the the document is not updated in database. Can you please suggest me that I have do any customization settings to update in databse or I am passing any wrong values for BAPI.My requirement is using BAPI, I have to update outgoing payments in SAP.
The values I am passing are as below.
DOCUMENTHEADER
-
BUS_ACT = RFBU
USERNAME = SY-UNAME
COMP_CODE = 3000
DOC_DATE = SY-DATUM
PSTNG_DATE = SY-DATUM
FISC_YEAR = 2008
FIS_PERIOD = 03
DOC_TYPE = KZ
TABLES
-
ACCOUNTGL
-
ITEMNO_ACC = 1
GL_ACCOUNT = 113100
DOC_TYPE = KZ
COMP_CODE =
FIS_PERIOD = 03
FISC_YEAR = 2008
PSTING_DATE = SY-DATUM
DE_CRE_IND = H
ACCOUNTPAYABLE
-
ITEMNO_ACC = 2
VENDOR_NO = 205203
COMP_CODE = 3000
PYMT_CUR = USD
PYMT_AMT = 100
CURRENCYAMOUNT
-
1ST LINE
-
ITEMNO_ACC = 1
CURRENCY = SGD
AMT_BASE = -100
2ND LINE
-
ITEMNO_ACC = 2
CURRENCY = SGD
AMT_BASE = 100
Thanks
Santhikumar
2008 Mar 10 10:38 AM
Hi,
Use the test sequences in SE37.
GOto - SE37 -> Function module -> TEst -> Test sequences..
Give the function module BAPI_ACC_DOCUMENT_POST
BAPI_TRANSACTION_COMMIT.
Execute the first FM and then the commit..
Regards,
Omkaram.
2008 Mar 10 10:45 AM
Hi Omkaram Yanamala,
I used test sequences in SE37 also, but still it is not updating, what might be the problem?
Thanks
santhikumar
2008 Mar 10 10:48 AM
2008 Mar 10 11:00 AM
Hi Omkaram Yanamala ,
I used the test data also, but it is not updating.
Thanks
santhikumar
2008 Mar 10 10:41 AM
hi,
i think it is very important to fill the following elements in the
DOCUMENTHEADER structure
OBJ_KEY
OBJ_SYS
BUS_ACT
please look at sap note 1045412 & 561175 for values
please award some points, if useful
regards
markus
2008 Mar 10 10:54 AM
Hi Markus tradt,
I am pssing BUS_ACT, even though in Documentation it is mention that OBJ_SYS and OBJ_KEY are mandatory, without passing them also we can create document. Only thing it is not updating in database. what might be the problem? . Object key means the doc number, it has to generate doc number and give it in export parameter.
Thanks
Santhikumar
2008 Mar 10 10:59 AM
in KEY you should store the doc. number from the external system, that creates the original document, SYS is the ID of the external system
try to populate the fields with dummy values at first, then the document should be written to DB
2008 Mar 10 11:01 AM
TTYP is the table where values are strored for these parameters
2008 Mar 10 11:07 AM
Hi Markus Tradt,
What are the values should exist for RFBU reference procedure in TTYP table to update in database table?
Thanks
Santhikumar
2008 Mar 10 10:43 AM
Hi,
Please call the FM BAPI_TRANSACTION_COMMIT after you have finished executing BAPI_ACC_DOCUMENT_POST.
Only after you do a commit will you be able to see the DB updated.
Hope it works,
Thanks,
Sandeep.
2008 Mar 10 11:03 AM
Hi Sandeep Ram,
I am calling BAPI_TRANSACTION_COMMIT after that, vene though it is not updating in database. what might be the problem?
Thanks
Santhikumar
2008 Mar 10 10:49 AM
2008 Mar 10 11:09 AM
Hi Omkara Yanamala,
I checked your blog, I am passing same as the code as you send , but still it is not updating in database? Is there any cutomizatiion settings required for RFBU reference procedure to update in database?
Thanks
santhikumar.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |