2012 Dec 07 1:20 AM
We have a custom program that uses BAPI_0036_CREATE. The GMBDGTHEADER table has a field called process with the following values:
ENTR(enter), PRTN(psthru trsfr rtn), PTRN(psthru transfer), RBBP(rev. incr), RETN(return), SUPL(supplement) and TRAN(transfer). Right now the custom program is hard coded and only using ENTR.
There is a new requirement to put this field on the selection screen so they can use the other values. We found that all of the values posted successfully except for TRAN(transfer).
We get the following error when tryinng to post the document: 'Document must be balanced (Payment Budget 2013). When we create the document manually, it posts successfully because table GMBDGTHEADER-SIGN is blank for each entry. When we use BAPI_0036_CREATE, it puts a '+' sign for positive amount in field GMBDGTHEADER-SIGN and a '-' sign for negative amount in field GMBDGTHEADER-SIGN. This is definitely the problem, because I changed the SIGN field to space in debug mode and it posted.
Has anyone else run into this problem?
Thank you.
We have a custom program that uses BAPI_0036_CREATE. The GMBDGTHEADER table has a field called process with the following values:
ENTR(enter), PRTN(psthru trsfr rtn), PTRN(psthru transfer), RBBP(rev. incr), RETN(return), SUPL(supplement) and TRAN(transfer). Right now the custom program is hard coded and only using ENTR.
There is a new requirement to put this field on the selection screen so they can use the other values. We found that all of the values posted successfully except for TRAN(transfer).
We get the following error when tryinng to post the document: 'Document must be balanced (Payment Budget 2013). When we create the document manually, it posts successfully because table GMBDGTHEADER-SIGN is blank for each entry. When we use BAPI_0036_CREATE, it puts a '+' sign for positive amount in field GMBDGTHEADER-SIGN and a '-' sign for negative amount in field GMBDGTHEADER-SIGN. This is definitely the problem, because I changed the SIGN field to space in debug mode and it posted.
Has anyone else run into this problem?
Thank you.
2012 Dec 07 6:09 AM
Hi,
almost similar kind of probelm solved here,have a look at thomas's reply.
http://scn.sap.com/thread/3258536
Thanks
Gourav.
2012 Dec 07 6:11 PM
It wouldn't think it would post manually if this was the issue. It does post manually.
Thank you.
2012 Dec 12 12:21 AM
Can anyone help with this? Should I be using another BAPI?
Thanks.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |