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

Start routine not bring desire outcome when loading delta record

$
0
0

Hi Guru

 

I have written a start routine it is  working fine in full load load and not working at all when delta loading.

I have situation where i have(sequence of load will be in same order)

 

Master data of equipment (/BIC/PZASET_TAG)

MAT_ASSET    DSO  (/BIC/AZMATASET00)

Inve DATA  DSO

 



MAT_ASSET  DSO data is coming from 2 source 1 from Inv DATA  DSO(start routine written here) and other is csv file.

In inv data dso i have two field /BIC/ZASSEST, & /BIC/ZAST_SUBN and same fields in Master data of equipment. I have to loop up what is the corresponding value of Item fields(/BIC/ZMAT_PLNT) in Master data of equipment (/BIC/PZASET_TAG) and bring into internal table(ITAB_ASTG1) then i have to bring data from MAT_ASSET  DSO data to another internal table ( ITAB_MAT_ASSET). I have to check

Does the Item and Equip relationship exists in the MAT_ASSET  DSO?

if  yes then i dont do anything.

if  No then  Create(insert record)  Item & Equipment relationship(s) Put Flag -/BIC/ZDYCR_AST = Y (by default it has value N).


NOTE: An Asset and Asset Subnumber can be linked to multiple Equipment records so you will need to create the relationship for all of the ones that do not exist.



TYPES: BEGIN OF TS_ASTG,

        /BIC/ZCUSTOMER  TYPE /BIC/PZASET_TAG-/BIC/ZCUSTOMER,

        /BIC/ZPLANT     TYPE /BIC/PZASET_TAG-/BIC/ZPLANT,

        /BIC/ZASET_TAG  TYPE /BIC/PZASET_TAG-/BIC/ZASET_TAG,

        objvers         TYPE /BIC/PZASET_TAG-objvers,

        /BIC/ZASSEST    TYPE /BIC/PZASET_TAG-/BIC/ZASSEST,

        /BIC/ZAST_SUBN  TYPE /BIC/PZASET_TAG-/BIC/ZAST_SUBN,

      END OF TS_ASTG.

 

 

TYPES:BEGIN OF TY_MAT_ASSET,

      /BIC/ZCUSTOMER TYPE CHAR10,

      /BIC/ZPLANT TYPE  CHAR4,

      /BIC/ZASET_TAG TYPE CHAR45,

      /BIC/ZMAT_PLNT TYPE CHAR45,

      END OF TY_MAT_ASSET.

 

 

DATA:ITAB_MAT_ASSET TYPE TABLE OF TY_MAT_ASSET,

      WA_MAT_ASSET TYPE TY_MAT_ASSET.

 

 

DATA: ITAB_ASTG TYPE STANDARD TABLE OF /BIC/AZMATASET00.

FIELD-SYMBOLS: <ASTG_FIELDS> TYPE /BIC/AZMATASET00.

 

 

DATA: ITAB_ASTG1 TYPE STANDARD TABLE OF  /BIC/PZASET_TAG.

FIELD-SYMBOLS: <ASTG1_FIELDS> TYPE  /BIC/PZASET_TAG.

 

 

DATA:LV_LINES TYPE I.

DATA: WA_SOURCE TYPE _TY_S_SC_1.

 

 

IF SOURCE_PACKAGE IS NOT INITIAL.

      SELECT

      /BIC/ZCUSTOMER

      /BIC/ZPLANT

      /BIC/ZASET_TAG

      /BIC/ZASSEST

      /BIC/ZAST_SUBN

      FROM /BIC/PZASET_TAG

      INTO TABLE ITAB_ASTG1

      FOR ALL ENTRIES IN SOURCE_PACKAGE

      WHERE /BIC/ZCUSTOMER = SOURCE_PACKAGE-/BIC/ZCUSTOMER

      AND   /BIC/ZPLANT    = SOURCE_PACKAGE-/BIC/ZPLANT

      AND   /BIC/ZASSEST = SOURCE_PACKAGE-/BIC/ZASSEST

      AND /BIC/ZAST_SUBN = SOURCE_PACKAGE-/BIC/ZAST_SUBN

      AND   OBJVERS        = 'A'.

 

 

 

 

      SELECT /BIC/ZCUSTOMER

             /BIC/ZPLANT

             /BIC/ZASET_TAG

             /BIC/ZMAT_PLNT  FROM /BIC/AZMATASET00

                            INTO TABLE ITAB_MAT_ASSET

            FOR ALL ENTRIES IN ITAB_ASTG1

            WHERE /BIC/ZCUSTOMER = ITAB_ASTG1-/BIC/ZCUSTOMER

            AND   /BIC/ZPLANT    = ITAB_ASTG1-/BIC/ZPLANT

                   AND /BIC/ZASET_TAG = ITAB_ASTG1-/BIC/ZASET_TAG.

 

 

 

 

    ENDIF.

    IF ITAB_ASTG1 IS NOT INITIAL.

      SORT ITAB_ASTG1 BY /BIC/ZCUSTOMER /BIC/ZPLANT /BIC/ZASET_TAG.

    ENDIF.

 

 

    DESCRIBE TABLE SOURCE_PACKAGE LINES LV_LINES.

    "Deleting Asset Tags from Source_package which are DB existing

    "and keeping only new ones.

    LOOP AT SOURCE_PACKAGE ASSIGNING <SOURCE_FIELDS> FROM 1 TO LV_LINES

    .

      <SOURCE_FIELDS>-/BIC/ZDYCR_AST = 'N'.

      IF <SOURCE_FIELDS>-/BIC/ZASSEST   IS NOT INITIAL .

 

 

        LOOP AT ITAB_ASTG1 ASSIGNING <ASTG1_FIELDS> WHERE

        /BIC/ZASSEST = <SOURCE_FIELDS>-/BIC/ZASSEST

        AND /BIC/ZAST_SUBN = <SOURCE_FIELDS>-/BIC/ZAST_SUBN.

 

 

          READ TABLE  ITAB_MAT_ASSET INTO WA_MAT_ASSET WITH KEY

          /BIC/ZCUSTOMER = <SOURCE_FIELDS>-/BIC/ZCUSTOMER

          /BIC/ZPLANT    = <SOURCE_FIELDS>-/BIC/ZPLANT

           /BIC/ZASET_TAG = <ASTG1_FIELDS>-/BIC/ZASET_TAG.

          IF SY-SUBRC EQ 0.

            <SOURCE_FIELDS>-/BIC/ZDYCR_AST = 'N'.

          ELSE.

            <SOURCE_FIELDS>-/BIC/ZDYCR_AST = 'Y'.

            WA_SOURCE =  <SOURCE_FIELDS>.

            WA_SOURCE-/BIC/ZASET_TAG   =  <ASTG1_FIELDS>-/BIC/ZASET_TAG.

            APPEND WA_SOURCE TO SOURCE_PACKAGE.

          ENDIF.

        ENDLOOP.

      ENDIF.

    ENDLOOP.

I have included a example in attached file .

Thanks

Rashid


formula keyfigure logic

$
0
0

Hi friends,

 

I need to make a formula key figure with the below logic

 

(Actual release PR date) >  Level 2 Basic Start Date WBS

if no (Actual release PR date).Then compare (Today date vs Level 2 Basic Start Date WBS < 8 Weeks).if its is less then 8 weeks. it is overrun

 

 

 

Regards,

Skrish

Error query bex with cells

$
0
0

Hi guys!!

 

I have a problem with a query BW with cells, i change a structure (positions of the components of the structure), and now i have an error with that.

 

I attached printscreen... the query is inconsistent?? how i can fix it??

 

 

Error BW.jpg

 

Thanks a lot!!

 

Regard,

César.

Bex: How to calculate Average of stock value for two years

$
0
0

DEar experts!

 

I Must build bex query with key figure of calculated average of 2 years( depend of the calmonth of the bex)I have next query:

 

org unit  ocalmonth  stockvalue.  avr_2_years

220.         12.2014.   40.              Average of 2013 2012

220.        01.2015     20.              Average of 2014 2013

220.        02.2015     40.              Average 2014. 2013

220.        03.2015.    60.              Average 2014 2013

 

 

how can i implement avr_2_years? I very glad to get any help(we have bw 7.3).

 

 

THank very much.

 

BEst regards,

benyamin orit.

Failure at save hierarchy step in process chain

$
0
0

Hi All,

 

When we encounter a failure at save hierarchy step in a process chain, we manually run the infopackage and after it completes we skip the step.

I don't understand why we do it like this. Does just running the Infopackage solve the problem which save hierarchy does?

 

Thanks in advance.

 

Regards,

Purva.

Transportation of DS

$
0
0

Hi friends,

The DS 0FI_GL_10 is function in BI-Dev and now i need it in BI-QA.  I am new to BI.  kindly suggest me whether I need to (a) transport DS from ECC-Dev to ECC-QA first and then replicate it in BI-QA OR (b) transport active DS from BI Dev to BI QA directly OR (c) activate DS in ECC-QA through RSA5 and replicate in BI-QA ?

How to remove value for Duplicate record

$
0
0

Dear All,

 

I am having following scenario.

 

I

INVOICE NUMBERitem
DeliverynumberDelivery value
5000110DEL1000150
5000220DEL1000150
5000310DEL1000150

 

i want to delete the value for "Delivery Value" on the basis of Delivery number which is repeating and not entire row.How can i routine for same.

HR Datasources for HRP1036 table

$
0
0

Hi Gurus,

 

I am new to BW HR. there is a requirement to get the data from HR tables HRP1036, eg. KOBES(Cost Item), KOBES001(Cost Item) to KOBES008(Cost Item)

Is there any standard data sources that I can use or not?

 

any thoughts would be highly appreciated.

 

Thanks and Regards

Venkat


Enter data in DSO for direct update manually - end user frontend

$
0
0

Hi.

 

We have some special requirements that results in manually entered data by the business. So I a looking for an easy way to store the input without building CSV uploads for every excel we have to store in SAP BW.

 

The best solution in my opinion is to use a DSO for direct update and then enter the data with RSINPUT...but the report is not for production usage so what are other simple methods to enter data in an DSO without building custom webdynpros or things like this? Should I perhaps take a look into IP to use this as an interface to the users? Never used it before...so I am not familiar with the possibilities available there.

 

Cheers,

Nils

Sid's generation for the transaction data characteristic.

$
0
0

Hi Team,

 

When loading the transaction data of office in to the info cube and viewing the result two characteristics both the level and  off id Sid tables contains same Sid values.Normally for each and every master data entry a Sid will be generated.So could you please help with the answers why same Sids are generated for 2 characteristic.

 

Below is the output file,please find the attachment.

 

Thank in advance.

 

Regards,

sathish.

filtering random material types

$
0
0

Hii friends,

  

I did a read master data and got material type field from material. We have around 50 Materail type now client wants to see only 20 .I cant filter them at dtp as material type is not available in source.i can write a routine and filter them manually but i was told that we create ranges in transformations and filter those material type which are not recquired ..plz explain me how to create ranges for material types as they are random.

how not to load openhub if source is empty in process chain

$
0
0

Dear All,

 

I would like to ask about the following case:

 

We are loading Openhubs using Transformation from DSO objects, which is set up in process chains using full upload.

 

In some cases it happens that the source DSO becomes empty and in that case Openhub gets empty as well.

 

Would you please recommend how to set up that in case the source DSO is empty the openhub destination is not loaded?

 

Thank you,

 

Jan

LO and FI Delta extraction logic

$
0
0

HI ,

 

Why don't we have timestamp concept in LO datasources for delta extraction but FI have?

 

Thanks,

Chinmay Padhi

Converting FLTP data type data to normal format

$
0
0

i would like to convert a standard key figure (9ADDKF1) in data source   information setup as FLTP to normal number format with decimals , is there a  standard  conversion available if no what options can i use ?

Transformations imported to QA with version T

$
0
0

Hi we have imported a group of transformations, initially they all failed with RC 8.

 

Now we gathered those transformations by activating them and collecting in a new transport, this time we sent the transport in Overwrite mode. The transport was successfull (RC 0) but the transformtions are not seen in the target system. On  looking at table RSTRAN we could see that all the imported transformations are in verison T ( transport) and not in A version.

 

In fact even other objects like Info packages and DTP are also showing with OBJVERS = T in their respective tables

 

 

what could be the reason for this and how to resolve this


Enhancement for 0COMP_CODE_TEXT Data source

$
0
0

Hi,

 

I have enhanced the Master data datsource for 0COMP_CODE_TEXT and added Long text field(TXTLG) to the DS.

Now i need populating the data to that TXTLG field writing the ABAP Code.

 

Could you please any one can help with this code.

 

Many Thanks in Advance.

 

Regards,

Ananda

Table information

$
0
0

Hello, i have a requirement to gather a list of all data sources that are included in 5 process chains. I know I can go in those process chains and get the information needed but they are very big process chains. Does anyone know if there is a table which keeps this kind of variant information where I can put in process chain name and it gives me all the data sources there are existing.

 

Thanks.

Row to column display at query level

$
0
0

Hi,

 

I have one DSO which stores the information in below way.

 

Partnerchar valuechar namecount
JohnCity of residenceSydney1
JohnDesignationManager1
JohnGenderMale1
JohnIndustryOthers1
JohnAvailing LoanYes1

 

In report I want to show the information in below way.

 

 

PartnerCity of residenceDesignationGenderIndustryAvailing Loan
JohnSydneyManagerMaleOthersYes

 

 

Pls let me know at query designer level how to achieve it. I don't want to change the modeling part as possible that in future more such char values may come up.

Header & Trailer for Files generated by OHD

$
0
0

Hello Gurus,

 

We have reuqirment where clinet is looking for header and Trailer for the files generated by OHD files.

Example.

 

HEDR|YYYY-MM-DD|HH-MM-SS|<Some text>

 

 

and triler is

 

Trailer is

 

TRIR|00000010|

 

where 000010 is number of rowcont

 

can u pls help me how to get it and where to write code.

 

Regards,

Khaja

Info Object with Transport Lock

$
0
0

Hi,

 

Im trying to enhance the existing info Object 0INFOPROV in Dev system and make it as an auth relevant.  To do it, I switched the mode from "DISPLAY" to "EDIT", as soon as i change the mode, I get a LOCK SYMBOL near the info object technical name which says that "characteristic - Infoobject with transport lock - carrier field for icons". Even though it is in edit mode, Im unable to make any changes to the info object.

 

Below re the methods which I tried to change the infoobject.

 

* Tried changing through RSD1,

* Collected the Info Object in a TR and then tried changing.

* check for lock in SM12.

 

But none of them helped me.

 

Can you please let me know to get rid of this lock symbol.  Im getting this symbol for all info objects.

 

Attaching the screenshot for reference.

 

Thanks

Viewing all 5981 articles
Browse latest View live




Latest Images