2007 Jun 27 2:28 PM
Hi,
In User-exit, i am trying to modify Document date and Posting date of Accounting Document (Table : BKPF ) by using the following stmt:
modify bkpf from table it_bkpf1.
if sy-subrc = 0.
commit work and wait.
endif.
But the modification is not done for some Accounting Document's.
While debugging it is updating but not for Normal execution.
Please suggest on this.
Regards,
Aruna.
2007 Jun 27 2:39 PM
STOP! you should not be directly modifying standard table BKPF. You must find either a suitable user-exit or BAPI to indirectly modify the table. Direct updates to standard tables could get you into a lot of trouble.
It's updating during debugging because you are probably getting an implicit commit work as you step through the debug session.
Hi,
In User-exit, i am trying to modify Document date and Posting date of Accounting Document (Table : BKPF ) by using the following stmt:
modify bkpf from table it_bkpf1.
if sy-subrc = 0.
commit work and wait.
endif.
But the modification is not done for some Accounting Document's.
While debugging it is updating but not for Normal execution.
Please suggest on this.
Regards,
Aruna.
2007 Jun 27 2:39 PM
STOP! you should not be directly modifying standard table BKPF. You must find either a suitable user-exit or BAPI to indirectly modify the table. Direct updates to standard tables could get you into a lot of trouble.
It's updating during debugging because you are probably getting an implicit commit work as you step through the debug session.
2007 Jun 27 2:52 PM
Use a FM or a BAPI to match the corresponding functionality..
cheers
2007 Jun 27 3:10 PM
Hi,
Can you please give us the BAPI name through which i can update doc. date and posting date in BKPF table.
Thanks.
Aruna.
2007 Jun 27 3:10 PM
Hi,
Can you please give us the BAPI name through which i can update doc. date and posting date in BKPF table.
Thanks.
Aruna.
2007 Jun 27 3:28 PM
Hi,
Why not do a simple BDC for transaction MB02? may be the best option
Hope it helps
2007 Jun 28 6:03 AM
HI,
When i check the document in MB02 txn.. the posting and document date will be in disable mode.. can i update these field values through BDC.
Regards,
Aruna
2007 Jun 28 9:45 AM
Why would you want to change the document date, I don't think you should be changing that.
2007 Jun 28 9:54 AM
Hi,
The Document Date is the date in which the business transaction for the Documente(e.g., a transfer of posting) took place. The document date is the date on which the original document was issued.
The document date can, for example, refer to the creation date of the delivery note issued by the vendor or the internal goods receipt slip.
Note: It is possible that an invoice was issued with a Document Date of 6/15/98, entered into R/3 on 7/15/98 (Entry Date) with a Posting Date of 6/30/98 (to post the Document in the previous fiscal year). Many times, all three of these dates are the same
Are you sure that the <b>exit SAPLF051</b> was active. You may need to activate it through transaction CMOD.
<b>Reward points</b>
Regards
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |