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

POSTING_INTERFACE_DOCUMENT (...and COPA)

Former Member
0 Likes
2,577

I want to post FI document FB01 with a profitability segment. I was trying to use FM 'POSTING_INTERFACE_DOCUMENT' for posting but for the profitability seg subscreen, it's a structure (similar to table control recording) 'RKEAK-FIELD(02)' so the function module could not find the proper screen for those fields.

Any solution?

Thanks!!!

8 REPLIES 8
Read only

Former Member
0 Likes
1,652

Hi

Use BAPI <b>BAPI_ACC_DOCUMENT_POST </b> to post post FI documents.

Check this thread

Regards

Raj

Message was edited by:

Rajasekhar Dinavahi

Read only

Former Member
0 Likes
1,652

Hi,

Why dont u use BAPI for FB01?

BAPI_ACC_DOCUMENT_POST

oR

BAPI_ACC_GL_POSTING_POST

<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>

Regards

Edited by: Alvaro Tejada Galindo on Sep 1, 2008 4:08 PM

Read only

Former Member
0 Likes
1,652

you just need do do this:

PERFORM FILL_FTPOST USING 'BSEG-RKE_BUKRS' BUKRS.

PERFORM FILL_FTPOST USING 'BSEG-RKE_WW008' T_DATA-HKONT.

Read only

Former Member
0 Likes
1,652

Exactly. I added the bukrs and it worked.

Thanks

Read only

0 Likes
1,652

How did you fill that field?! (RKEAK-FIELD(02))

I had the same problem but now, even though I manage to generate the screen, the fields come empty and RKEAK-FIELD(XX) is going on another screen.

My code looks like this:

perform fill_fields using 'BSEG-RKE_BUKRS' bukrs.

perform fill_fields using 'BSEG-RKE_WW008' hkont.

perform fill_fields using 'RKEAK-FIELD(01)' field1.

perform fill_fields using 'RKEAK-FIELD(02)' field2.

perform fill_fields using 'RKEAK-FIELD(03)' field3.

perform fill_fields using 'RKEAK-FIELD(04)' field4.

perform POST_DOCUMENT.

Edited by: Daniel BALTA on Aug 28, 2008 12:14 PM

Read only

0 Likes
1,652

Hello,

I am facing the same issue as Daniel, I am trying to address field RKEAK-FIELD(14) while posting a document.

I am using the function POSTING_INTERFACE_DOCUMENT

Fiels RKEAK-FIELD(14) does not exist in dynpro SAPMF05A 0300

I look into function code, but I will appreciate some help on this topic.

Regards,

Florence Mollet

Read only

0 Likes
1,652

Hey Florence,

I managed to solve that issue by addressing the fields from the BBSEG structure and not the screen fields. You can find them all there.

For example:Customer PA is not RKEAK-FIELD(01) but BSEG-RKE_WWKND .

I have another question though: Can this interface be used for creating a batch for multiple entries.

If so, how exactly do you match the header with the items. For example:

Header 1 with 1 line

and header 2 with 2 line.

How can you map something like this?

Read only

0 Likes
1,652

Hello Daniel,

Sorry I cannot really answer your question since I create a batch input session for one document.

I do have several accounting documents to register, but I only create batch input session for the one in errors.

So what I do is I post document and if I get a message error I create one batch input session per error, as I am not supposed to get so many errors hopefully !

Regards,

Florence