cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in FB01 GL posting

Former Member
0 Kudos

HI all

I m using POSTING_INTERFACE_DOCUMENT function to post the AP/GL/AR accounts.I m facing the problem with hidden fields.I m passing all the field values and for some accounts those fields are hidden so FunctionModule get struck there.

I m posting the data through XI.I dont want to use BDC.

I just want to know the way to find out the hidden fields for particular account(GL) posting.Is there any FunctionModule exsisting that can solve this .Any light on this part will be appreciated.

Thanks in Advance

DhanyaR Nair

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

Hello,

You can find out the defination of the hidden fileds in the table T004F as per the Field Status Variant and Field status group as maintained in the GL Master (Table SKB1).

From, this table it is not easy to find out the hidden field, it is tricky.

Let's say, if you search for Profit center (it is hidden or not), then you will find out it from the 18th digit of the T004F-FAUS1.

T004F-FAUS117(1) = '' >> Required

T004F-FAUS1+17(1) = '-' >> Hidden

T004F-FAUS1+17(1) = '.' >> Optional

So, Better to use program RFBIBL00.. becuase it is doing all this type of things.

Regards,

Naimesh

Reward points, if it is helpful..!

Former Member
0 Kudos

Thanks Naimesh, Max

Naimesh :I just want to know, how this field number 18 is found for the profitcenter. whats the way to find the offset related to fields(58), FAUS1 length is 50. How can we map the fields.Plz reply ASAP.

Max: I need to process the idoc from inbox in foreground mode.Do These BAPI support foreground processing-need to be checked.

Regards

DhanyaR Nair

Former Member
0 Kudos

Hi

Yes it is! You can use the BAPI BAPI_ACC_DOCUMENT_CHECK to control the document data before posting it.

Max

naimesh_patel
Active Contributor
0 Kudos

Hello DhanyaR,

It is also tricky.

Go to FSS0, give your GL account. In create/bank/interset tab, you will find out the Field status group.

Double click on the group, you will come to one more screen.

Click on General data. You will able to see all the fields like assignment number and radibuttons. Now, Open table in SE16 in new session (this will used for comparision), with your field status group.

Change only one radiobutton again any field and save. and open the tabel in SE16 again. And see the difference wiht comparing it with old one.

IT is bit tricky.

Regards,

Naimesh

Former Member
0 Kudos

Thanks All

It got solved .I did as Naimesh suggested.

Regards

DhanyaR Nair

Answers (3)

Answers (3)

andreas_mann3
Active Contributor
0 Kudos

Hi,

have a look here:

Andreas

Former Member
0 Kudos

Hello DhanyaR,

If u want to understand the logic for how it is done then have a look at the FM PREPARE_FIELD_SELECT_STRING.

Set breakpoint at L0F02I01 line 319 and check for the vendor screen layout. SPRO->FInancial acc->Acc receivable & acc payable->vendor acc->master data->preparation for creating vendor master -> define screen layout per company.

Former Member
0 Kudos

Hi

It's not easy to do that, I think It should be better to use the BAPI BAPI_ACC_GL_POSTING_POST or BAPI_ACC_DOCUMENT_POST

Max