Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FB70 Error in BDC SESSION.

Former Member
0 Likes
940

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.

4 REPLIES 4
Read only

Former Member
0 Likes
789

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>

Read only

Former Member
0 Likes
789

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

Read only

0 Likes
789

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??

Read only

0 Likes
789

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 OPTIONAL

which is where you separate out the different line types for the BAPI call.