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

Reg: BAPI_ACC_DOCUMENT_POST.........

Former Member
0 Likes
2,195

Hi,

I am posting the Acnt documents through BAPI_ACC_DOCUMENT_POST. Here I am passing the customer doc's to Accounts_receivable table, and remaining line items to GLAccount table.

Here when I posted the documents I am receiving the ERROR message that "Enter Business Location".

With the same parameters I tried for another company code it is working fine for me.

What I want to know is 'Business location' and 'Business Area(BSEG-GSBER)' are they both same???

If not please suggest me some thing to over-come this problem.

Thanks in Advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,837

Are you reffering to Business Place BSEG-BUPLA ??

11 REPLIES 11
Read only

Former Member
0 Likes
1,838

Are you reffering to Business Place BSEG-BUPLA ??

Read only

0 Likes
1,837

Hi Rohit,

Actually in that FM in ACCOUNTSRECEIVABLE table I dont find any field like BSEG-BUPLA, but there is a field BSEG-GSBER(Business Area). Thats why I fetched BSEG-GSBER and passed to it. Even though it is giving me the error 'Enter Business Location'.

With the same parameters I tried to post in different company code it is working fine with me.

What I was thinking is while defining the PAYERS in new company code some parameters are missed it-seems.

Could any one suggest me some thing to over-come with this issue.

Thanks in advance.

**Problem not solved.

Message was edited by: KDeepak

Message was edited by: KDeepak

Read only

0 Likes
1,837

Hi Deepak,

There is a field called BUSINESSPLACE in ACCOUNTSRECEIVABLE which is mapped to BSEG-BUPLA.

The message that you get is given when BUPLA is empty.

(Message Class F5A and 192).

So try filling BUSINESSPLACE and see whether it works.

Sri

Read only

0 Likes
1,837

Hi Srikanth,

I am posting the Customer line items for Ierland company code it is working fine.

At the same time with same perameters I am trying to post to Taiwan company code which is giving me the error.

But how it is posting through FB01 when posting CUSTOMER LINE ITEMS for Taiwan.

What my requirement is Transfer of Balances across company codes.

So when Transferring the amount from one company code to another how can i get this Business Place.

If you have idea please.........

Thanks in Advance.

Message was edited by: KDeepak

Read only

0 Likes
1,837

Hi Deepak,

There is a subroutine called CHECK_BUPLA in function group FACI which contains some special code for Taiwan and India. Please take a look at it.

The source code also contains a lot of Note numbers, 582784, 458162, 373831.

Business places are to be maintained in a table called J_1BBRANCH and it is by company code.

Also it looks like this business place can be assigned to a plant or can be maintained as user parameters.

(Take a look at function module J_1H_BUPLA_GET_VALUE).

You need to see whether there are any business places maintained in J_1BBRANCH for Taiwan company code and then need to see whether you have to assign it to a plant (field T001W-J_1BBRANCH) or maintain it as user params (SET/GET Parameter "ID_BUPLA").

I could not really check this in our system here as there is no data.

Hope this helps..

Sri

Read only

0 Likes
1,837

Hi Srikanth,

Thanks for your information......

Here also I dont find any records in my system for BUPLA.

Its ok I will check with my functional people.

By the way where r u working. Can I know you contact no or Yahoo ID for better communication and get the things done in a proper way.

Thanks.

Read only

0 Likes
1,837

Hi Deepak,

My yahoo id is srikanth_sap@yahoo.com

Sri

Read only

0 Likes
1,837

Hi Deepak,

I've faced the same issue here; we were facing an error while posting to accoountgl, because AR & AP are working fine, so what we've come up with and worked is;

Append the businessplace in BAPIACGL09 struture and i should look like this;

...

wl_accountgl TYPE bapiacgl09,

....

wl_accountgl-businessplace = wl_file_i-local_neg.

....

in bapiacgl09 structure

.APPEND ZZST_BUSINESS ...

BUSINESSPLACE ACPI_BRANCH CHAR 4 0 ...

This was the ABAPer solution, i hope it helps.

Read only

0 Likes
1,837

Francisco,

Did you do this change to the structure bapiacgl09 following some SAP note?

I am having the same problem but I can use this solution only if this change come in a SAP note.

If yes, please, let me know.

Best regards and thank you,

César

Read only

Former Member
0 Likes
1,837

Hai Deepak

check with the following code

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'

EXPORTING

documentheader = gd_documentheader

customercpd = gd_customercpd

contractheader = gd_fica_hd

IMPORTING

obj_type = l_type

obj_key = l_key

obj_sys = l_sys

TABLES

accountgl = it_accountgl

accountreceivable = it_accountreceivable

accountpayable = it_accountpayable

accounttax = it_accounttax

currencyamount = it_currencyamount

criteria = it_criteria

valuefield = it_valuefield

extension1 = it_ext

return = it_return

paymentcard = it_paymentcard

contractitem = it_fica_it

extension2 = it_ext2

realestate = it_re.

otherwise go through the program 'ACC_BAPI_TEST_DOCUMENT'

Thanks & regards

Sreenivasulu P

Read only

0 Likes
1,837

Hi Ponnadi,

My code..............

CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'

EXPORTING

documentheader = it_hdr

TABLES

accountgl = it_gl

ACCOUNTRECEIVABLE = act_rec

currencyamount = it_curr

return = t_result.

LOOP AT t_result WHERE ( type = 'E' OR

type = 'A' ).

EXIT.

ENDLOOP.

IF sy-subrc <> 0.

REFRESH t_result.

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'

EXPORTING

documentheader = it_hdr

TABLES

accountgl = it_gl

ACCOUNTRECEIVABLE = act_rec

currencyamount = it_curr

return = t_result.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

ENDIF.

The same code is working fine for 1 company code. At the same time it is not working for another company code for CUSTOMER LINE ITEMS.

Which is giving me the error 'Enter Business Location'.

Thanks.