Quantcast
Channel: SCN : All Content - SAP Business Warehouse
Viewing all 5981 articles
Browse latest View live

ABAP Case Statement in Transformation End Routine

0
0


Hi,

 

I am writing the below Start and end routine with a case statement but some reason its not working as expected.....With my limited ABAP knowledge I could able to correct the issue ...

 

Shall be grateful if someone could provide me inputs.


Logic: A Z Table is maintained with company code and default Profit Centre.

For all Profit centres from source we need to check if first 2 letters starts with IE and source company code 531 0r 521 then populate source fields to result fields if not then populate from z table

 

Start Routine

 

SELECT * FROM ZCC_PC_MAPPING INTO TABLE t_cc_pc_map FOR ALL ENTRIES IN SOURCE_PACKAGE
WHERE COMP_CODE = SOURCE_PACKAGE-COMP_CODE.
SORT t_cc_pc_map BY comp_code.

 

End Routine:

LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.

   l_prefix = <RESULT_FIELDS>-PROFIT_CTR(2).

   CASE l_prefix.
     WHEN 'IE'.
          IF <RESULT_FIELDS>-COMP_CODE = '531' OR
            <RESULT_FIELDS>-COMP_CODE =  '521'.
            <RESULT_FIELDS>-PROFIT_CTR = <RESULT_FIELDS>-PROFIT_CTR.
            <RESULT_FIELDS>-CO_AREA    = <RESULT_FIELDS>-CO_AREA.
          ENDIF.
        WHEN 'CY'.
          IF <RESULT_FIELDS>-COMP_CODE = '797' OR
            <RESULT_FIELDS>-COMP_CODE =  '993' OR
            <RESULT_FIELDS>-COMP_CODE =  '994'.
            <RESULT_FIELDS>-PROFIT_CTR = <RESULT_FIELDS>-PROFIT_CTR.
            <RESULT_FIELDS>-CO_AREA    = <RESULT_FIELDS>-CO_AREA.
          ENDIF.
        WHEN 'RW'.
          IF <RESULT_FIELDS>-COMP_CODE = '1004' OR
            <RESULT_FIELDS>-COMP_CODE =  '650'  OR
            <RESULT_FIELDS>-COMP_CODE =  '911'.
            <RESULT_FIELDS>-PROFIT_CTR = <RESULT_FIELDS>-PROFIT_CTR.
            <RESULT_FIELDS>-CO_AREA    = <RESULT_FIELDS>-CO_AREA.
          ENDIF.
        WHEN 'NZ'.
          IF <RESULT_FIELDS>-COMP_CODE = '1029'.
            <RESULT_FIELDS>-PROFIT_CTR = <RESULT_FIELDS>-PROFIT_CTR.
            <RESULT_FIELDS>-CO_AREA    = <RESULT_FIELDS>-CO_AREA.
          ENDIF.
        WHEN 'GB'.
          IF <RESULT_FIELDS>-COMP_CODE <> ' '.
            <RESULT_FIELDS>-PROFIT_CTR = <RESULT_FIELDS>-PROFIT_CTR.
            <RESULT_FIELDS>-CO_AREA    = <RESULT_FIELDS>-CO_AREA.
          ENDIF.
        WHEN 'GS'.
          IF <RESULT_FIELDS>-COMP_CODE <> ' '.
            <RESULT_FIELDS>-PROFIT_CTR = <RESULT_FIELDS>-PROFIT_CTR.
            <RESULT_FIELDS>-CO_AREA    = <RESULT_FIELDS>-CO_AREA.
          ENDIF.
*     WHEN 'GB' OR 'IE' OR 'NZ' OR 'CY' OR 'RW' OR 'GS'.
*        CONTINUE.
     WHEN OTHERS.
       READ TABLE t_cc_pc_map ASSIGNING <fs_cc_pc_map>
           WITH KEY comp_code = <RESULT_FIELDS>-COMP_CODE BINARY SEARCH.

        IF sy-subrc = 0.
           <RESULT_FIELDS>-PROFIT_CTR = <fs_cc_pc_map>-profit_c.
           <RESULT_FIELDS>-CO_AREA    = <fs_cc_pc_map>-co_area.
        ENDIF.
   ENDCASE.
ENDLOOP.


RSA1/RSD1 uses WebDynpro for master data maintenance now ?

0
0

Hello experts,

 

we wanted to verify one observation: we have been upgrading the underlaying BW stack in an SCM box from SAP_BW 740 / SP-Level 00003 --> SP-level 00007. If we now go to RSA1 --> InfoObjects --> select an InfoObject --> right mouse click --> "Maintain Master Data" then a browser gets opened. We were expecting it stays within the SAPGUI as it was before. Is this standard (WebService for InfoObject master data maintenance?) or can we deactivate such a behaviour and stikc to the previous way (within SAPGUI) ?

 

We found one specific SAPnote for this (1969105) - but it rather explains how to activate the web service than explaining if we have a choice to use or not to use this "browser approach" ?

 

Thanks for any hint !

 

Regards

Thomas

How to reactivate master data and attributes in 0BATCH

0
0

Hi Gurus,

 

I am in big mess right now. Due to someones lack of knowledge I made changes in 0BATCH. To make those changes I had to delete all the master data and related tables /bi0/sbatch, /bi0/pbatch, and removed all the attributes too. That's when the problem started. Now I have to bring it back to its normal self (maintain master data etc...maintain tables...) how can I proceed.

 

Please help with step by step procedure as I dont want to make another mess. Also we have only two environments Dev and Prod. Hence, there is no way I can copy it from another environment.

 

What are the standard attributes for 0BATCH?

 

Regards

Shirley

BW 'load data' step is not triggering

0
0

Hi All,

Process chain load step is not triggering.

Even tried rspc_process_finish, It says, load step is already green. screenshot below for reference.

 

Capture.PNG

Thanks

Sathish

Unit conversion in SAP BW 7.4

0
0

Hi,

 

   We have Quantity in  DR and CAR unit but we want volumes in liters is there any possibility to convert the units in BW 7.4 system 

DTP is taking long time while loading data from DSO to cube or Cube to Cube

0
0


Hi ,

 

When i try to load the data from DSO to cube or cube to cube , dtp is taking long time.

we are using dropping?creating step in PC.

we are loading 10 lakhs records which is taking 1.30 Mins.

No Start/End routine. No formula.

In DTP monitor, i found it is taking time in "Conversion of Characteristic Values to SIDs" step.

 

could you please advise.

 

Regards,

Vinay Saraf

Turn off Infoobject High Cardinality in BW 7.4

0
0

Hi people

 

I've created a new master data characteristic with several attributes. The object is as a provider and is loaded periodically.

 

I am not allowed to add this infoobject in an Infocube, the message shows at the bottom of the screen:

Only permitted InfoObjects (not contained InfoObjects) transferred

 

the long message prompts me to Message no. R7I316:

 

Diagnosis

You are trying to add a set of InfoObjects to a dimension.

 

System Response

Some of the InfoObjects could not be added to the dimension. This might occur in one of the following cases:

 

Adding a high cardinality InfoObject. High cardinality InfoObjects cannot be used in InfoCubes, since SIDs are required when querying InfoCube data. As high cardinality InfoObjects do not have SIDs, you cannot use this InfoObject type in InfoCubes.

Adding a stock coverage key figure to to DataStore object: Stock coverage key figures are not supported by regular DataStore objects.

Procedure

If this InfoObject is really required in the InfoCube, go to the Remodeling Toolbox workbench (transaction RMSRT) and convert the InfoObject.

 

 

Yes, the infoobject has no SID table, and it seem that any newly createdinfoobject are the same.

 

 

How can I switch off the High Cardinality feature? I am on BW 7.4 and not using Hana at all. I have tried the remodeling tool but i found no such "high cardinality flag". Is there any OSS note on this?

 

Thank you in advance,

Gabriel

Replacement path formula variable replaced from a variable used in a formula-if else

0
0

hello BW experts.

 

I have a date type char ZDT_TYP and I have created two input ready variables on it. ZDT_TYP has text maintained in it like 1..complaint date, 2..incoming date.I now have created a formula variable ..zstart_date which will be replaced by variable created on ZDT_TYP with variable key.So when I select 1 in Start Date in selection, formula variable start date will get 1..Now i use this formula variable in a boolean expression

If Start date ==1 * complaint date(char in cube).. This does not give the result.However when I use formula variable input ready .and I directly input 1 the boolean expression reads correctly and the formula shows the complaint dates.

can we not use formula variable replaced with a variable key not give results in Boolean.

 

Thanks.


How to change funcionality "Maintain Master Data" to RSA1 instead WebDympro (BW 7.4)

0
0

Hello Gurus,

 

Someone could help me?

 

In SAP BW 7.4 (Support Package 7) the BW master data maintain function moved from SAP GUI into web dynpro screen.

Can we use it (maintain master data) in SAP GUI RSA1 like SAP BW 7.3?


Is it a configuration in SPRO?


Thank you guys.


PS: It is my first project with SAP BW 7.4

TR Failure due to Some query element

0
0


Hi Guys,

 

One of my transport failed because few query elements were not in M version.  I looked at those elemnets and they were not any RKFs or CKFs or formulas nothing.  The only which has trace of them is RSZELTXREF wherein the I see these two elements. HOw can I collect them in transport?

Here is teh screen shot of RSZELTXREF

 

 

 

Screen 1.PNG

 

 

Regards

Prashant

How to extract V0 information for Wagetype

0
0

We have a requirement stating to enhance the descriptions for a certain wage type into a DSO

 

 

One of the Wage Type is miscellanous deductions. In Payroll its categorized into different items through the V0 table information

 

Such as WT    WageType Description  V0     V0 Description  Amount

             6600 Miscellaneous Deduction  X1   Furniture           50

             6600 Miscellaneous Deduction  X1   Phone               50

 

How can I customize / create generic extractor to retrieve this information from  payroll tables

 

Currenty it will pull 6600 and the value would be 100. I need to know how to split this

 

 

Please help

Converting Date into Calweek based on condition

0
0

Hi All

 

I have following attached scenario,

Based on the condition Linetype flag,I have to derive Calweek either from Ship date or Cancel date

I have written code as below, Could any one correct me where I went wrong,( I am not expert in ABAP)

 

It giving dump saying attached,

 

Thanks in advance.

 

 

 

 

 

 

 

 

 

 

 

 

 

Line Type

Actual Shipment Date

Cancel date

 

 

If Linetype =S

Calweek has to derive from Actual shiment Date

 

Else If Line Type = X

Calweek has to derive from Cancel date.

 

 

I have written following way

 

 

 

    DATA: lv_calweek_date TYPE scal-date,

          lv_week TYPE scal-week.

 

    IF SOURCE_FIELDS-/bic/z_plintyp EQ 'S'.

      lv_calweek_date = SOURCE_FIELDS-/bic/z_pactsdt .

    ELSEIF SOURCE_FIELDS-/bic/z_plintyp EQ 'X'.

      lv_calweek_date = SOURCE_FIELDS-/bic/z_pcncldt .

    ENDIF.

 

 

      CALL FUNCTION 'DATE_GET_WEEK'

        EXPORTING

          date   = lv_calweek_date

        IMPORTING

          week   = lv_week

 

 

       result = lv_week.

 

       clear lv_calweek_date.

       clear lv_week.

 

But when laoding I am getting Following error

 

 

 

 

 

 

 

InfoPackage loading in Quality

0
0

Dear Experts,

 

 

We have created a DSO using Flat File as source.We have transported the DSO from Dev to Quality.While uploading the data infopackage is not accepting the change of file path location.If i am tryig to change the file path location,it is asking to create the new transport request in Quality .Please suggest how to give the file path as new file location such way that new transport request will not be required in Quality server.

 

 

Best Regards,

Venkat .

Hierarchy variable in Bex report, passing value from BPC in Drill down

0
0

Hi,

 

I am doing a Drill through configuration from BPC input schedule  into Bex report.

 

I have a Profit Center variable to be passed into the bex report. I created  bex report, I added Hierarchy restriction to filter the bex report. I configured that in BPC.

 

It calls the report etc. But because it is a Hierarchy restriction, it works when I test in RSRT as the report forces me to select a Hierarchy Node.

 

But because I want to do the Drill through, meaning configuring the variable in BPC. That sends a value to be replaced at runtime in the Bex input variable level.

 

The report does not filter on the passed Profit center value.

 

I am thinking of doing as follows

 

Create a normal variable (not a Hierarchy restriction), write a small piece of code to pass into the Bex report selection with all the Chile level values so this variable acts like a Hierarchy node at run time. I then configure this in BPC like a normal restriction. Read that passed value at runtime and then execute the variable exit --> fetch the child level Profit centers and execute the Bex report.

 

Can you pls let me know if this works ??

 

Kind Regards

Krishna

Transformation ABAP Statement to create Duplicate records

0
0

Hi,

 

I am planning to load Employee and respective sales orgs to a Z Info Object(User ID compounded on Seq No) from a flat file.

Source Data Will be like below


SEQ NO

USER_ID

SALES_ORG
110000167411
210000167473
3100001671068
410000169

*

510000200
610000289501
710000289513
810000289514
910000289513B 
1010000289513C
11  10000289  513D

 

 

My requirement is to write a routine in transformation where for Users with * (Ex:10000169),It should create multiple entries with full list of sales org from 0SALESORG master data.


In Start routine  0SALESORG master data is selected and saved in Internal Table IT_SAL_ORG

 

Please advise how to create multiple entries

 

Thanks in advance


Activation of M records from DataStore object 0FIGL_O02 terminated

0
0

Dear Experts,

 

 

 

 

I am facing below arre in ODS activation for 2 process chain.

 

 

1. 

Request REQU_DK1QQXE7GIHYTXULS85LAI9C2 is not completely activated. Please activate it again.

Activation of M records from DataStore object 0FIGL_O02 terminated

 

 

I tried activating manually and followed few scn threads

like

Right click DSO and select Activate data

Select 'Activate in Parallel'. Try altering between Dialog (PARALLEL_GENERATORS) & Background (C)radiobuttons, by keeping No.of Process 1.

 

 

Checking Change log table but i dont fing entry in change log table.

 

 

2. One error in ods activation is

Error when assigning SID: Action VAL_SID_CONVERT InfoObject 0POSTXT

Value "Opening Comm LG Labor-Periodic Comm on 08LG001976" (HEX 4F00700065006E0069006E006700200043006F006D006D0020) of characteri

Activation of M records from DataStore object 0FIGL_O02 terminated

 

 

 

 

Please advice

Inventory with ML

0
0

Dear All,

 

I am looking for your views.

We have Inventory setup and that is matching for stock quantity with BW report and MB5B (ECC report).

Issue is with 'Stock value' that is not matching with BW report and MB5B (ECC report).

 

Found that in ECC, Material Ledger is implemented and it shows the stock values in MB5B (ECC report) without material document.

because of this BW report is not matching for 'Stock value'.

 

We are looking for these material ledger values in BW report so that 'Stock value' will be same in BW report and MB5B (ECC report).

 

May be you can give some input.

 

Thanks in advance.

 

Regards

Delta load error after the upgrade

0
0

Hi,

 

We have done the ECC upgrade from ECC 4.5 to ECC 6.0 EHP7.

 

After the upgrade, i found all the DSs hare in RED status in RSA7. And, am getting errors as "The error occured in the extractor".

 

Kindly let me know what are the things to be done with respect to Delta Extractor after the upgrade.

 

Thanks for your support.

DS_Error_RSA7.JPG

 

IP_Error.JPG

Best Regards,

Krishna.

Any Function module to convert HHHH:MM:SS into seconds format?

0
0

Hi Gurus,

 

I have a field in the HHHH:MM:SS format ie.

 

you can have an entry like 1028:25:07 or 23:52:14

 

can you please tell me if there is a FM to convert this into seconds or better yet directly into days?

 

thank you,

 

PK

Role and profile to a consultant BW in PRD and DEV

0
0

Hi Gurus,

 

 

At this momment i need to create a role and a the profile to the consultants SAP BW, there is some way to do this task with some standard content instead doing it trought asking for all the transacctions to the BI Team?

 

I m sure there is a effective and efficient way to do this role to consultants BW in the productive enviroment.

 

greetings

George

Viewing all 5981 articles
Browse latest View live




Latest Images