2010 Feb 11 7:37 PM
Hi Forums,
I have a requirement to pass a date in the past for some GL postings, I have found that even if I pass a posting date that is in the past the BAPI will overwrite it with sy-datum.
Anyone ever had this same issue and what did yo do to get around it?
thanks!
Hello all,
the header was being overwritten by the posting date in the DETAIL items... once I changed this to be the same as the header it back dated in the GL
2010 Feb 11 10:32 PM
hi
in my opinon, this BAPI hasn't such limitation....
maybe this posting date is changed by some FI-substitution ?
(check this in GGB1 transaction)
regards,darek
2010 Feb 11 11:35 PM
Darak,
what do you mean by FI Substitution?
I am passing the Posting date to the header of the document as so:
Should this not give me the posting date that I want, even when this is done it will put in today's date for posting date.
that said, Document date will be change to what is entered by user
gv_posting_date = p_pstdt.
gv_doc_header-doc_date = gv_posting_date.
gv_doc_header-comp_code = pcard_post_rec-zlsapco.
gv_doc_header-username = sy-uname.
gv_doc_header-doc_type = doctype. "'YP'.
2010 Feb 12 9:08 AM
hi,
1)
if you want set posting date you need following line:
gv_doc_header-PSTNG_DATE = gv_posting_date.
2) FI subsitution it is kind of customisation which may overwrite some data
passed to this BAPI,
example:
"for document type YP set posting date to sy-datum"
regards, darek
2010 Feb 12 2:26 PM
thanks Darak,
Sorry I posted the wrong piece of code but I am setting the posting date to gv_posting_date.
gv_doc_header2-doc_date = gv_posting_date.
gv_doc_header2-pstng_date = gv_posting_date.
gv_doc_header2-header_txt = lv_hdrtxt.
gv_doc_header2-fisc_year = gv_curr_year.
gv_doc_header2-trans_date = gv_posting_date.
2010 Feb 12 5:38 PM
Hello all,
the header was being overwritten by the posting date in the DETAIL items... once I changed this to be the same as the header it back dated in the GL
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |