2007 Oct 01 4:56 AM
Hi,
I am using BDC Session method to post customer invoice by using Tcode FB70.
I have to schdule this session in background.
I read some posts in forums saying that, FB70(Enjoy Transaction) Won't support BDC SESSION in background scheduling.
If it is true, Then what is the other suitable method.
I checked some BAPIs like, BAPI_ACC_DOCUMENT_POST and BAPI_INCOMING_INVOICE.
But some of my required fields are not available in those BAPIs.
Here are my required fields.
Header_text(18) TYPE c, "Invoice No
altkn(17) TYPE c, "Cust No
bldat(8) TYPE c, "Invoice Date
wrbtr(13) TYPE c, "Gross Amount
s_amt(13) TYPE c, "Sales Amount
sgtxt(40) TYPE c, "Customer Order No
gl_acc(10) TYPE c, "Group
zterm(8) TYPE c, "Pay Terms
So please help in find some solution to my problem.It's very urgent for me.
If possible send me some sample code.
Thanks in Advance!!
I will reward points for the useful answers.
Hi,
I am using BDC Session method to post customer invoice by using Tcode FB70.
I have to schdule this session in background.
I read some posts in forums saying that, FB70(Enjoy Transaction) Won't support BDC SESSION in background scheduling.
If it is true, Then what is the other suitable method.
I checked some BAPIs like, BAPI_ACC_DOCUMENT_POST and BAPI_INCOMING_INVOICE.
But some of my required fields are not available in those BAPIs.
Here are my required fields.
Header_text(18) TYPE c, "Invoice No
altkn(17) TYPE c, "Cust No
bldat(8) TYPE c, "Invoice Date
wrbtr(13) TYPE c, "Gross Amount
s_amt(13) TYPE c, "Sales Amount
sgtxt(40) TYPE c, "Customer Order No
gl_acc(10) TYPE c, "Group
zterm(8) TYPE c, "Pay Terms
So please help in find some solution to my problem.It's very urgent for me.
If possible send me some sample code.
Thanks in Advance!!
I will reward points for the useful answers.
2007 Oct 01 8:19 AM
hi,
Are you reading the file from presentation server.....??? In that case it wont run in background mode. You will have to use <b>Open dataset and read dataset</b> statements , after loading the file to application server.
It might work then.
<b>Hope this is helpful, Do reward.</b>
2007 Oct 01 8:31 AM
From the description you give, you may find transaction FB01 is suitable for your needs - it can be used to post almost any type of FI document so long as you know your debits and credits, and posting keys and GL accounts etc. So create a recording with SHDB for this transaction to create the type of document you need... but are you sure the BAPI_ACC_DOCUMENT_POST isn't sufficient - the fields will have different names and the customer lines and GL lines will need to go into different internal tables, but it should work too.
Jonathan
2007 Oct 01 9:47 AM
Jonathan,
It is not a FI Document. It is customer invoice(FB70). I have to read data from Application server. So is this BAPI (BAPI_ACC_DOCUMENT_POST)serves my purpose??
2007 Oct 02 1:33 AM
FB70 is an entry point to SAPMF05A - this handles all manner of documents that relate to finance processing, so I consider them FI documents... Yes, one side of the document ends up against a customer, but the documents created are stored in BKPF, BSEG and all their friends and customer and vendor postings still also hit the relevant reconcilation accounts.
In BAPI_ACC_DOCUMENT_POST you will see tables for:
*" TABLES
*" ACCOUNTGL STRUCTURE BAPIACGL09 OPTIONAL
*" ACCOUNTRECEIVABLE STRUCTURE BAPIACAR09 OPTIONAL
*" ACCOUNTPAYABLE STRUCTURE BAPIACAP09 OPTIONALwhich is where you separate out the different line types for the BAPI call.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |