Want to Schedule Parametric BO Report based on Country

Hi,
I Want to Schedule Parametric BO Report based on Country promt which we need to passs dyanamically.
Pls let me know if any possible option is avilable through BO XI R2?
Thanks in advance.
Prabhat
Edited by: prabhat2009 on May 21, 2009 6:20 AM

Hi Prabhat,
Yes we can passing parameter dynamically to reports and schedule.
if you are using Crystal Reports then go to
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
BusinessObjects Enterprise SDK
     Java developer guide
         Tutorials    
            Client and Admin Desktop Tutorials
                How to schedule a report containing specific parameter values.
For Webi and Desktop intelligence
Report Engine SDK  which is used to set the prompt values and BusinessObjects Enterprise SDK for scheduling
Thanks,
Praveen.

Similar Messages

  • How to schedule the webi report based on data changes in the report data

    Hello,
    I want  to schedule a webi report based on data change in a column in the report.
    The scenario is something like below:
    1. If a data of a particular column changes from 2 to 3 than I would like to schedule this report and sent it to users mail box.
    I know how to apply alerts or schedule a report or data tracking for capturing changes in the report but I dont know how to schedule the report only for data changes.
    Anybody done this before.
    Thanks
    Gaurav

    Hi,
    May be these links can help you:
    http://devnet.magicsoftware.com/en/library?book=en/iBOLT/&page=SAP_R_3_Master_Data_Distribution_Defining_Change_Pointers.htm
    SEM-BCS: Load from data stream schedule
    Attribute Change Run

  • Is it possible to schedule a Webi report based on another input, i.e. expose a time in which a process was finished.

    These are Webi, user created reports.
    Is it possible to schedule a Webi report based on another input, i.e. expose a time in which a process was finished (this can be obtained via a SQL call, service call, etc).
    The issue is that if a user schedules a report for 9PM but a process to move data, etc has not completed then that forces the user to keep re-freshing the report hoping that the process has been complete.
    Ideally, in the selection UI add to the dropdown for 'when' the option 'Use Process X completion Time' (since it is a daily report).
    Then starting around 9PM check to see if that 'time" value is populated then refresh (run) the report. Or it could just be a flag that the process has finished.
    User's in the webi environment are asking for this, and moving their reprots to BO is not an option. That's why they have the custom webi enviroment.
    Thank you.

    There is no very good way to create a working event based on a file as the file will need to be deleted as soon as the event is triggered. However there are work around which can be done for this. Here is a link which is discussing about the process.. http://scn.sap.com/thread/1677109
    Once you have created a file based even in CMC > Events> System Events and made a work around program to delete the file once the event is trigged all you would need to do in webi is in launchpad just schedule > Events > select the file based event from all available system events. Here is a screenshot how to make a report run based on a event..

  • Scheduling the Webi report based on the current date

    Hi ,
    Can I schedule the report to give the results of the previous day (report Daily) and other one to give the results of the previous month (report Monthly)? How can I do it?
    Thanks in advance.

    Hi Peter,
    Well for yesterday, you can use something like:
    CAST(CONVERT(VARCHAR, T_GVQSTATCG1_HOUR.DATE_YYYYMMDD, 110) AS DATETIME) = DATEADD(dd,-1,(select T_GVQSTATCG1_HOUR.DATE_YYYYMMDD from YourTable where Current_Day_Ind = 'Y'))
    We have a date table in our data warehouse with a Current Day Indicator field. If you don't have something like that, then you should be able to just use:
    CAST(CONVERT(VARCHAR, DateAdd(dd,-1, GetDate()), 110) AS DATETIME)
    You would use something similar for previous month, parsing out the month number from the date, and then subtracting 1, except of course for January, where you could just plug in a case statement to handle that.
    This is assuming you are on SQL Server. Syntax may be different in Universe for Oracle or other.
    Does that make sense?
    Thanks

  • Creating report based on master data

    Hi Guys,
    I want to create a specific report based on master data in BI cube. for example... a report which takes cost center and period as variable and display expenses for that period and cost center. This report I want to create for all cost center in BI database separately. any idea how can we do this?
    There are 2000 cost centers and I need to print/send 2000 reports one for every cost center.
    If I store all cost center in excel file, can it be easier?
    broadcasting and creating 2000 schedule - not option.
    Thanks..SM

    Hi  stuti misra,
    Create ONE Query with selection Cost Center and Period are inputs.
    Create text variables for Cost Center and Period and add in Query Description.
    After query execution you can see description based on selection in workbook or webtemplate.
    Hope it Helps
    Srini
    [Dont forget to close the call by assigning poings.... - Food for Points: Make a Difference through Community Contribution!|https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/007928c5-c4ef-2a10-d9a3-8109ae621a82]

  • Dynamic schedulling of WEBI report

    Hi,
    I have created a WEBI report based on BICS connection.
    Report has a date parameter and when scheduling the report in BI 4.0 Server based on daily, monthly and weekly I want to change the value of parameters dynamically.
    How top acheive this?
    Environment details:
    BI 4.0 Support Pack 8 patch 4
    SAP GUI 7.3
    Thanks!
    Nrupal

    From where do you want to pass a value dynamically?  
    Dynamically doesn't mean random right? I should hold some logic receive from..
    What I can think of is :
    Pass a prompt value from another Webi report  and schedule your original report based on event after executing your webi report which is passing the value.

  • Error when try to schedule a Webi Report

    Good day every one:
    Can anyone please help me to solve this problem??? the issue is this, I want to schedule a Webi report but when i clic on Schedule and go to Format and Destinations tab, i got this message:
    displayErrorMessage="VIEWER:VIEWER_ERR_DEFAULT (Error: INF )"; traceErrorMessage="\u003Cinput type="hidden" name="BENCHERROR" value="Error Number :  - Error Description : VIEWER:_VIEWER_ERR_DEFAULT"\u003E";
    And i can not see the formats availables to schedule the report and of course i can not see the configuration and destinations options.
    Looking for an answer i found this:
    http://forums.sdn.sap.com/thread.jspa?threadID=1537527
    but that is an old post and i can not find the file mentioned there, can somebody please help me to fix this???
    We are using:
    BOBJ 3.1 SP3
    Windows Server 2003
    32 bits
    Regards

    I just found this
    I was able to fix the issue by replacing the webiviewer.properties file with the file from the WARFILES\WEBAPPS directory. The webiviewer.properties file looks like it was corrupt as there was only 1 line in the file. After replacing and restarting the servers there's no longer an error when selecting Formats & Destinations.
    I checked those webiviewer.properties and like you , one of them had only 1 line, about the language.
    So I replace the one from Tomcat55\webapps\AnalyticalReporting\WEB-INF\classes with the one in the folder Tomcat55\webapps\AnalyticalReporting\classes
    My guess is that this properties is corrupted because of the installation of other language. What should be done is updating the file with the new language parameters but what is done is a replace of the file.
    I foun that in this link
    http://www.forumtopics.com/busobj/viewtopic.php?t=150796&sid=bad10669f42c6de2b77e37b03122334d
    I will apply this and if im success i let you know
    Regards
    Edited by: Elio Javier Guzman Hernandez on Oct 21, 2011 6:25 PM
    Well the solution that i gave you works fine.
    Regardas
    Edited by: Elio Javier Guzman Hernandez on Oct 21, 2011 10:42 PM

  • Re: Schedule a WEBI report once the BW process chain loading is completed

    Hello Guys,
    I want to schedule a webi report once the process chain in bw is sucessfully completed .Did any one face this situation before ?
    is it possible to trigger a event from bw to webi and schedule a webi report to end users once the process chain loads the data into cube sucessfully
    i searched sdn but didnt find any help related to this topic
    can any one help me with the above issue asap
    step 1 : Trigger the process chain load the data till cube
    step 2 : add a process type whcih has program - at the end of the process chain
    step 3 : trigger a event in BO inorder to schedule a webi report to end users from this program ? how to do it
    i want to know how to trigger a event in bo from bw using r/3 program inorder to schedule a WEBI report
    any help on this topic is highly appreciated

    Hi Venkat,
    At present, there is no standard functionality available in SAP NetWeaver 2004s BW/BOBJ that offers this integration and automation.But you can do it as given in following link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09033ab-4593-2e10-5fa0-b23bcfa1575a?QuickLink=index&overridelayout=true&51887500308956
    Regards,
    Pushkar Dhale

  • Report based on Output Type

    Dear Friends,
    If there is any functionality or Table from where i can get list of Invoices based on OUTPUT TYPE
    we have diff invoice types like sales invoice, service invoice, lease invoice and for all invoices there is dif output type is assigned. If i want to generate service invoices report based on output types assgined to it how we can do that?
    Regards
    Vishal

    hi
    Thanks Friend
    But again there is one problem when i am running this in Devlopment client its working fine but in other client not working n giving message No messages for initial processing exist
    what may be the problme?
    Regards
    Vishal

  • Generating an  html report based on table at sql 2005 db

    Hi
    I want to create an html report based on a table named inventory on sql server 2005 database.
    first code used to generate an output report
        try {
                // TODO add your handling code here:
                String s = "<html> <body> <table border=1><caption> Inventory Report </caption>";
                s += "<tr><td>Item_id<td>item_name<td>Existing quantity</td><tr><td>3<td>4<td> <td>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                    fs = new FileOutputStream("D:\\Report\\Report.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
    Second jdbc  code for connection and select all records in the table
    try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
         String s="";
    while(rset.next())
        s+=(rset.getString(1)+"\t\t"+rset.getString(2)+"\t"+rset.getString(3)+"\t"+rset.getString(4)+"\n");
          st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
            }                             I want someone helps me to merge two codes into one code to generate an output html report.
    thanks in advance

    This is my trial but not the desired result ,it's displayed the title and a line only
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
            // TODO add your handling code here:
                          String s = "<html> <body> <table border=1> <caption>Report title</caption>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
    while(rset.next())
                   s+=("<tr><td>"+rset.getString("Item_Code")+"</td><td>"+rset.getString("Item_Name")+"</td><td>"+rset.getString("item_cost")+"</td><td>"+rset.getString("item_quantity")+"</td></tr>");
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
         st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
        }

  • How to schedule an abap report program to run every day, weekend etc..

    Hi,
    I want to schedule an abap report program to run every day, week, fortnight or month and the output to be redirected to the printer. How to achieve this ?
    thanks

    Hi,
    go to t.code sm36 there give the name of the program which u want to eecute in background if u want u can give periodic that depends upon ur requirement from there in sm37 u can check the stauts and directly print from there
    hope i am clear to u
    plzz reward if it is useful...

  • Report based on plsql table type

    Is it possible crete a report (updatable) based on plsql table type?
    thank in advance
    Franco Galante

    Sorry for my cryptic question, i wanted to mean create a report based on a stored procedure
    function which return a plsql table type variable.
    This idea could give me the chance to work with variable (plsql table) instead of db table.
    hope i'm enough clear
    thank you again
    Franco Galante

  • Scheduling the crystal Reports

    Hi all,
    What is the use of Scheduling the Crystal Report?
    In the document I saw the use of scheduling is to run the object automatically at specified times.
    I want to Schedule that Crystal Report. For that I followed the following Steps.
    Login into CMCApp.
    Select the required rpt file. and clicked the Schedule.
    It opens the Schedule Screen.
    In that I have specified the Recurrence Parameter and Scheduled For.
    It refreshes the data,only if I press the Refresh button manually. Otherwise data is not refreshed.
    The status of corresponding object is Success, while seeing the History of the Object.If I click the View Latest Instance in CMCApp, It shows the updated data(Refreshed Data).
    Whether I am following the Correct Steps? Other than this What I have to do for scheduling?
    How can i retrieve the data from View Latest Instance?
    Thanks & regards,
    Hemalatha J

    Hello Hemalatha,
    You can schedule Crystal Reports only in an BO Enterprise environment (BOE).
    Documentation on how to schedule documents you can find in the BusinessObjects Enterprise Administrator's Guide [here|http://help.sap.com/businessobject/product_guides/].
    I also recommend to post this query to the [BusinessObjects Enterprise Administration|BI Platform; forum.
    This forum is dedicated to topics related to administration and configuration of BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Scheduling in Webi Reports with Changing Prompts.

    Hi Experts,
    I have a Webi report which is on top of 2 BEx queries connected through BICS. The Webi report has more than 4 crore records which makes it difficult to load each time when I refresh. I need to schedule this report so that the user can view the report based on the last instance.
    The report has 3 prompts namely Plant, Material and As of Date.
    The user uses only Plant and As Of Date. There are only two plants for example A and B. The user needs to run the report for each plant separately for all the days.
    Suppose today is 03/07/2013.
    The user will run the report with Plant A and As of Date: 03/07/2013 and second time with Plant B and As of Date: 03/07/2013.
    Next today is 04/07/2013.
    The user will run the report with Plant A and As of Date: 4/07/2013 and second time with Plant B and As of Date: 4/07/2013.
    I need your expert opinion in achieving this while scheduling. Hope you understood the scenario and will be helping me out in this.
    Thanks in Advance,
    Abdul

    Hello experts,
    I am very interested in this topic, as I have the exact same requirement as Abdul:
    Daily scheduling of Webi reports, based on BEx queries and connected through BICS. Done on BO4.
    I followed Aashutosh's link above, and i read something very interesting on page 3:
    Current Options Using Standard Functionality
    Until BusinessObjects 4.0 is released, it is not possible to use BEx variables (which will be made available by
    the BICS connector) or the last load date variable. This makes it impossible to automate the scheduling of
    Web Intelligence queries filtered by dynamic dates or time-slices (for example, yesterday, last week) using
    standard functionality. "
    Is this already functioning on BO4/Bex? Do you have an idea of how to implement it?
    Thank you!
    Best regards,
    Francisco

  • 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

  • I had to start a new account and I don't know why? Do you mr/ms Moderator?

    I have had an account here for a good while. I have had the username "JackdaShack" and a number of moderators have helped me in the past.  For some reason this time loggin in it would not accept my username and passoword. I finally had to start a new

  • How do I get a password into my keychain?

    During a previous log-in to a website, I chose the option to not remember the password.  How do I now change it so the password is remembered?

  • SQL Developer version 1.0.0.15.57 Debugger problem

    I use SQL Developer create a package and debug the pl/sql code. I try to use SUBSTR function as below: temp VARCHAR2(32000); temp:= p_string; --parameter input temp := SUBSTR(temp, 2, LENGTH(temp)); In debugger Watches panel LENGTH(temp) Value displa

  • Footer for Adobe/PDF Form

    Hi, I have a requirement of designing a print PDF form which has two footers say Foot1 and Foot2. If data flows to subsequent pages than last page should display Foot2 and all other pages should display Foot1. If data doesn't flow then the only page

  • How to modify default value of Login Shell attribute via script

    Hi all, I'm configuring the "UNIX Attributes" tab here in Active Directory Users and Computers. I've noticed that on the Login Shell option it has a default value: /bin/sh. So I had manually changed it to: /bin/bash.  I just change this value one bu