Merchandise Category Hierarchy level wise Condition Tables.

Hi,
     I'm faced with a requirement where I have to maintain Condition table Merchandise Category Hierarchy level wise. Is it possible? Can anyone throw light on the subject.
Regards

Hi,
Have u assigned fields, in the access sequence. U can find two tabs in access sequence, accesses and fields, in the tab access u maintain all the tables according to ur requirement. after that u have to select fields option press enter repeatedly for the field assignment of the selected fields. i think ur problem will be resolved once u complete this.
Regs,
Ravi Duggirala

Similar Messages

  • Table link between merchandise category & hierarchy level

    Hi,
         i want to know the table link between merchandise category(MATKL) & Hierarchy level (CLASS).It would b better if i can get the link between material code & Hierarchy Level (CLASS) .
    If u hav any idea please let me knw.

    Hi,
    Have u assigned fields, in the access sequence. U can find two tabs in access sequence, accesses and fields, in the tab access u maintain all the tables according to ur requirement. after that u have to select fields option press enter repeatedly for the field assignment of the selected fields. i think ur problem will be resolved once u complete this.
    Regs,
    Ravi Duggirala

  • Merchandise category & hierarchy upload using LSMW???

    Hi
    I am trying to upload Merchandise category and hierarcy using LSMW (BAPI/IDOC method only).
    For merhcandise category
    I used message type W_WGRP and it is helping me in changing or reclassification of articles. But I am not able to create new merchandise category with this. I used structure E1BPE1WGR01  with "function" field with value "005, LSMW is working fine idocs are created successfully but no new Merc Cat is created.
    When I used same structure with "function" field with value "009" I get error message "Class XXX does not exist or or is not valid on this date".
    For Merchandise Catrgory Hierarchy
    I used idoc CLSMAS but getting error message "Keyword missing for class XXX"
    has anybody uploded entire hierarchy structure using LSMW ?

    Sorry to say, but your problem is not resolved.
    In IS-Retail, a merchandise category must first be created as a class (CLSMAS) and then also as a merchandise category (W_WGRP).  Yes, you must process two IDoc per merchandise category, and in that order.
    To understand how to load data using LSMW, the best approach to watch what the system does naturally.  In this case, use T-Code WGSE to send the merchandise category hierarchy via ALE from one system-client to another.  For understanding, you needn't configure the entire ALE scenario, just the outbound portion.  Then watch the outbound IDocs be created; there's your example!
    For merchandise category hierarchy (including merchandise categories), there are four message types that will be sent: W_WGRP, CHRMAS, CLFMAS, and CLSMAS. 
    IDoc Serialization using message types (serialization groups) is used when several different message types are dependent on each other, as is the case here. For example, if a merchandise category is assigned to a merchandise category hierarchy level, the merchandise category hierarchy level must first exist.  How you use LSMW and IDocs is informed by the sequence.
    To understand the IDoc sequence for creating the merchandise category hierarchy (including merchandise categories), use T-Code BD44 to view the Serialization Group GRP_W_WGRP includes the 4 desired message types in sequence:
    CHRMAS04 Distr. of Characteristics with Dependencies and Long Texts
    CLFMAS02 Master object classification
    CLSMAS04 Classes with Long Texts, Document Links, and E1UPSLINK
    W_WGRP01 Distribution of material groups
    CHRMAS04 is only relevant of Characteristics are being assigned to merchandise categories.  Let us leave Characteristics aside for now.
    Step 1:  Create Merchandise Category Hierarchy Nodes
    Step 2:  Merchandise Categories - Create as a Class
    Step 3:  Merchandise Categories - Change as a Retail MC
    Step 4:  Merchandise Categories - Assign Category Hierarchy Nodes each other, and assign MC class to MCH node.
    For this, use these messages:
    Step 1:  CLSMAS04
    Step 2:  CLSMAS04
    Step 3:  W_WGRP01
    Step 4:  CLFMAS02
    - Paul
    Paul R. Gendreau, Jr.
    SAP Retail

  • Merchandise category Hierarchy

    All ,
    I want to create the merchandise category Hierarchy for the TCode WG21.
    I would like to know is there any FM,BAPI or Idocs for creating this .
    Your inputs will be higly appreciated .
    Regards,
    Vijay.

    please post this in BW Business Explorer forum
    Regards
    Raja

  • Merchandise Category hierarchy - how do you connect them?

    Hello all:
    I am creating an assignment to do with my MBAs this Saturday and I have hit a stumbling block.
    I am not sure it is my understanding on the SAP concepts or my not clicking the right thing!!!
    So here is my scenario. : 
    MC level  nonfood
                    MC level Drugstore
                                    MC level Beauty
                                                    Mcategory Soap
    So I have each of these created and I can assign the merchandise category Soap to the MC level Beauty.  I cannot assign any additional levels to Soap. I  can see additional lines, but they are grayed out and I can not click on them or add any additional levels to the category
    Then I tried to link Beauty to Drugstore and then Drugstore to Nonfood u2013 this did not work either u2013 or I can't find the right place to link them.
    Help
    Molly

    Molly - no worried.  Gail will be getting a note out to the Retail course developers w/more info about posting questions.  Before UAC went live we debated about where various discussions should be initiated ... and the sense we got from faculty was that more theoretical / general discussions should go in the public area (i.e. here), but faculty preferred to hold specific product / curriculum focused discussions in the members-only area that only faculty had access to (so students aren't using the posts as a way for them to take the quick route through exercises).
    Heather

  • Multiple hierarchy levels from single table

    Happy 2014 for everyone!
    Here is my first problem of the year: I got a product table with "coded" hierarchy, like this:
    1
     Level
    11 
    Level
    111 
    Level
    1111 
    Level
    11111 
    Product
    11112 
    Product
    11113 
    Product
    1112 
    Level
    11121 
    Product
    112 
    Level
    1121 
    Level
    11211 
    Level
    112111 
    Product
    112112 
    Product
    112113 
    Product
    How should I go about to create an hierarchy from this table? Keeping in mind that products could be in different levels.
    Any ideas please?
    Thanks very much!

    I think you can model this as a parent-child hierarchy.  More info here: http://technet.microsoft.com/en-us/library/ms174846.aspx
    If you are using multidimensional: http://www.brustblog.com/archive/2008/06/22/analysis-services-2008-wizards-is-the-magic-gone.aspx
    If you are using tabular: http://sqlblog.com/blogs/alberto_ferrari/archive/2011/07/19/parent-child-hierarchies-in-tabular-with-denali.aspx
    Christian Wade
    http://christianwade.wordpress.com/
    Please mark correct responses as answers!

  • Category Hierarchy Level

    Hello there,
    I am generating a custom site map cause I have custom URL for each level. On my service, I receive the RepositoryItem that is a category.
    How can I know the in what level this category is inside a catalog (that is a RepositoryItem too) ?
    Example:
    Level1: Depto1
    Level2: ---- Category1
    Level3: ---- ---- Sub Category1
    Level2: ---- Category2
    Thanks.

    As there is no direct way to know which level a category belongs for a catalog. the 2 possible solution I can think of are:
    1. Define a persistent property to store level and set it when adding or modifying a category. Its very easy if you have category coming via a sync job.
    If not you can add a CMSService to set this property after each deployment
    2. Write a property descriptor which will return level for current user catalog. This can cause performance issue which can be mitigated by using it in combination of repository cache.

  • Differences between Article Hierarchy and Merchandise Category

    Hai Gurus,
    Can somebody distinguish the differences between the Article Hierarchy and Merchandise Categotry? Which one is better to use? Both seems to have a similiar functionality but why SAP had proposed Article hierarchy and Merchandise category seperately?

    Hi Voyeurhuman,
    if you have not typed correctly, then you might be interested to know the difference between Articel hierarchy & Merchandise hierarchy.
    pls go thru following: 
    Article Hierarchy
    .grouping of articles with sales oriented approach
    .customer oriented structure
    .Consumer decision Tree
    .maximum eight levels
    .planning hierarchy used for sales plannng in MAP
    .multiple no. of  Article hierarchies at a time with schedule article hierarchy i.e. with time dependent functionality
    .can be define for distrubution chain dependent
    .can be transported to BI
    .data can be imported as wellas exported using interfaces
    .sub structure of one can be copied from one to another
    .Major characteristics-->responsibility, reference assignment, price point group assignmnet, merchandise distributio(fashion/basic), role,strategy/
    .multiple assignment of articles is not possible within same category
    .it can be assigned to department store and shops with pre-requisite of multiple assignment checked
    Merchandise Hierarchy
    .its a purchase oriented approach
    .it classify and structure all aspects of the merchandise
    .purchaser decision tree
    .An unlimited number of hierarchy levels is possible
    .terms are used in merchandise category hierarchies
         -Merchandise category hierarchy levels
         -Merchandise category hierarchies
         -Characteristics profiles
    .All the elements in the merchandise category hierarchy are defined as classes(class 026)
    Both Article & Merchandise Hierarchies are very much different. Both are meant for differnt purposes.
    thanks,
    Naresh Kumar
    Edited by: Naresh_ISR on Feb 17, 2010 10:47 AM
    Edited by: Naresh_ISR on Feb 17, 2010 10:48 AM

  • Change Merchandise Category for Article

    Hi
    Can you please tell me the procedure for changing the Merchandise Category for an article and also let me know the implications for the same. Purchase and Sales for the article have been done.
    Thanks in advance
    Poonam

    Hi Poonam,
    This process shows how to can change the assignment of articles to merchandise categories and merchandise category levels in merchandise category hierarchies. This process is called as Reclassification.
    To do this, you have to carry out Process Flow as below;
    (1) Define the planned date for the reclassification version and assign a change identification.
    (2) Select the objects to be reclassified:
    Article
    Merchandise category
    Merchandise category hierarchy level
    (3) If an article is to be moved to a merchandise category which has a characteristics profile assigned to it, decide if the article should be assigned to the merchandise category directly or to the characteristics profile.
    The system checks the characteristics of source and target objects: reassignment is only possible if the characteristics and characteristic values of the source also exist in the target.
    (4) The system checks the level at which stock is managed in the affected sites: if in at least one site the stock is managed at a higher level than the article level, reclassification is only possible if the value-only article remains the same or if no stock exists anyway.
    (5) Process the error log and change the reclassification version, as necessary.
    Save the reclassification version. This is a simulation version, meaning that it does not take effect until it is actually activated. You can change this version right up until its activation date.
    (6) By activating ("updating") the reclassification version, you confirm that the relevant objects are to be moved on a specified date and - if articles are being moved - that the merchandise categories are to be changed in open purchase orders and allocation table items (optional). New listing conditions can be created and old ones deleted, as required.
    (7) If necessary, you update the Information System (manual function).
    Bye,
    Muralidhara

  • Displaying all GL accounts according to hierarchy level(Based on ERGSL)

    Hi all,
    I have a requirement to display balance sheet and PL account for the given period...
    1. I have to select all G L account numbers (BSEG-HKONT) with their amounts which belongs to same group (i.e. for those ERGSL value is same).
    2.Display sum at each hierarchy level with respect to company codes.
    From table FAGL_011ZC we can find the range of GL account (lower limit-VONKT upper limit-BISKT) and ERGSL using VERSN.
    In T-code FSE2 we can see the hierarchy levels.
    The table FAGL_011PC will get parent ane child relation ship for ERGSL.
    I have to display all these GL accounts according to hierarchy leve.
    please help me out in this regard.(if there any similer code it would be a great help).
    Thank you all in advance!!!!
    Ravi

    Hi Bhanu,
    thanks for your fast response, but this did not help. To make it more clear:
    Lets assume, I have the following hierarchy:
    <Root>
    |
    +- Good Customers
    |  |
    |  +- Customer_A
    |  |
    |  +- Customer_B
    |
    +- Bad Customers
        |
        +- Customer_C
        |
        +- Customer_D
    I have the customer in the free characteristics of a more complex query. I restricted it to the hierarchy node "Good Customers".
    In the web template i use a "Dropdown Box" with the customer as the assigend characteristic and read mode "Dimension".
    In this example the dropdown box would show the entries
    - All values
    - Customer_A
    - Customer_B
    But I would like to see the entries
    - All values
    - Good customers
    I already tried various settings in the query definition concerning the display hierarchy of the customer char with no success yet.
    Regards,
    Philipp

  • Table relationship between hierarchy level and merchandise category

    1) Want to find Merchadise Category from Merchandise Hierarchy level which is attached with same Merchandise category.
    I am having data/TABLE as below.
    my input: M_WWG1C_class
    i want to fetch data matkl in T023 or matkl in MARA for the same article within same merchandise category.
    How i can have link?
    2) i am having input CAWN_atwrt(Characteristic Value) and how i can reach matkl in T023 or matkl in MARA  for the same article within same merchandise category.

    Oracle does not support REPEATABLE READ transaction isolation level. It only supports SERIALIZABLE, READ COMMITED and READ ONLY isolation levels.
    The default is READ COMMITED.
    While the READ COMMITED can access all the committed data till the point of execution in transaction, READ SERIALIZABLE can access committed data till the point of start of transaction.
    Another difference between two with respect to ROW LEVEL LOCKING is
    Both read committed and serializable transactions use row-level locking, and both will wait if they try to change a row updated by an uncommitted concurrent transaction. The second transaction that tries to update a given row waits for the other transaction to commit or roll back and release its lock. If that other transaction rolls back, the waiting transaction, regardless of its isolation mode, can proceed to change the previously locked row as if the other transaction had not existed.
    However, if the other blocking transaction commits and releases its locks, a read committed transaction proceeds with its intended update. A serializable transaction, however, fails with the error "Cannot serialize access", because the other transaction has committed a change that was made since the serializable transaction began.
    Read following for clearing your concepts on transaction isolation levels and locking mechanisms
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96524/c21cnsis.htm#2414
    Chandar

  • Find Merchandise category from hierarchy level

    Hi Gurus,
    In IS-Retail suppose we have two hierarchy levels 1 and 2 belonging to Merchandise category N.
    Article N1 belongs to level 1 and article N2 belongs to level 2.
    So is there any way of finding out the hierarchy level given the article N1 (for eg.) ?

    Hi,
    see the link below:
    http://help.sap.com/saphelp_45b/helpdata/en/12/084a85470311d1894a0000e8323352/frameset.htm.
    it may help.
    Thanks,
    Rahul

  • How to total sales per merchandise category wise

    Dear all,
    We are into Retail sector, and using SAP IS-Retail for our business process, we want to see sales reports based Merchandise Category level.
    is there any standard report which shows list of sales order per merchandise category wise.
    if not can we develop a Zreport using Query or ALV report.
    then which Tables need to be used.
    Please help me to solve this issue, Your help will be highly appreciated.
    Thank you,
    Raghu ram.

    Hi,
    if you want more flexible, you could try this modified Istvan's query:
    SELECT top 10 T1.ItemCode, T2.ItemName, T3.ItmsGrpNam,   SUM(T1.Quantity) as "Total Qty Sold",
      SUM(T1.TotalSumSy) as "Total Amount" ,
      (select sum (r.Quantity) from ODLN h
         inner join DLN1 r on h.DocEntry=r.DocEntry  
         where h.DocDate>='[%4]' and h.DocDate<='[%5]'
             and r.ItemCode=T1.ItemCode) '2007 Sold',
      (select sum (r.TotalSumSy) from ODLN h
         inner join DLN1 r on h.DocEntry=r.DocEntry  
         where h.DocDate>='[%6]' and h.DocDate<='[%7]'
             and r.ItemCode=T1.ItemCode) '2007 Amount'
    FROM ODLN T0 INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
    WHERE T0.DocDate >='[%0]' AND T0.DocDate <='[%1]' AND T3.ItmsGrpNam between '[%2]'  and '[%3]'
    GROUP BY T1.ItemCode, T2.ItemName, T3.ItmsGrpNam
    ORDER by SUM(T1.Quantity) DESC
    Rgds,

  • Table entry for assignment of merchandise category to characater profile

    Hi MM expert,
    could anyone tell me in which table , assignment of merchandise category to character profile is saved.
    Regards,
    Santosh
    Edited by: santosh jaiswal on Sep 29, 2009 10:48 AM

    Hi Santosh,
    We create charateristic profile in CLWE and we assign to MC by WG22. t.code Wg22 reads following tables.
    FIELD  T023D-MATKL 
    FIELD  WWGD-CLASS1 
    FIELD  WWGD-CLASS2
    Note : WWGD is a structure.
    Regard
    AM

  • To get Merchandise Category(MATKL) Based on Country.

    Hi,
    I want to get Merchandise Category(MATKL) Based on Country.
    I am fetching WERKS
                         LAND1from t001w into IT_001w.
    Getting Distinct MATNR from MARC for all entries in IT_T001w.
    Now Getting MATNR
                        MATKL from MARA for all entries in IT_MARC.
    Now looping and getting MATKL and LAND1 in one internal table.
    But I have lot of WERKS in One Country so program is taking too much time.
    How to Improve my programPerformance  ?
    Is there any other logic ?
    Thanks
    Kumar

    Hi Anil..
    Please find below code and suggest me ...
    ***Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
    SELECT-OPTIONS : s_land1 FOR t005-land1 NO-EXTENSION NO INTERVALS    OBLIGATORY. "Added
    *PARAMETER chk AS CHECKBOX DEFAULT 'X'.
    PARAMETER p_file LIKE rlgrap-filename NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK b1.
    ****START-OF-SELECTION.
    START-OF-SELECTION.
      SELECT land1 FROM t005 INTO TABLE it_log_country WHERE land1 IN s_land1.
      SELECT land1
             filepath FROM zcountry_file INTO TABLE it_file WHERE land1 IN s_land1.
    ***Get Data from T001w
      IF it_file[] IS NOT INITIAL.
        SELECT werks
               land1 FROM t001w INTO TABLE it_t001w WHERE land1 IN s_land1.
      ENDIF.
      IF it_t001w[] IS NOT INITIAL.
        SORT it_t001w[] BY werks.
    ***Get Data from MARC
        SELECT DISTINCT matnr FROM marc INTO TABLE it_marc
                              FOR ALL ENTRIES IN it_t001w WHERE
                              werks = it_t001w-werks.
        IF it_marc[] IS NOT INITIAL.
          SORT it_marc[] BY matnr.
    ***Get Data from MARA
          SELECT matnr
                 matkl FROM mara INTO TABLE it_mara FOR ALL ENTRIES IN it_marc
                                    WHERE matnr = it_marc-matnr.
        ENDIF.
      ENDIF.
      IF it_mara[] IS NOT INITIAL.
        SORT it_mara[] BY matnr.
    ***Get Data from T023T
        SELECT matkl
               wgbez FROM t023t INTO TABLE it_t023t FOR ALL ENTRIES IN it_mara
                     WHERE matkl = it_mara-matkl AND spras = sy-langu.
        SORT it_t023t[] BY matkl.
    ***Fill Table IT_ITAB based on Country Wise
        LOOP AT it_mara INTO wa_mara WHERE matkl <> space.
          READ TABLE it_t023t INTO wa_t023t WITH KEY matkl = wa_mara-matkl BINARY SEARCH.
          IF sy-subrc = 0.
            READ TABLE it_marc INTO wa_marc WITH KEY matnr = wa_mara-matnr BINARY SEARCH..
            IF sy-subrc = 0.
             READ TABLE it_t001w INTO wa_t001w WITH KEY werks = wa_marc-werks BINARY SEARCH..
             IF sy-subrc = 0.
              wa_itab-matkl = wa_t023t-matkl.
              wa_itab-land1 = s_land1-low. "wa_t001w-land1.
              APPEND wa_itab TO it_itab.
             ENDIF.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
      IF it_itab[] IS NOT INITIAL.
        SORT it_itab[] BY land1 matkl.
    ***Delete Duplicate Entries
        DELETE ADJACENT DUPLICATES FROM it_itab[] COMPARING land1 matkl.
        itab[] = it_itab[].
        SORT itab[] BY land1.
    ***Get MC Hierarchy Levels Based on MATKL
        LOOP AT itab.
          REFRESH it_wgh.
    ***Read MC Description
          READ TABLE it_t023t INTO wa_t023t WITH KEY matkl = itab-matkl BINARY SEARCH.
          IF sy-subrc = 0.
            itab-wgbez = wa_t023t-wgbez.
          ENDIF.
    ***FM to Get MC Hierarchy Levels based on MC
          CALL FUNCTION 'MERCHANDISE_GROUP_HIER_ART_SEL'
            EXPORTING
              matkl       = itab-matkl
              spras       = sy-langu
            TABLES
              o_wgh01     = it_wgh
            EXCEPTIONS
              no_basis_mg = 1
              no_mg_hier  = 2
              OTHERS      = 3.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    **Read MC Hierarchy Levels
          DESCRIBE TABLE it_wgh LINES v_lines.
          IF v_lines <> 0.
            READ TABLE it_wgh INDEX v_lines.
            itab-mch1 = it_wgh-wwgha.
            itab-mchdes1 = it_wgh-wwghb.
            v_lines = v_lines - 1.
            IF v_lines <> 0.
              READ TABLE it_wgh INDEX v_lines.
              itab-mch2 = it_wgh-wwgha.
              itab-mchdes2 = it_wgh-wwghb.
              v_lines = v_lines - 1.
              IF v_lines <> 0.
                READ TABLE it_wgh INDEX v_lines.
                itab-mch3 = it_wgh-wwgha.
                itab-mchdes3 = it_wgh-wwghb.
                v_lines = v_lines - 1.
                IF v_lines <> 0.
                  READ TABLE it_wgh INDEX v_lines.
                  itab-mch4 = it_wgh-wwgha.
                  itab-mchdes4 = it_wgh-wwghb.
                  v_lines = v_lines - 1.
                  IF v_lines <> 0.
                    READ TABLE it_wgh INDEX v_lines.
                    itab-mch5 = it_wgh-wwgha.
                    itab-mchdes5 = it_wgh-wwghb.
                    v_lines = v_lines - 1.
                    IF v_lines <> 0.
                      READ TABLE it_wgh INDEX v_lines.
                      itab-mch6 = it_wgh-wwgha.
                      itab-mchdes6 = it_wgh-wwghb.
                      v_lines = v_lines - 1.
                      IF v_lines <> 0.
                        READ TABLE it_wgh INDEX v_lines.
                        itab-mch7 = it_wgh-wwgha.
                        itab-mchdes7 = it_wgh-wwghb.
                        v_lines = v_lines - 1.
                        IF v_lines <> 0.
                          READ TABLE it_wgh INDEX v_lines.
                          itab-mch8 = it_wgh-wwgha.
                          itab-mchdes8 = it_wgh-wwghb.
                          v_lines = v_lines - 1.
                        ENDIF.
                      ENDIF.
                    ENDIF.
                  ENDIF.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
          MODIFY itab.
          CLEAR : v_lines,wa_t023t.
          CLEAR itab.
        ENDLOOP.
      ENDIF.
    Open Application Server & Generate CSV File
      IF itab[] IS NOT INITIAL.
        SORT itab[] BY land1.
        LOOP AT itab .
          IF itab1[] IS INITIAL.
            CONCATENATE
           'MCCODE'
           'ARTICLE_TYPE'
           'DEPARTMENT'
           'DEPARTMENT_DESCRIPTION'
           'CLASS'
           'CLASS_DESCRIPTION'
           'SUBCLASS_1'
           'SUBCLASS1_DESCRIPTION'
           'SUBCLASS_2'
           'SUBCLASS2_DESCRIPTION'
           'SUBCLASS_3'
           'SUBCLASS3_DESCRIPTION'
           'SUBCLASS_4'
           'SUBCLASS4_DESCRIPTION'
           'SUBCLASS_5'
           'SUBCLASS5_DESCRIPTION'
           'SUBCLASS_6'
           'SUBCLASS6_DESCRIPTION'
           'MC_DESCRIPTION'
           'DIMENSION_TYPE'
           'DIM1'
           'DIM2'
           'USER_DEFINE_CODE'
           'Duration_Type'
           'Start_Duration'
           'End_Duration'
           'Start_Year'
           'End_Year'
           'MC_Status'
           'MC_Type'
           'Ref MC'
           INTO header SEPARATED BY ','.
            MOVE header TO itab1-str.
            APPEND itab1.
            CLEAR itab1.
          ENDIF.
          CONCATENATE '"' itab-matkl '"' INTO matkl.
          CONCATENATE '"' itab-arttyp '"' INTO arttyp.
          CONCATENATE '"' itab-mch1 '"' INTO mch1.
          CONCATENATE '"' itab-mchdes1 '"' INTO mchdes1.
          CONCATENATE '"' itab-mch2 '"' INTO mch2.
          CONCATENATE '"' itab-mchdes2 '"' INTO mchdes2.
          CONCATENATE '"' itab-mch3 '"' INTO mch3.
          CONCATENATE '"' itab-mchdes3 '"' INTO mchdes3.
          CONCATENATE '"' itab-mch4 '"' INTO mch4.
          CONCATENATE '"' itab-mchdes4 '"' INTO mchdes4.
          CONCATENATE '"' itab-mch5 '"' INTO mch5.
          CONCATENATE '"' itab-mchdes5 '"' INTO mchdes5.
          CONCATENATE '"' itab-mch6 '"' INTO mch6.
          CONCATENATE '"' itab-mchdes6 '"' INTO mchdes6.
          CONCATENATE '"' itab-mch7 '"' INTO mch7.
          CONCATENATE '"' itab-mchdes7 '"' INTO mchdes7.
          CONCATENATE '"' itab-mch8 '"' INTO mch8.
          CONCATENATE '"' itab-mchdes8 '"' INTO mchdes8.
          CONCATENATE '"' itab-wgbez '"' INTO wgbez.
          CONCATENATE '"' itab-dimtyp '"' INTO dimtyp.
          CONCATENATE '"' itab-dim1 '"' INTO dim1.
          CONCATENATE '"' itab-dim2 '"' INTO dim2.
          CONCATENATE '"' itab-usrdc '"' INTO usrdc.
          CONCATENATE '"' itab-durtyp '"' INTO durtyp.
          CONCATENATE '"' itab-sdur '"' INTO sdur.
          CONCATENATE '"' itab-edur '"' INTO edur.
          CONCATENATE '"' itab-syr '"' INTO syr.
          CONCATENATE '"' itab-eyr '"' INTO eyr.
          CONCATENATE '"' itab-mcstatus '"' INTO mcstatus.
          CONCATENATE '"' itab-mctyp '"' INTO mctyp.
          CONCATENATE '"' itab-wwgda '"' INTO wwgda.
          CONCATENATE
          matkl
          arttyp
          mch1
          mchdes1
          mch2
          mchdes2
          mch3
          mchdes3
          mch4
          mchdes4
          mch5
          mchdes5
          mch6
          mchdes6
          mch7
          mchdes7
          mch8
          mchdes8
          wgbez
          dimtyp
          dim1
          dim2
          usrdc
          durtyp
          sdur
          edur
          syr
          eyr
          mcstatus
          mctyp
          wwgda
          INTO itab1-str SEPARATED BY ','.
          APPEND itab1.
          CLEAR : matkl,arttyp, mch1, mchdes1,mch2,mchdes2,mch3,mchdes3,mch4,mchdes4,mch5,
                  mchdes5,mch6,mchdes6,mch7,mchdes7,mch8,mchdes8,wgbez,dimtyp,dim1,dim2,
                  usrdc,durtyp,sdur,edur,syr,eyr,mcstatus,mctyp,wwgda,itab1.
          AT END OF land1.
            CLEAR : wa_file,p_file,efile,v_file.
            READ TABLE it_file INTO wa_file WITH KEY land1 = itab-land1.
            efile = wa_file-filepath.
            CONDENSE efile.
            CONCATENATE efile 'Merchandise_Category'
            sy-datum2(2) sy-datum4(2) sy-datum+6(2)
            sy-uzeit(2) sy-uzeit+2(2) '_' itab-land1 '.txt' INTO p_file.
            CONCATENATE 'Merchandise_Category'
            sy-datum2(2) sy-datum4(2) sy-datum+6(2)
            sy-uzeit(2) sy-uzeit+2(2) '_' itab-land1 '.txt' INTO v_file.
            IF wa_file-filepath IS INITIAL.
              CLEAR p_file.
            ENDIF.
            OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
            IF sy-subrc EQ '0'.
              LOOP AT itab1.
                IF sy-subrc = 0.
                  TRANSFER itab1-str TO p_file.
                ENDIF.
              ENDLOOP.
              CLOSE DATASET p_file.
    Message 'File has been Created at defined Path' type 'I'.
              MESSAGE 'File has been Created' TYPE 'S'.
              wa_log-land1 = itab-land1.
              wa_log-filepath = wa_file-filepath.
              wa_log-filename = v_file.
              wa_log-flag =  'X'.
              APPEND wa_log TO it_log.
              CLEAR wa_log.
            ELSEIF sy-subrc EQ '8'.
              wa_log-land1 = itab-land1.
              wa_log-filepath = wa_file-filepath.
             wa_log-filename = v_file.
              wa_log-flag =  'Y'.
              APPEND wa_log TO it_log.
              CLEAR wa_log.
            ENDIF.
            REFRESH itab1.
            CLEAR itab1.
          ENDAT.
        ENDLOOP.
      ENDIF.
      IF it_log[] IS NOT INITIAL.
        WRITE :/5 'Country', 15 'Folder Name', 40 'File Name', 90 'Status'.
        LOOP AT it_log INTO wa_log WHERE flag = 'X'.
          WRITE :/5 wa_log-land1, 15 wa_log-filepath, 40 wa_log-filename, 90 'Created Successfully'.
        ENDLOOP.
        SKIP 2.
        LOOP AT it_log INTO wa_log WHERE flag = 'Y'.
          WRITE :/5 wa_log-land1, 15 wa_log-filepath, 40 wa_log-filename, 90 'NOT Created'.
        ENDLOOP.
      ENDIF.
      SKIP 2.
      IF it_log_country[] IS NOT INITIAL.
        LOOP AT it_log_country INTO wa_log_country.
          READ TABLE itab WITH KEY land1 = wa_log_country-land1.
          IF sy-subrc <> 0.
            WRITE :/5 'No Data Exists For Country', 35 wa_log_country-land1.
          ENDIF.
        ENDLOOP.
      ENDIF.

Maybe you are looking for

  • Can't delete grayed-out DNS server addresses

    I want to replace two grayed-out DNS server addresses from the Network panel (under the DNS tab in "Advanced-"), to replace them with OpenDNS settings. But they can't be selected/deleted. How do I get around this problem?

  • How to recover deleted account

    Please some one help me.. Yesterday, I was 'deleted' my account by accident. now all my inbox and other mail boxes are empty.. :(( . these my email since last year and I have no backup. My Question is: how I can restore all my inbox? because in my ol

  • Thread's run() doesn't get called ?

    Hi, I have a subclass of Thread and I create its instance and call its start() method. Documenttion on Sun's site says that start tells JVM to call run() method....BUT the problem is the run() method is not called as soon as I call start() Why ? For

  • How to fix error report "M2000Twn.dll is missing from your computer ?

    I have upgraded fron XP to Windows 7 & encounted this error report while installing Photoshop Elements 7 & have twice removed & reinstalled the program including down loading the available patches. Can anybody help with this one?

  • How do we decide the number of data base servers and application servers ?

    Dear Gurus, How do we decide the number of data base servers and application servers in BW ? How does this number help in data load balance and reporting needs ? Any hard n fast rule in the number of servers ? Regards Mohan