Skip to Content
-1

S_ALR_87012357 Report does not populate additional field FLD 1.

Oct 16, 2017 at 10:12 AM

213

avatar image
Former Member

Hi,

I have implemented the BAdi 'FI_TAX_BADI_011' and 'FI_TAX_BADI_014' to populate the Purchase Order value on the additional field(FLD 1) for the TAX report of transaction S_ALR_87012357. The PO populate if I run the report for multiple company codes (for 1 country specific) but it does not populate if I run the report using multiple company code(Using Different country) specific. Could you please help me, why it does not populate the PO field if I use multiple company codes of different country on the screen?

Note - I have implemented the BAdi for those country that I need to see on the filter condition.

10 |10000 characters needed characters left characters exceeded

Have you tried debugging it?

Sorry, this question is not very clear, it does not show your code or any BADI implementation details. Not sure how it could be answered on SCN without such information...

0
Former Member
Jelena Perfiljeva

Hi Jelena,

Thank you for your response. Below is the details.

I have implimented the BAdi "FI_TAX_BADI_014" for the transaction "S_ALR_87012357" to populate the field text as PO number instaed of Fld 1. The code I have implemented for the BAdi method "MODIFY_FIELDCAT" is below.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Oct 17, 2017 at 07:33 AM
0

Hi Ashis Mohapatra,

Tax is at country level. If you check the BAdi, country field LAND1 just field not a internal table. If you want to run the report for different countries, you need to further enhance the coding by getting the country value from table T001. Then populate the country value for different company code line item.

Show 5 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi KK Lam,

Yes you are correct. The BAdi will work for single country specific but the standard program "RFUMSV00" is not allowing to run the BAdi for multiple country specific. Inside the program the below function module has been used which gives a single country value. If a single country received then the BAdi works and populate output. If I use multiple company codes then it won't give any result and BAdi does not works.

Coul dyou please help me on this, how to resolve this issue? Thanks in advance.

CALL FUNCTION 'TAX_REP_CHECK_CC_RANGE'       
   EXPORTING   
     im_ran_bukrs = br_bukrs[]    
   IMPORTING
        ex_land      = g_bukrs_land     
  EXCEPTIONS
        OTHERS       = 3.
    IF sy-subrc <> 0.      
 CLEAR g_bukrs_land.     ENDIF. 

Thanks,

Ashis

0

In the mentioned program there is actually a comment before the FM call:

*   Fill G_BUKRS_LAND if all selected Company Codes have same country
    CALL FUNCTION 'TAX_REP_CHECK_CC_RANGE'

So, clearly, G_BUKRS_LAND will only be populated when all the company codes have the same country. Considering this knowledge, how could BADI work with a country-based filter? Naturally, the filter criteria is not fulfilled (variable is blank, I'm guessing) and BADI is not triggered. With this in mind, what do you think a possible solution could be?

Edit: SAP's code here doesn't make a lot of sense, to be honest. I'd open a low priority incident and point out to them that a country-based filter in BADI can't really be properly implemented here. BADI should be called in a loop for all the countries involved IMHO.

1
Former Member
Jelena Perfiljeva

Hi Jelena,

Thank you very much for providing the information. I am raising an incident from our side to SAP. I will also update here if I get and updates from SAP.

Thanks,

Ashis.

0
Former Member

Hi Ashis Mohapatra,

Every country has their own tax statutory requirement. Hence, it is not make sense to run tax report for different country. That why SAP include that FM to check the country. If you really want to run for different country. You can get help from abaper to find the implicit enhancement point to override the logic.

1
Former Member

Hi KK Lam,

You are correct. I receive the below response from SAP.

RFUMSV00 is run for multiple countries here (quite unusual, as normally tax is reported by country); therefore the parameter G_BUKRS_LAND cannot be populated, and so all the country-specific BADI implementations are not called.

I would question here the customer's approach not to run RFUMSV00 by country.

Now I am closing this thread. Thank you KK and Jelena for your support.

0