File generation based on changes on  field value

Hi,
I am selecting fields from different table and passing it into one internal table and then I am generating a file. But my requirement is like out of 10 fields ...I will generate file only when there will be changes in 6 filed values. Can you all please suggest me how to generate file, or which function module I can use for this file generation.
Regards
Kumar

Hi Kumar,
You could use the class CL_GUI_FRONTEND_SERVICES with the method GUI_UPLOAD to upload the file with data, then you compare the File data with information from the internal table selected from diferent tables, if the fields have changed, then call the method GUI_DOWNLOAD to download the new file ( internal table).
Best regards,
Alejandro López.
Edited by: Alejandro López on Oct 28, 2008 8:45 AM

Similar Messages

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • Processing on change of field values in internal table

    I have a internal table eg
    id            type                  keyword
    1               1                      report
    1               1                      program
    n02           4                     event
    n02           5                      loop
    n03           6                      call
    n03           6                       do
    No when even id changes from 1 to n02...i want to write " id id 1' similarily wenever id changes from n02 to n03 then id is " id is n02" and so on
    How can do some sequential processing on change of field values in internal table

    hi,
    This code will resolve your purpose.
    DATA:
      BEGIN OF t_tab OCCURS 0,
      int TYPE c,
      str TYPE char10,
      var TYPE char3,
      END OF t_tab.
    t_tab-var = '1'.
    t_tab-int = 1.
    t_tab-str = 'report'.
    APPEND t_tab.
    t_tab-var = '1'.
    t_tab-int = 1.
    t_tab-str = 'program'.
    APPEND t_tab.
    t_tab-var = 'n02'.
    t_tab-int = 4.
    t_tab-str = 'event'.
    APPEND t_tab.
    t_tab-var = 'n02'.
    t_tab-int = 5.
    t_tab-str = 'loop'.
    APPEND t_tab.
    t_tab-var = 'n03'.
    t_tab-int = 6.
    t_tab-str = 'call'.
    APPEND t_tab.
    t_tab-var = 'n03'.
    t_tab-int = 6.
    t_tab-str = 'do'.
    APPEND t_tab.
    LOOP AT t_tab.
      ON CHANGE OF t_tab-var.
        WRITE:
          / 'id' ,t_tab-var, t_tab-int.
      ENDON.
    ENDLOOP.
    Thanks and regards
    Sharath

  • Can we change key field values in table maintenance

    Hi,
      I have created Z-table and table maintenance for the same...
    In table maintenance..Can we change key field values??
    Is there any posibility????
    Rayudu

    you can do it in this way.
    open sm30->tablname->edit
    snow select the row(s)->copy->change the keyfield values-back->save.
    no in that sm30, select records with old primary key and delete->save.
    so you got all field similar for those record under modification, only the key field changed.

  • Planning function to change date field value in layout

    Hello experts,
                          I have 1 BPS layout with 2 date fields ( Start date, End date ). With a filter conditions, set of data comes in BPS layout on execution and 2 date fields also contain some value...I want to change values of these 2 dates...both the date fields are char infoobjects..in BPS layout, in planning function I got only 1 function ( Repost function ) to change the value of char infoobject based on some condition. but date field value is not the status field...i want to enter new date instead of old date..if i right exit function in that also i can change only keyfigs values..so please help me to solve this problem..
    Thanks & Regards,
    Priyanka Joshi

    Hi Priyanka,
    As of now master data planning is not so flexibly supported.
    Still u can refer the below link which is enhancement of standard Repost function,and can be used to change master data.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d2b273-0e12-2c10-fab3-a34bde559f92]
    As far as my knowledge goes u cannot directly input date in rows.
    regards,
    Rajendra

  • Subtotal in alv report based on the particular field value

    Hi,
    As per my requirement, i need to do subtotal of quntity field based on the material number field value in alv report.
    Ex:  if material number falls 1 to 10 then i need to be calculate and display subtotal qty amount with text " total of the mat1" and if material number falls 11 to 20 then again i need to be claculate and display subtotal qty amount with text "total of the mat2". similarily i need to display the details.
    <removed_by_moderator>
    Regards
    Nagendra

    Hi,
    Ex: if material number falls 1 to 10 then i need to be calculate and display subtotal qty amount with text " total of the mat1" and if material number falls 11 to 20 then again i need to be claculate and display subtotal qty amount with text "total of the mat2". similarily i need to display the details.
    What you can do is in your output table, you will have to create an auxilary field, lets call it as material group (groupid). Now you can do a subtotal on the material group. However the logic to determine what materials belong to which group should be coded. I guess you might be having some logic for that.
    So lets say that material 1 to 10 as G1 ( group 1 ) and material 11 to 20 as G2 ( group 2 )
    The output of the internal table would be
    Groupid  matnr ...
    1  1
    1  2
    1  3.....and so on
    2  11
    2  12
    2  13....upto 20.
    Now in the fieldcatalog assign an 'X' to the 'dosum' parameter to the field Groupid
    In the sort info do the following :
    gs_sort-fieldname = 'GROUPID'.
    gs_sort-spos = 1.
    gs_sort-up = 'X'.
    gs_sort-subtot = 'X'. ***CRUCIAL STATEMENT****
    append gs_sort to gt_sort.
    Now pass all this data to the alv grid function. And you are done.
    regards,
    Advait

  • Actionscript & changing form field values

    I am building a form using flash forms. I have a particular
    field that by default the value is 0.00. I want to make an onchange
    actionscript that will dynamically change the form field value to
    0.00 if the end user deletes the value out of the field and leaves
    it blank.
    Please be gentle...I know my actionscript'ing is poor (and
    probably looks a wee bit more like JS than AS) LOL
    <cfsavecontent variable="zero_myfield>
    if (myfield.text == '') {
    myform.myfield.text == "0.00";
    </cfsavecontent>
    <cfinput type="text" name="myfield"
    onchange="zero_myfield">
    I know you can manipulate the value of a form field easily
    with javascript, but how to do the same thing with actionscript?
    Any pointers would be appreciated!
    Thanks!!

    ROFL, I figured as much...like I said, my AS is *very*
    rudimentary right now heheh
    I picked up an AS book yesterday evening to hopefully help me
    out some, I know not all AS is available to use in ColdFusion flash
    forms, but it will give me a good reference I hope.
    I'll try my hand at the listener and see what I can come up
    with. Thanks for the pointer!! :)

  • How to change defauled field value in Appraisal OSA

    Hi,
    We hav implemented OSA Appraisal Model and it's working fine both in R/3 and from EP.In form template We hav set the column 'Value Input' to Required Entry.
    In the HAP Document the field values of that column are never null coz the field value is defaulted to the first entry '1'. How to change the defaulted value in the drop dwn boxes.
    Any help will be much appreciated .
    Rgds,
    Jothi.
    Message was edited by: Jothivenkatachalam.P

    Hello Jothi,
    Defaulting can be achieved with a value determination, BAdI definition HRHAP00_VAL_DET.
    Regards and Groetjes,
    Maurice

  • Create Excel file in application server but the field value is incorrect

    Hi Experts,
    i am facing a problem when create excel file in application server using OPEN DATASET command.
    the internal table have 4 field and one of those field contains 19 digit number --> ICCID.
    the code running well, successfully create EXCELfile in application server but the problem is SAP only copy exactly first 15 digit numeric only and the rest became zero 0
    Example :
    the field value in internal table is 8962118800000447654 but when i opened in the excel file the value became 8962118800000440000.
    and if i add alphabet like a8962118800000447654 then it is correct.
    is there is anything wrong with my code?
    here is my code
    CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab. "Tab Char
    Data : begin of lt_zdsdmmdt00005 occurs 0,
             SERNR (18) type c,
             MSISDNl(20) type c,
             BOX1 (20) type c,
             ICCID(30) type c,
           end of lt_zdsdmmdt00005.
    data : ld_temp(100) type c.
    i_file = '/usr/sap/DM/test_excel.xls'.
    open dataset i_file for output in legacy text mode.
      loop at lt_zdsdmmdt00005.
        move lt_zdsdmmdt00005-ICCID to ld_iccid .
        concatenate lt_zdsdmmdt00005-sernr  lt_zdsdmmdt00005-MSISDN  lt_zdsdmmdt00005-BOX1 ld_iccid
        into ld_temp separated by c_tab.
        transfer ld_temp to i_file.
      endloop.
      close dataset i_file.
    Best Regard,
    Akbar.

    Hi Naveen,
    thanks for your reply,
    i already tried and the result still the same. any idea?
    Best Regard,
    Akbar.

  • How to change screen field value.

    Hi Experts,
             I like to change the screen field MSAUS(check box) of program SAPLIQS0 in one of the exit.But if I use
    (SAPLIQS0)VIQMEL-MSAUS = 'X'. its showing compile error.Please tell me how can i change this field in this exit.
    Regards,
    Ajish.

    try something like this:
    create field symbol
      FIELD-SYMBOLS: <fs>.
    Assign value of variable from calling prog to field symbol
      ASSIGN ('(SAPLIQS0)VIQMEL-MSAUS' ) TO <fs>.
    <fs> = 'X'.
    Regards,
    ravi

  • Is there any user exit for changing V1 field value?

    Hello Expert,
    Is there any user exit for changing V1 update value?
    For example, sales order number will populate 2LIS_11_VAHDR-VBELN. If other value need to populate 2LIS_11_VAHDR-VBELN, can we use any user exit to customize the V1 routine?
    Please forget the enhancement for 2LIS_11_VAHDR. Just populate the system field VBELN.
    Thanks
    F-B-I

    Hi,
    Use the 'usual' user-exit for transactional data in R/3 EXIT_SAPLRSAP_001 (CMOD). Here your can overwrite VBELN for each extracted record with the value you want.
    Hope this helps.
    Grtx
    Marco

  • Screen Field Value Should be changed based on changes in ALV values

    Hi All,
    We had created a ALV with container, in this Alv we have a checkbox, which is editable.
    Based on the selection on checkbox , we need to update a field "Total selected" on screen.
    we are using Event to handle data changed in ALV, but some how it doesn't work.
    we even tried to use 'DYNP_VALUES_UPDATE' Function module to Update the field.
    Please find the code below.
    LOOP AT gt_final INTO gw_final WHERE mark EQ 'X'.
              gv_sel  = gv_sel  + 1.
    ENDLOOP.
            lw_dynpfields-fieldname = 'GV_SEL'.
            lw_dynpfields-fieldvalue = gv_sel .
            APPEND lw_dynpfields TO lt_dynpfields.
            CALL FUNCTION 'DYNP_VALUES_UPDATE'
              EXPORTING
                dyname               = 'Z_MAINPROG'
                dynumb               = '0300'
              TABLES
                dynpfields           = lt_dynpfields
              EXCEPTIONS
                invalid_abapworkarea = 1
                invalid_dynprofield  = 2
                invalid_dynproname   = 3
                invalid_dynpronummer = 4
                invalid_request      = 5
                no_fielddescription  = 6
                undefind_error       = 7
                OTHERS               = 8.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
    We get Sy-subrc as 0. No error and no update.
    Thanks in advance.
    Regards,
    Ravi

    Do you flush to synchronize the itab from frontend?
    In Debugger, is the column updated via 'X' for the checkboxes?
    please insert cl_gui_cfw=>flush.  to sync in PAI before analyzing the table.
    Regards,
    Christian

  • Opening Excel file now shows column type in field value...

    Just in the last 2 weeks, excel files that have fields set as 'General' are now displaying the word 'General' in the field. If you change it to another type (i.e. number or text) then it just displays the value. The file is originally created in OpenOffice and saved as an MS Excel file and works fine being opened in Excel on Micorsoft. It only has this problem on the iPhone and just started in the last 2 weeks. Any ideas?

    Hi Vijay,
    Just go through with this thread may be it will help you......
    Are You All Able to get the Output In EXCEL Format
    Regards
    Ravi

  • BRF+ Trigger via Event, change on field value, etc

    Hi,
    I'm implenting BRF+ for SPM Claims & Returns Process.
    It took me a while to understand how I can set up an application, Function from type event, Rulesets, rules, etc but at the end it seems that it is a tremendous improvement compared to BRF!
    So far I have triggered the BRF+ via the CRMV_EVENT_CUST table calling a function module that triggers the BRF+ Function and receives an CRM Log message but this solution is not sufficient for all locations I want to call the BRF+.
    At first I want to call the BRF+ for the Entryvalidation: Entering a Claim with a item net value below a threashold should not be saveable.
    The second call should be to decide if the Claim will be automatically approved or set to manual investigation: This is a check that will lead to a item status change.
    The third and last check will be fullfilled by saving the Claim document: a whole set of business rules have to run and set maybe an incompleteness or process some error messages.
    I neither any information in SAP Documentation, nor on any ressource on the net any information about customing the BRF+ Solution.
    Is there any customizing in the system, as it is for BRF, that allows me to trigger the BRF+ for Business Transaction Category, Business Transaction or ItemCategories?
    Furthermore, is there an option to call BRF+ via customizing that "listens" to a field change as Reason Code ( CODEGRUPPE, KATALOGART,CODE in the Subjectprofile?)
    Can I define Events that trigger the BRF+ as in the BRF customizing?
    When I search the IMG for BRFPLUS, I find a couple of entries, but doubleclicking on this search results doesn't jump to the customizing step.
    It would be very helpfull to get some input in these topics.
    Kind regards,
    Sven

    Hi Tiwari,
    yes, the screenshot was from CRM-Financial, but available in CRM Transaction Processing:
    And I agree to your statement that there is no such customizing, because I neither found this Customizing, except:
    Using the search in the customizing IMG, you will find 3 customizing entries with BRF+ or BRFPLUS, but clicking on them you will land in Nirvana, and not in the proper customizing tree.
    But still the overall trigger for my message here is, that the BRF could be triggered via Customizing that doesn't seem to exist for BRF+ and that's strange!
    I hope someone knows how the replacement of BRF with BRF+ is intended from this customizing point of view. I have to trigger a lot of different functions and using the old BRF I could trigger this Events using this customizing setup.
    Thanks,
    Sven

  • Creating data output based on changes to fields

    Hi
    I am using SQL Server 2008 R2 BIDS and need to produce a weekly report whos output only shows changes from the previous weeks report and not sure if this can be done or where to start so any help very much appreciated.
    The scenario is this.
    I have a table where data is uploaded automatically (date created) and there are three main fields that can change. There are over two thousand rows added at each upload.
    Column1 will be the date created
    Column 2 will be a monetary value
    Column 3 will be a reference number
    In the example above with one reference number the first three rows there is no Amount change so each time the report is run this would not be included in the output. In Row 4 there is an amount change so this row should be included in the report output.Row
    5 changes again so the next time the report runs this should show in report output. There is no change to Amount in Row 6 or 7 so these should not show in the next report output.
    If the report was run on 20/03/2015 then there would be no output as no previous changes
    Similarly if the next report was run on 10/04/2015 then it should show the changes on 26/03/2015 and 09/04/2015.
    There could be NULL value in the Amount column and again if at some stage an Amount was uploaded then this would show a change and should be included in the next time the report run.
    Any changes to data from automatic upload then need to manually adjusted and to save a user comparing thousand of rows i was hoping that by creating a report to only highlight changes would be a great time saver.
    I hope i have explained this okay and any thoughts or assitance would be great
    Thanks
    John

    Hi
    I have put the query into SQL Server Management studio to test using the table field names but it doesnt seem to giving me the expected output. This returned over 111392 rows. I have filtered this to just show the reuslts for tency_seq_no 200002 which
    returns 57 rows.
    DECLARE @InputDate Date = '2015-04-09'
    ;WITH cte AS
    SELECT *,ROW_NUMBER() OVER(ORDER BY trans_date)
    -ROW_NUMBER() OVER(PARTITION BY grs_val_trans ORDER BY trans_date) rn
    FROM hratrans
    SELECT MIN(trans_date)as DateCreated, grs_val_trans, tency_seq_no, rn FROM cte
    WHERE rn <> 0 and trans_date < @InputDate and con_sou_cd = 'HB' and tency_seq_no = '200002'
    GROUP BY RN,grs_val_trans,tency_seq_no
    This is in fact showing all weekly transactions over the past year for this particular tency_seq_no.
    However i only want the report to show any changes since the last time the report was run. So in the image shown below for tency_seq_no 200002 if i select 09/04/2015 as the input date i would want two rows in the output showing -62.11 both on the 09/04/2015
    as this was a change from the previous -61.11 recorded on 26/03/2015.
    The image below just shows part of the table hratrans
    Likewise if i had used an input date of 12/03/2015 at -60.71 then there would be no output for this as the previous date of 05/03/2015 was also -60.71.
    Thanks
    John

Maybe you are looking for

  • My website is not showing up at all

    I recently published my domain www.danielrentals.com, and its not showing up in any browser after publishing to Business Catalyst.  I have change the name servers with my domain registrar, and have reached out to their tech support, but they are limi

  • Re-release of PM order after change

    Hello Gurus, our PM consultant is telling me that once the maintenance order has been released it won't be triggered back for re-release if I apply changes to it. For example, I plan my work (internal hours and materials) and then release the PM orde

  • In IC_Auto business role Toolbar buttons not visible

    Hi,    In my project for IC_Auto role the buttons in the toolbar is not visible. we have not modified any thing to standard. Any notes to be updated ? With regards, selvam

  • 11.1.3 workspace web context issues

    Hi all, I am running an apparently successfully configured version of 11.1.1.3. Everything was working fine, until I stopped all the services so that I could take a backup, and then restarted them manually in the order recommended by Oracle. Now the

  • Anyone used FMS on Amazon's Web Service?

    Just wondering what people thought of the service if they've used it.