GDS with an ABAP program

Hi All,
I have a GDS which is created using table and data (daily delta)  in table is coming through an abap program.
But I am not getting how this program will execute automatically until and unless we dont execute it.
Is there any procedure to call the abap program to fill data in GDS ???
Regards
Shweta

Hi,
One Program is running and filling Table and then you are taking data from that table using GDS. So you ask ABAPer who written that program?. and daily at what time it will execute in ECC and what time the job will completes, then after that you run your daily extraction, then you will get Deltas or Full loads based on Date.
Thanks
Reddy

Similar Messages

  • KM ABAP : How to publish document in ECC 6.0 with an abap program

    Hello,
    There is something (MF, Class) to publish a document in KM with an abap program in ECC 6.0 ?
    Regards,
    Aurélien

    The balances in both tables should be the same, right?  It is just that in FAGLFLEXA you may have some extra line items due to document splitting.

  • How to read an IDoc with an ABAP program?

    Hi experts!
    I am new to SAP and I need to read an IDoc with an ABAP program... how to do it?
    Maybe it is possible to read an IDoc into inner table...?
    Hellpful answers and advices will be rawarded.
    Regards,
    Mindaugas.

    hi
    I understand your issue, to pickup an IDOC flat file & post it to R/3 (with or without mapping).
    There is no straight forward solution but there are some ways (Normal way of Working as of now ?!!!) provided in the "How to"
    check this link
    https://websmp101.sap-ag.de/nw-howtoguides
    and look for this guide
    How To Convert Between IDoc XML and Flat Files in XI.30
    Probably you need to automate this using some programs,
    - Create an ALE port of type File
    using transaction WE21 on your
    Integration Engine.
    - Run report RSEINB00 on your
    Integration Engine. The report will
    upload the file, filter the IDoc header
    data, perform the conversion to IDoc
    XML and put the data into the
    pipeline of the Integration Server.
    Therefore it is crucial, that the IDoc
    control record data is populated
    correctly and corresponds to the
    adapter-specific identifiers of your
    sender service. Once the message
    is put successfully into the pipeline
    of the Integration Server, the file is
    deleted.
    Hope this fixes your issue
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Issue with the ABAP program to find BI lookups and code Patterns

    Hello dears,
    I'm trying to use the ABAP program LOOKUP_FINDER:
    http://wiki.sdn.sap.com/wiki/display/BI/ABAPprogramtofindBIlookupsandcodePatterns
    But I have the following issue:
    Runtime Errors        
    RAISE_EXCEPTION
    Short text
        Exception condition "NO_FIELDCATALOG_AVAILABLE" raised.
    Error analysis
        A RAISE statement in the program "CL_GUI_ALV_GRID===============CP" raised the
         exception
        condition "NO_FIELDCATALOG_AVAILABLE".
        Since the exception was not intercepted by a superior
        program, processing was terminated.
    Source Code Extract
    Line  SourceCde
        1 method set_sort_criteria.
        2
        3 *... (1) Trace?
        4   if not mr_trace is initial.
        5     call method mr_trace->add_trace_item
        6       exporting
        7         i_trace_item = 'SET_SORT_CRITERIA'
        8         ir_variant   = m_cl_variant
        9         it_data      = mt_data
       10         it_info      = mt_info.
       11   endif.
       12
       13   if m_cl_variant->mt_fieldcatalog is initial.
    >>>>>     raise no_fieldcatalog_available.
       15   endif.
       16
       17   m_cl_variant->mt_sort = it_sort.
       18
       19   call function 'LVC_SORT_COMPLETE'
       20        exporting
       21             it_fieldcat = m_cl_variant->mt_fieldcatalog
       22        changing
       23             ct_sort     = m_cl_variant->mt_sort.
       24
       25 endmethod.
    This issue is located in the FM 'REUSE_ALV_GRID_DISPLAY' called at the end of the program.... maybe because the catalog is empty?
    For your information, I  called the program 'ZLOOKUP_FINDER'.
    Can you help me to fix this issue?
    Regards,
    Vince.

    Hi Vince,
    If a table is empty field catalog usually return no error it just display your field catalog with headers .
    I think the issue is with building of field catalog .
    May be some settings are missing there .
    Please check FM REUSE_ALV_FIELDCATALOG_MERGE where field catalog is getting generated.
    Regards,
    Jaya Tiwari

  • How to execute Infopackage with an ABAP program

    Dear All,
    I would like to execute an infopackage every 6th day of the month.
    Therefore I would like to integrate a program in a process chain executed on a daily basis, and call with this program the execution of the infopackage if day = 6.
    Do you know how to execute an infopackage inside an ABAP program ? Which function module use ?
    Thanks,
    Greg

    Hello luminy13,
    Just to answer your question on how to start an InfoPackage inside an ABAP program: you can use function module BAPI_IPAK_START. You might also need to use FM BAPI_IPAK_CHANGE to change the scheduling.
    However, if the only reason you are creating the ABAP program is to run the InfoPackage at the 6th day of the month, then I don't recommend that you create the ABAP program at all. You can simply schedule the InfoPackage (or the process chain that contains it) on the 6th day of the month. Here's how to do it:
    In the scheduling dialog, click the ">>" button. Enter the factory calendar, put 6 is in the workday and then choose "beginning of the month".
    Hope this helps.

  • Is a save step neccessary in a Process Chain when loading hierarchies with an ABAP program?

    We are loading hierarchies using the ABAP routine found here in the SDN. 
    We have come accross the issue where the process chain loads successfully, but does not update the hierarchy (this problem is documented in the SDN).  It is not a consistent issue, but it causes problems when it does occur.
    OSS note 652856 points out that a SAVE HIERARCHY step is needed after the load and before the Change Attribute run.
    We have added the step to the process chain, which leads me to the question.
         In using the ABAP program to load hierarchies is the addition of the Save Hierarchy step necessary?
         Will that resolve the issue with hierarchies not updating?

    Hi Bill,
    Yes, SAVE HIERARCHY step is required when hierarchies are loaded as part of process chain. This step ensures that the hierarchy data loaded to BW has been saved. Then we have to run ACR so that these hierarchies will be activated and adjusted.
    This is the reason why even the hierarchy data loaded using infopackage needs this step. This step is not required if the Infopackage is triggered manually.
    This link will help you in better understanding
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/320e3d89195c59e10000000a114084/content.htm
    Regards
    Chandu

  • Maintenance View issues with an ABAP program

    Hi,
    I need to update a Maintenance view(V_JURIC) from a txt file. I created an ABAP module to do this and when I update the tables that compose the view(TABLE_A and TABLE_B), the view is not completely getting updated in the last field. Any suggestions? Here is  sample of the code:
    REPORT zbr_loc_mast_data_1 MESSAGE-ID fb.
    TABLES: j_1btxjurt,
            j_1btxjur.
    DATA wa_j_1btxjurv TYPE j_1btxjurv.
    DATA wa_j_1btxjurt TYPE j_1btxjurt.
    DATA wa_j_1btxjur TYPE j_1btxjur.
    DATA: BEGIN OF i_j_1btxjurt OCCURS 2000.
            INCLUDE STRUCTURE j_1btxjurt.
    DATA: END OF i_j_1btxjurt.
    DATA: i_j_1btxjurv LIKE j_1btxjurv OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF rec OCCURS 0,
          tbl_name(10)     TYPE c,        " Table name(Constant 'J_1BTXJURV')
          field_2(1)       TYPE c,        " Constant "X"
          jur_code(10)     TYPE c,        " Jurisdiction code
          municip(60)      TYPE c,        " Municipality Name
    END OF rec.
    DATA: w_num_recs TYPE i.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
    PARAMETERS: in_file TYPE localfile OBLIGATORY
                DEFAULT 'C:\lista de municipios.txt'.
    SELECTION-SCREEN END OF BLOCK block1.
    START-OF-SELECTION.
      PERFORM read_file.
      IF sy-subrc = 0.
        PERFORM update_table.
      ENDIF.
    END-OF-SELECTION.
    *Summary
        WRITE: / 'Number of records read: ' COLOR COL_TOTAL INVERSE OFF INTENSIFIED ON,
             32 w_num_recs COLOR COL_POSITIVE INVERSE OFF
                INTENSIFIED ON.
    *       Form  read_file
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM read_file.
      DATA: l_filename TYPE string.
      MOVE in_file TO l_filename.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = l_filename
          filetype                = 'DAT'
    *      HAS_FIELD_SEPARATOR     = SPACE
    *      HEADER_LENGTH           = 0
    *      READ_BY_LINE            = 'X'
    *      DAT_MODE                = SPACE
    *      CODEPAGE                = SPACE
    *      IGNORE_CERR             = ABAP_TRUE
    *      REPLACEMENT             = '#'
    *      VIRUS_SCAN_PROFILE      =
    *    IMPORTING
    *      FILELENGTH              =
    *      HEADER                  =
        CHANGING
          data_tab                = rec[]
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
      IF sy-subrc <> 0.
        MESSAGE e039 WITH in_file.
      ENDIF.
    ENDFORM.                    " read_file
    *       Form  update_table
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM update_table.
      CLEAR: w_num_recs,
             w_num_recs_btable,
             w_num_recs_atable,
             w_num_recs_inserted.
        LOOP AT rec.
        w_num_recs = w_num_recs + 1.
        MOVE 'BR'          TO wa_j_1btxjur-country.
        MOVE rec-jur_code  TO wa_j_1btxjur-taxjurcode.
        MOVE 'PT'          TO wa_j_1btxjurt-spras.
        MOVE 'BR'          TO wa_j_1btxjurt-country.
        MOVE rec-jur_code  TO wa_j_1btxjurt-taxjurcode.
        MOVE rec-municip   TO wa_j_1btxjurt-text.
        INSERT into j_1btxjurt values wa_j_1btxjurt.
        IF sy-subrc = 0.
          COMMIT WORK.
        ENDIF.
        INSERT into j_1btxjur values wa_j_1btxjur.
        IF sy-subrc = 0.
          COMMIT WORK.
        ENDIF.
      ENDLOOP.
      ENDFORM.                    " update_table
    Edited by: Thomas Zloch on Nov 5, 2010 9:24 AM - please use code tags

    MOVE 'PT'          TO wa_j_1btxjurt-spras.
    maybe change that to:
    MOVE 'P'          TO wa_j_1btxjurt-spras.

  • ABAP Program and Execution Caching?

    Hi All
    We have a strange problem with custom ABAP program possibily caching a SQL statement. Here is the problem:
    Transaction: ZTRANS_C1
    This transaction is about 4 years old and we have noticed a problem with a SQL statement withing the program which is causing a timeout and shorts dumps (runs for 600ms). We managed to fix the statement and change the program but it is still taking 600ms and timing out.
    So we created a new transaction ZTRANS_C2 which is an exact copy of ZTRANS_C1 and ran it. This took only 65ms.
    So is there any way in SAP or SQL where we can stop it caching the statements or is this some other problem?
    Thanks
    Phil

    Hi Arnold,
    First you need a table type with a structure like follows:
    operation
    groupid
    context
    identifier
    agency
    scheme
    (corresponding to the Interface ValueMappingReplication)
    All used data elements should have type string or charXX
    for example: operation - char10, groupid - char32, rest - char120
    Next you create a function module with attribute 'remote-enabled module'.
    The import parameter is your new table structure.
    Next you create an ABAP program. Here an example:
    report z_value_mapping .
    tables mvke.
    data:
    p_value_mapping type zvalue_mapping,
    p_value_mapping_table type zvalue_mapping_table.
    p_value_mapping-operation = 'Insert'.
    p_value_mapping-context = 'http://xi.com/Material'.
    select * from mvke where matnr between '170' and '501'.
    check not mvke-prodh is initial.
    * Create a value mapping group to join two entries.
    * use a unique 32 digit number.
    concatenate '00000000000000' mvke-prodh into p_value_mapping-groupid.
    translate p_value_mapping-groupid using ' 0'.
    * Store the mapping source as first entry to the group
    p_value_mapping-identifier = mvke-matnr.
    p_value_mapping-agency = 'SenderAgency'.
    p_value_mapping-scheme = 'MATNR'.
    append p_value_mapping to p_value_mapping_table.
    * Store the mapping target as second entry to the group
    p_value_mapping-identifier = mvke-prodh.
    p_value_mapping-agency = 'ReceiverAgency'.
    p_value_mapping-scheme = 'PRODH'.
    append p_value_mapping to p_value_mapping_table.
    endselect.
    * Push data to XI
    call function 'Z_VALUE_MAPPING' in background task
      destination 'IS_XID'
      exporting
        value_mapping       = p_value_mapping_table.
        commit work.
    Import the RFC to the Integration Builder, create a mapping between your RFC and the interface ValueMappingReplication.
    Check this Blog for additional steps:
    /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    Choose names for context, agency and scheme which are useful your scenario.
    Regards
    Stefan

  • Batch Input enhancement in ABAP program

    Hi,
    I want to know if it's possible to enhance an existing batch input session with an ABAP program.
    this session is created by a program and I want that another program enhances this session.
    thanks in advance for your help.
    Franck

    This is possible - The BDC data is stored in SAP tables and there are options in SM35 to download a BDC session to a text file, or upload one.  I suggest you have a look at the code behind these options for functions etc that you can use to get an existing session.  Once you have the data you just need to modify it and write it as a new session.
    Andrew

  • ABAP Program to set a set the QM Status of a set of REquests to RED

    Hai friends,
         I have an urgent requirement. I need to set the QM status of about 100 requests and delete them from 3 infoproviders. Can anyone help me out with an ABAP program to do it, if it is possible?
    Regards,
    Neha Solanki

    Try modifying entries for tables RSREQDONE, RSMONICTAB whereever necessary.

  • R3 environment for test my abap programs

    Hi forum:
        I download the Sneak Preview Download Full ABAP Edition Trial, but i just want to test with simple abap programs for practice this language, but don´t know i can do it with this tool, because i think that this software it´s only for programing with ABAP WebDynpro, if this is true, is there some free server in Internet to practice my programming with simple ABAP?
    thnks
    Josue

    Hi,
    If you want to learn ABAP properly, go through a book called as ABAP OBJECTS. Its a very good book. Along with book, you will get miniSAP CD's on which you can practice your ABAP programs.
    Reward points if the answer is helpful.
    Regards,
    Mukul

  • How to copy/download  all ABAP programs in a text with a single report  ?

    How to copy/download  all ABAP programs in a text format with a single report/TC  ?
    How to copy/download  ABAP source code with all include programs ?....
    we need to search & copy all include programs everytime....

    Hi,
    check this link
    downloading programs
    Regards

  • Schedule Jobs with multiple steps via ABAP Program

    Hi,
    I need to schedule multiple programs via background jobs on a daily basis. Since all these jobs are to be run as a single job, the various programs have to be run as steps in a major job.
    I am however not very clear on how this can be done via an ABAP program ( the idea of a program is that various parameters to be passed to each program in the step can be entered dynamically rather than via variants).
    I am using the JOB_OPEN and JOB_CLOSE functions and submitting the programs with selection screen parameters dynamically passed to create a job. I need to do this for various programs as a job step (WITHOUT Variants being defined).
    Can anyone suggest any ideas for this? I have tried out JOB_SUBMIT Function but am not very confident I know what exactly it is for as it asks for a variant.
    Thanks very much,
    Preet

    Hi Preet,
    just to be sure: you know, that variants can be dynamical, too?
    It's quite usual to assign dynamical current date, but it's also possible to add / subtract value and even define own functionality.
    Maybe it's easier to implement a dynamical selection and handle static jobs.
    If you try to plan a job (online or with JOB_SUBMIT), you have to use variants - you can create (or change) them dynamical in beforehand. Only SE38, F8, F9 is creating a temporary variant, so that no saved variant is necessary.
    But if you end up creating variants dynamical, you can change one existing variant, too. Then you can use a static job definition (with periodical starting rule).
    So: have a look, if dynamic variants are enough, otherwise change variants per job.
    Regards,
    Christian

  • Err with scheduling an abap program using open dataset

    issue: have an abap program which uses "open dataset ... for input ..." to read the file. 
    - with manual ly running it, receive the following message "dataset_not_open".  
    - with scheduling it, receive same message
    attempting to run an abap program as part of a process chain (ie scheduling a background job) in BI.
    the abap performs the following fxns:
    1) read a file on the server
    2) removes delimiter, renames it
    3) rewrites the file onto the server
    initially used ws_upload for reading and ws_download for writing the file. 
    - both fxns worked fine if it is run manually --> but failed as a  background (part of process chain)
    - note 7925 states can't use ws_upload, download for background jobs
    -so switched to "open dataset"
    Any suggestions as to why the "open dataset" does not work is greatly appreciated it.
    B.A.

    Thank you for all responses. here is more info about the err message:
    sy-subrc = 8
    'invalid argument'
    I looked up the invalid argument in note 99155 --> due to "The destination file is no longer available during repeated file access. "   So, the following steps were taken:
    - file was regenerated and
    - file was placed on the server to be read
    have the following code:
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE encoding default
                          MESSAGE D_MSG_TEXT.
    also have tried the following:
       OPEN DATASET d1 for input in text mode encoding default.
       open dataset d1 for output in text mode encoding NON-UNICODE..
       open dataset d1 for output in text mode  encoding utf-8.
    none had worked.  system --> status shows no unicode.
    THanks again for any suggestions.

  • How to create a job thru ABAP program for calling a program with variant???

    Hello experts,
    can u give me step wise procedure to create jobs for  a program with a variant name thru ABAP???
    Also, can a transaction can be scheduled as a job to run in background with a variant name???
    Edited by: SAP USER on Jul 22, 2008 6:08 AM

    Hi,
    To create a job through ABAP program you can do the following.
    Go to Menu bar.
    In there, go to   SYTSTEM> SERVICES> JOBS--> DEFINE JOB.
    Then give the JOB NAME and CLASS in the screen that comes up.
    This is how we schedule a program.
    Now, to create a variant for a program -
    First activate your program in SE38. Then execute it .
    Now, click on SAVE button. It will open up  the variant creation screen. Give the details there like variant name and value for the fields. Save and come back.
    Hope this helps.
    Regards,
    Hari Kiran

Maybe you are looking for