‎2008 Jul 23 8:51 AM
Hi,
I'm using this fm in order to create contract. I filled BAPI parameter like this:
Header-creat_date = 2008.07.20
It should normally fill the agreement date in ME31K but when I take a look after executing BAPI, this date is always sy-datum.
Can anyone explain me why or tell me how/where to fill this agreement date in the BAPI?
Points will surely be awarded!
Tarick.
‎2008 Jul 23 9:58 AM
Hi Vinod,
Thx again!
I forgot to mention one thing!
Actually the date is uploaded from EXCEL file into an internal table and then filled inside BAPI in order to create the contract.
So if I use SHD0, how would I be able to fill the Agreement date through BAPI?
By using SHD0, can I avoid having sy-datum and get the value filled in BAPI?
Tarick.
‎2008 Jul 23 9:02 AM
Hi,
ME31K is create contract. When u call/open this transaction it will populate the aggreement date as current date by default. If u want to change it then create one transaction variant for this using transaction SHD0 and u can assign default values for these fields here.
Also check the contract that got created by ur BAPI in ME33K (Not ME31K) for checking whether it is populating correct dates or not..
Thanks,
Vinod.
‎2008 Jul 23 9:26 AM
Hi again,
Thanks for ur answer!
Actually I need to delete this default value (sy-datum) and fill it with a date I put in BAPI. Since the BAPI is not doing it, can I do this by SHD0??
Tarick.
‎2008 Jul 23 9:48 AM
‎2008 Jul 23 9:58 AM
Hi Vinod,
Thx again!
I forgot to mention one thing!
Actually the date is uploaded from EXCEL file into an internal table and then filled inside BAPI in order to create the contract.
So if I use SHD0, how would I be able to fill the Agreement date through BAPI?
By using SHD0, can I avoid having sy-datum and get the value filled in BAPI?
Tarick.
‎2008 Jul 23 4:51 PM
Hi,
If u r using BAPI then why are u worrying about default date that is being populated in transaction. BAPI will not call this transaction. If u pass correct data to BAPI it will update the same in data base. Check this by executing the BAPI. No need to consider SHD0. This is only related to transaction. Nothing to do with BAPI.
Thanks,
Vinod.