How to save the variant and select it for displaying output

For       ALV variant use the FM_REUSE_ALV_VARIANT_F4 and REUSE_ALV_VARIANT_DEFAULT_GET to allow the user to save the variant and select it for displaying output.If   any of the data (Z fields in VBAP) is blank,the cell in the column must be highlighted in red.

Hi,
   Refer thsi code
DATA : wa_variant  TYPE disvariant,       "Work area for variant
       wa_variant1 TYPE disvariant,       "Work area for variant
*&      Form  sub_get_default_variant                                  *
This form will initialize the variant                               *
FORM sub_get_default_variant .
*--Clear
  CLEAR wa_variant.
*--Pass the report name
  v_repid = sy-repid.                     "Report ID
  wa_variant-report = v_repid.
*--Call the function module to get the default variant
  CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
      i_save        = c_save
    CHANGING
      cs_variant    = wa_variant1
    EXCEPTIONS
      wrong_input   = 1
      not_found     = 2
      program_error = 3
      OTHERS        = 4.
*--Check Subrc
  IF sy-subrc = 0.
    p_varnt = wa_variant-variant.
  ENDIF.
ENDFORM.                                  "sub_get_default_variant
Regards,
Prashant

Similar Messages

  • How to avoid the Amount and Date values for VOID Cheques

    Hi All,
    I had created a two window i.e For Amount and Date. If I process the cheque the Amount value and Date should not trigger for VOID CHEQUES.
    Can any one tel me how to avoid the Amount and Date values for VOID Cheques
    Your help will be greatly appreciated.
    Regards
    Yathish

    Hi,
    I dont know which tablel you are referring to, is it PAYR table and the field VOIDR?
    If a cheque is voided, it would have a reason and it is stored in VOIDR field of this PAYR table.
    Check if the field VOIDR is filled, if it is filled, do not print the amount and date.
    Regards
    Subramanian

  • How to get the lock and block occured for the full day

    Hi,
         How to monitor the lock and blocks occurred for the full day? i need to get it by end of the day. is there any script for this?

    Hi,
         How to monitor the lock and blocks occurred for the full day? i need to get it by end of the day. is there any script for this?
    Why would you like to collect information about locks and let me tell you, you cannot collect information about ALL locks which were taken and even thinking about it is pointless.
    Coming to blocking if you have heavy system with huge concurrency there is bound to be blocking which is necessary and good for RDBMS but if the blocking remains for long time then this is a issue.
    There is DMV sys.dm_tran_locks which tell you what all locks are being taken. You can see various examples mentioned in DMV online documentation and can schedule the query to run every 5
    mins and insert its record in table which you can refer at end of the day.
    This task would be made very easy if you have Monitoring tool which gives you information in your mail every time blocking occurs I have Spotlight in my environment.
    If you are looking for doc for troubleshooting blocking  below is one you can refer
    http://support.microsoft.com/kb/224453
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • How to set the gain and input coupling for each channel on a NI 4462 DaQ card?

    I've seen a few examples in how to set the gain for NI 4462, but none tell me how to chose the channel I wish to set this gain.  Also the same problem with input coupling
    Does anyone know how to set the gain and input coupling for each individual channel?
    Thanks,
    Hector
    LabView 8.5 Windows XP

    Hey Hector,
    http://forums.ni.com/ni/board/message?board.id=100&thread.id=1688
    This has a few examples of how to do that.  Let me know if you have further questions.
    Have fun!
    -gaving

  • How to set the Mail and Fax options  for the Smartforms ???

    How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .

    >
    veera Karthik wrote:
    > How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .
    Hi
    Check this Link:
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm
    P.S: Never say reply me soon....people answer you here voluntarily and as everyone has their own desk to manage...sp replies may late or early..depending upon the availabality of the members.
    Vishwa.

  • In customer control - how to save the variant.

    Hi,
    In Customer control,I am using the class cl_gui_alv_grid. So i want to save the variant in it.
    Plz provide me details.
    Regards,
    Rani.

    Hi,
       Refer thsi code
    DATA : wa_variant  TYPE disvariant,       "Work area for variant
           wa_variant1 TYPE disvariant,       "Work area for variant
    *&      Form  sub_get_default_variant                                  *
    This form will initialize the variant                               *
    FORM sub_get_default_variant .
    *--Clear
      CLEAR wa_variant.
    *--Pass the report name
      v_repid = sy-repid.                     "Report ID
      wa_variant-report = v_repid.
    *--Call the function module to get the default variant
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save        = c_save
        CHANGING
          cs_variant    = wa_variant1
        EXCEPTIONS
          wrong_input   = 1
          not_found     = 2
          program_error = 3
          OTHERS        = 4.
    *--Check Subrc
      IF sy-subrc = 0.
        p_varnt = wa_variant-variant.
      ENDIF.
    ENDFORM.                                  "sub_get_default_variant
    Regards,
    Prashant

  • When I updated to the new version for the IPhone and selected ICloud for backup location, my Notes have disappeared and you are no longer on my Desktop either.  Where did they go?

    When I installed iOS5 on my IPhone4 and selected ICloud for my storage location, all my Notes disappeared off my IPhone & Desktop.  Where are they?

    There must be a big pile of notes somewhere cause the same thing happened to me. If you find them let me know.

  • Hi everybody how to save the inputed data in one simple list output .

    here am wrting the description of the requirement ...
    am displaying one report output in that output i have all my fields open so that user can directly chage the dats what ever needed or he needs.
    then after changing when he will press the save button the changed data should be saved to one of the database tables ..
    so can anybody please help me out how to do this requirement
    this is a simple report with all fields in the output screen in input mode

    hiiii
    if you want to save the data that user have updated then use following statement on SAVE button.
    UPDATE ztable1
    SET    C1 = 2   
    WHERE  C2 IN ( SELECT C3
                   FROM   T2
                   WHERE  C4 = 0)
    reward if useful
    thx
    twinkal

  • How to choose the characteristics and key figures for a cube

    Hi Gurus,
    To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?

    To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?
    Hi,
    For CO-PA since it is a generated DataSource, except for the common characteristics ( E.g. Company Code, Controlling Area ) where you get standard InfoObjects for all other Characteristics and Key Figures you end up creating custom or Z characteristics and key figures. This is unavoidable.
    Assigning points is the only way of saying thanks in SDN
    Thanks,
    Shan.

  • How to define the Structure and FCC parameters for EDI file format.

    Hi All,
    I have a  EDI file(FTP)-->XI-->IDOC
    the source file content is as follows
    PR H01PHUPS         
    FH   SHP  0.0.5    
    H1   S0022323                            
    W6   7752508853                     D
    PT   1Z58R7070341111111           
    PT   1Z58R7070342222222           
    PT   1Z58R7070353333333          
    N1ST ZZ 142222                            
    N3ST 8827 D OLD
    N4ST MARCY                        
    N1WH ZZ 2070                              
    N3WH 401 QUALITY
    N4WH HARRIS
    DTENT20111206
    DTSHP201112061754
    N9LL BN20700033333333                               
    N9NT
    CD   CP      UPS
    IT026
    P1GD    VN A1111 
    PD   Product ID 1                   
    QTORD000000000000010CA
    QTSHP000000000000010CA
    AM U  000000000000000000M
    AM X  000000000000000000
    LTLT 1112811111                                       
    AM G  000000000000000000
    AM N  000000000000000000
    AM TAX000000000000000000
    AM SVC000000000000000000
    AM COD000000000000000000
    ST   00000000100000000010000000000000000000000000008500LB
    Can any body share me how to declare the structure in DataType.
    The first two characters in each record is constant , so this would be the keyfields right?
    ex:- PR,FH,H1,W6,PT,AM,N1,N3,N4......
    In Comm channel the FCC parameters
    i need to go for fieldFixedLengths?
    Thanks&Regards
    Sai_SHA

    Hi.
    if you need to convert an EDI to XML you need to use an Adapter specific (e.g Seeburger) because PI doesn't support EDI files.
    Also if you use a FCC , this configuration is for  two level Header and Detail.
    Check this.
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    Regards
    Luis Ortiz

  • How to create the IView and Roles ,User for WebdynPro Application in Portal

    Hi,
           I have one simple webdynpro application. i want to create the user,Role and Iview for my webdynpro application in the Portal . after that i need to assign the roles to the user and i want to see the different output for each user depends upon the Role.
      Can anyone give me Tutorial page(PDF) or Guide me How to do?
             Thanks in Advance
    Regards
    Ramkumar

    Hello Ramkumar,
    following please find the link to available documentation in SAP Help Portal:
    http://help.sap.com/saphelp_nw70/helpdata/en/42/fa080514793ee6e10000000a1553f7/frameset.htm.
    Regards,
    SAP AG
    Gesine Raith

  • How to create the Query and T Code for Special Reports

    Dear Freinds,
    Could any one advise the process to create the Query and the T code for some special combination of reports. Where can we find the documentation on this if that exists?
    Thanks for the help.
    Regards
    Moderator: Please, search SDN - you'll find the answers

    HI
    Go to Tools -->ABAP WorkBench -->Utilities --> SQVI QuickViewer ( Query Builder)
    Go to Tools -->ABAP WorkBench -->Utilities -->SAP Query -->SQ01,SQ02,SQ03
    first create Infosets in SQ02, Assign Infoset to UserGroups in SQ03 and create a Query in SQ01.
    Create a Transaction Code in SE93.
    regards
    Venkat

  • How to find the Connection and Security Code for iPad?

    I have a Canon ImageRunner 3025 at the office. I want to connect it with my iPad. I've downloaded the Canon Print & Scan App, but the app requires a Connection code and Security code.  Where can I find this on the printer? 

    Hi, thanks for posting! Canon does not provide direct support for imageRUNNER series products, but your dealer will be able to help you! If you don't have a dealer, please call us at 1-800-OKCANON (652-2666) and we will be happy to provide dealers who are in your area.

  • Checkboxes: How do you use them to select geometries for display, MapViewer

    Dear all
    I am working in Oracle 10.2 and using PL/SQL. I am trying to create a procedure that generates a list of spatial layers, based on those currently contained in the database, which uses checkboxes, so that users can select which layers to display.
    Once the user has made his choices and the results are submitted, the chosen layers are displayed through MapViewer. Currently the procedure, which is still being developed, is as follows:
    PROCEDURE MAPLIST AS
    CURSOR curmaplist IS
      SELECT spatial_map_name
             spatial_map_id
             geom
       FROM spatial_map_table;
      varmaplist curmaplist%ROWTYPE;
       varchecked VARCHAR2(32767);
    BEGIN
    FOR varmaplist in curmaplist LOOP
      htp.print('<FORM>
                  <UL>
                   <LI>
                    <LABEL FOR="SM_ID||
                                curmaplist.spatial_map_id||">
                     <INPUT type="checkbox"
                            id="SM_ID||
                                curmaplist.spatial_map_id||"
                            name="SM_ID||
                                  curmaplist.spatial_map_id||"
                            value="MAP TITLE: ||
                                   curmaplist.spatial_map_name" />
                    </LABEL>
                   </LI>
                  </UL>
                 </FORM>'
      EXIT WHEN curmaplist%NOTFOUND;
       END LOOP;
    END;I am not sure how to incorporate the checked element and then make use of it. Regarding subsequent use, I wondered if an IF statement could be used.
    IF VARCHECKED = 'CHECKED' THEN...after this MapViewer XML is added, with the select statement making use of the cursor. For example:
    select curmaplist.geom
    from geg50160.spatial_map_tableFor the checked part itself, I have found the following Oracle code in Chapter 11 of Oracle Database Application Developer’s Guide - Fundamentals 10.2.
    CREATE OR REPLACE PROCEDURE handle_checkboxes ( checkboxes owa_util.ident_arr )
    AS
    BEGIN
    FOR i IN 1..checkboxes.count
    LOOP
    htp.print('<p>Checkbox value: ' || checkboxes(i));
    END LOOP;
    END;
    /However I am not certain how I would incorporate that into my code. I take it i refers to the checkbox value. I've read that .ident_arr is an array which can hold multiple values but if so I am also not sure why checkboxes are counted.
    Kind regards
    Tim

    Hi GKaiseril,
    Thanks for your reply.  That's what I'm attempting to do, but I'm largely trying to "borrow" on-line JavaScript (see below) & modify for my PDF Form, w/ rudimentary knowledge gained while surfing the web.  The Form has 30 checkboxes that I want to limit users to a max. of 4.
    So any add'l scripting tips would be most appreciated.
    Thanks!
    var NewCount = 0
    getField("Check_Box1").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box2").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box3").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box4").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box5").value === "Yes"
      {NewCount = NewCount + 1}
    if (NewCount == 4)
    app.alert(“Pick Just Four Please”); return false;

  • How to get the medium and long text for PRODUCT HIERARCHY?

    hi experts,
    i am using data source called 0prod_hier_text. in ECC there is description for medium and long.
    but in BW it is mapped to 0TXTSH which is short text, and in the transformations medium text is mapped to short text of BW (0TXTSH) which is having length only 20.
    IF it exceeds more than 20 it is now showing.
    so how to get  add 0TXTMD which is medium text so that i can see the description for MEDIUM.
    i did try to add  to 0PROD_HIER but i cannot add.
    i need to show medium text description in the Report.
    plz provide me the input.
    regards
    venuscm

    Hi Venu,
    Check in RSD1 screen which text you have chossen .....for object 0product
    try to check for medium & long text(if not checked) ..
    so that you can add mdtxt & long txt in transformations........
    hope this will help you.
    Thanks,
    Vijay.

Maybe you are looking for

  • Appleworks bounces once and doesn't open

    I can't seem to get Appleworks to open- if I click on the icon or go to applications and click it there, it bounces once and then stops. It does not open. Any thoughts? It seems to be a different problem than recent "won't open" subjects. I have not

  • Problem loading video to FLVPlayback

    I'm doing the exercises included in the book "ActionScript 3.0 for Adobe Flash CS4 Professional Classroom in a Book", but I have run into a problem I cannot solve regarding the use of the source property of the FLVPlayback component. This is how the

  • Implement a greedy search in java

    Implement a greedy serch in java for the map of romania .goal state is bucharest. 1.not to visit the same city twice 2.give the search trees 3.try 3 initial states

  • Can I make and order photo books using iPhoto on my iPad?

    I would like to make photo books for family and friends, but all I have is an iPad. Will it do the same thing?

  • Problem in pipeline while processing an IDOC

    Hi, I am triggering an IDOC in SAP, when i see the same in moni.. it shows a ">" sign and the Q status column shows a green dot.. Any inputs on this is appreciated.. Thanks in advance.. Karthik.