Variable Variant

Hi Everyone,
I have below mentioned requirement, in which i have to use variable variant,
Requirement:
There are 5 fields on selection screen.
1) Customer Number
2) Unloading Point
3) Partner Description
4) Vendor
5) PO Number
now it is required that there are variants for every customer number, which can be more than one also for one customer no, and when i input customer number, It should show me the variants for particular customer no. and after selecting the particular variant, all other fields get populated.
please help me know if there is any way i can select the particular variant based on the Customer Number.
If you have any sample code, pl pass it on to this mail ID, [email protected]
Regards
Ashish Rawal
Bangalore.
Message was edited by:
        Ashish Rawal

Hi Soniya,
<li>check the below program.
REPORT ztest_program.
PARAMETERS p_char TYPE char5.
PARAMETERS p_date TYPE sy-datum.
AT SELECTION-SCREEN OUTPUT.
  p_date = sy-datum.
START-OF-SELECTION.
  WRITE:/ p_char,
          p_date.
<li>I have create variant ztest_var1 with values p_char = 'test1' and p_date = '29.09.2009'.
<li>I have create variant ztest_var2 with values p_char = 'test2' and p_date = '01.10.2009'.
<li>As I have filled p_date with sy-datum in PBO of the selection-screen.I am getting outputs like below.
TEST1 30.09.2009
TEST2 30.09.2009
So try that way. I think that it works.
Thanks
Venkat.O

Similar Messages

  • How to create the variable variant in process chains for ip

    how to create the variable variant in process cahins for ip

    Hi venky,
    check these links
    http://help.sap.com/saphelp_nw70/helpdata/EN/c0/980398e58611d194cc00a0c94260a5/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/c0/98038ce58611d194cc00a0c94260a5/content.htm
    bhaskar

  • How to transport variable variants

    Hi Gurus,
    I want to transport the variable variants? how can i do that? in BI7 system.
    Regards
    Kiran Kumar Manku.

    Hi,
    Looks Funny, but i got the variants i have created in Dev to QAS. I thought of creating in QA but when i checked them, they already exists. Did u checked in RSRT , Query Variants after transporting the Query ?
    In my case i have used the Variant in the APD's.
    -Sonti-

  • Transporting Variable Variant

    Hi everybody,
    I have created a variable variant in the IP modeler (under the tab "Planning Sequences") and now I wish to transport it. 
    Variable variants do not appear in the BW transport connetion as a separate item to be selected.  Nor does the variable variant go with the Planning Sequence when it is transported.
    Does anybody know how to get this object onto a transport request? 
    Greetings,
    Martin

    You can't do maintanance for this table, becouse it's in SAP standart content.
    There are no capabilities to add record of table RSRPARAMETRIZA using se16 ("Table Entry" -> "Transport Enties" not active) in new system version.
    So you need do next
    1. GOTO SE09 to
    Either create a new workbench request or goto the old request (Objects Tab)
    2. Press Edit button
    3. Enter the following in the row:
    Prog Id = R3TR
    Obj Type = TABU
    Obj Name = RSRPARAMETRIZA (RSRPARAMETRIZAT)
    Then Press ENTER
    4. A Key Button will come on the Right column.
    Press it. A New screen will come.
    5. In Table Keys enter : YouVariant(SPACE)*
    Save the request and transport.
    YouVariant - Tech Name of you RSPC variables variant
    (SPACE) - Few spaces, it's need if tech name of you variant not equal 30, so number of spaces = 30 - length of tech name your varian
    Hope it helps
    BR, Alex

  • Bex Broadcasting and variable variant

    Hello,
    I have a workbook with queries using 0CALDAY. I want send by email in Broadcasting, I need get the current day for 0CALDAY but the variant dont have the posibility of D (Dynamics Variable) only the option T is in the match-code. (I cannot put change the query because I need for other proposed)
    Please, What is the way for take the current day in a workbook for broadcasting?
    Thanks in advance,
    Luis Maria Lorente
    PD:  I promise to award the points.......

    Hi Luis.
    Did you get an answer for this?
    Can anyone else help?
    Patrick

  • Job creation with variable variant parameters

    Hi,
    Is it possible from a FM to start a job using a program where one sends the selection screen parameters with?
    As the called FM calls the program with different parameteres each time.
    If it is possible can someone please assist by giving an exsample?
    Thanks in advance.
    Best regards

    Hi,
    Check this eg.
    This program will submit an another program in background mode as a job.
    REPORT  ZACE1031_ROUTING_CONV_TRG NO STANDARD PAGE HEADING
                                    LINE-COUNT 255(1)
                                    LINE-SIZE 255.
    TYPES: BEGIN OF x_mat,
           werks TYPE mast-werks,
           matnr TYPE mast-matnr,
           stlal TYPE mast-stlal,
           stlnr TYPE mast-stlnr,
           stlan TYPE mast-stlan,
           END OF x_mat.
    DATA:  v_params    TYPE pri_params,
           v_jobname   TYPE tbtcjob-jobname,
           v_jobcount  TYPE tbtcjob-jobcount VALUE 1,
           v_stringlen TYPE i VALUE 0,
           v_msg_string(50) TYPE c,
           v_prog(30)  TYPE c,
           c_cross(1)  TYPE c VALUE 'X',
           c_01(2)     TYPE c VALUE '01',
           c_trg(1)    TYPE c VALUE 'X'.                "CCT51576
    DATA : it_mat TYPE TABLE OF x_mat,
           wa_mat type x_mat.
    DATA : v_werks TYPE mast-werks,
           v_pre_werks TYPE mast-werks.
    RANGES: r_matnr FOR mara-matnr.
    TABLES : mkal,mast.
    SELECTION-SCREEN BEGIN OF BLOCK matnr
                              WITH FRAME TITLE text-001.
    SELECT-OPTIONS : so_matnr FOR mast-matnr.
    SELECTION-SCREEN END OF BLOCK matnr.
    SELECTION-SCREEN BEGIN OF BLOCK plant
                              WITH FRAME TITLE text-002.
    SELECT-OPTIONS : so_werks FOR mast-werks OBLIGATORY .
    SELECTION-SCREEN SKIP.
    PARAMETERS     : p_date TYPE datuv OBLIGATORY.                        "CCT51576
    SELECTION-SCREEN END OF BLOCK plant.
    INITIALIZATION.                                                        "CCT51576
    CONCATENATE sy-datum+0(4) c_01 c_01 INTO p_date.
    AT SELECTION-SCREEN.
    START-OF-SELECTION.
      SELECT bwerks bmatnr  bstlnr bstlal b~stlan
      INTO CORRESPONDING FIELDS OF TABLE it_mat
      FROM mara AS a
      INNER JOIN mast AS b
      ON bmatnr = amatnr
      WHERE a~matnr IN so_matnr
      AND b~werks IN so_werks
      AND  ( a~mtart = 'FD')
    AND b~stlan = 1.        "CCT53428
      AND b~stlan IN (1,2).    "CCT53428
      IF sy-subrc = 0.
       SORT it_mat by werks matnr.                                  "CCT53428
       DELETE ADJACENT DUPLICATES FROM it_mat COMPARING werks matnr."CCT53428
      SORT it_mat BY matnr werks stlan stlal  ASCENDING.                  "CCT53428
      DELETE ADJACENT DUPLICATES FROM it_mat COMPARING matnr werks stlan. "CCT53428
      SORT it_mat BY matnr werks stlan DESCENDING.                        "CCT53428
      DELETE ADJACENT DUPLICATES FROM it_mat COMPARING matnr werks.       "CCT53428
        SORT it_mat BY werks.
        LOOP AT it_mat into wa_mat.
          CLEAR : r_matnr.
          r_matnr-sign = 'I'.
          r_matnr-option = 'EQ'.
          r_matnr-low = wa_mat-matnr.
          APPEND r_matnr.
          AT END OF werks.
            CLEAR v_werks.
            v_werks = wa_mat-werks.
            CLEAR v_jobname.
            CONCATENATE 'WWACSD12' '_' v_werks INTO v_jobname.
            PERFORM f_open_job USING v_jobname.
            PERFORM f_submit_job.
            PERFORM f_job_close.
            REFRESH r_matnr.
          ENDAT.
        ENDLOOP.
      ELSE.
        WRITE / text-017.
      ENDIF.
    *&      Form  f_open_job
    Form to open the job with the particular job name
    FORM f_open_job USING v_jobname TYPE any.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname  = v_jobname
        IMPORTING
          jobcount = v_jobcount
        EXCEPTIONS
          OTHERS   = 8.
      IF sy-subrc NE 0.
        WRITE: /3 v_werks,
                11 text-008, v_jobname.
      ENDIF.
    ENDFORM.                                                    " f_open_job
    *&      Form  f_submit_job
    Form to submit the program (ZACC0014_COST_COLLECTORS_BDC) as job
    FORM f_submit_job.
      v_prog = text-016.
      SUBMIT (v_prog) WITH so_matnr IN r_matnr
                      WITH p_werks EQ v_werks
                      WITH p_date   EQ p_date                 "CCT51576
                      WITH ck_trg   EQ c_trg
                      TO SAP-SPOOL
                      SPOOL PARAMETERS v_params
                      WITHOUT SPOOL DYNPRO
                      USER sy-uname VIA JOB v_jobname NUMBER v_jobcount
                      AND RETURN.
      IF sy-subrc > 4.
        WRITE: /3 v_werks,
                11 text-009, v_jobname.
      ENDIF.
    ENDFORM.                    " f_submit_job
    *&      Form  f_job_close
    Form to close the job
    FORM f_job_close.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = v_jobcount
          jobname              = v_jobname
          strtimmed            = 'X'  "start immediately
        EXCEPTIONS
          cant_start_immediate = 1.
    Process various error conditions
      CASE sy-subrc.
        WHEN 0.
          MOVE v_jobname TO v_msg_string.
          CONDENSE v_msg_string.
          v_stringlen = STRLEN( v_msg_string ).
          WRITE ' created.' TO v_msg_string+v_stringlen.
          WRITE :/3 v_werks,
                  11 v_msg_string.
        WHEN OTHERS.
          MOVE v_jobname TO v_msg_string.
          CONDENSE v_msg_string.
          v_stringlen = STRLEN( v_msg_string ).
          WRITE 'create failed.' TO v_msg_string+v_stringlen.
          WRITE :/3 v_werks,
                  11 v_msg_string.
      ENDCASE.
    ENDFORM.                                   "f_job_close

  • Error in execute planning sequence variant in process chain

    Hi ,
    While creating an Execute planning sequence variant in process chain in Quality system , i am getting an error" variable variant not selected ' though i created a variable variant and selected it in execute planning seq variant.
    Transporting it from development system didnt work therefore i am trying to create it directly in Quality .
    Any idea what could be the issue.

    Hi,
    Variable variant can be saved for planning sequence in modeler and then cab be used in process chains.
    In process chain you can choose "Execute planning sequence"( separate process type) and add planning sequence with variant.
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/43/1d000c41130bd5e10000000a422035/frameset.htm]
    Thanks
    Pratyush

  • Using Planning Sequence in a Process Chain With input variants

    Hi,
    I have a COPY planning function which has multiple FROM and TO options like (From:Fiscal Year To Fiscal Year, From Version TO Version). In the layout they select the options for which they want to COPY and execute the function.
    How can I replicate the same approach in a process chain with the varaints, how can i create the FROM and TO variables in the process chain.
    Thanks
    Rashmi.

    Hi.
    You can save variable variant for planning sequence in modeler and then use it in process chain.
    In process chain you choose "Execute planning sequence" and add planning sequence with variant.
    All this if you using IP instead BPS.
    Regards.

  • "Set variable value" topic

    Hi evry!
    My vi sends some value of "cluster" type to RT-machine's vi by means of "Set variable (variant).vi", wich, in turn, answers with Error #2: Memory is Full!
    How can be that?
    Thanx in adv, guys!
    P.S.: All versions are 8.2.1.

    Hi Sharonoff,
    Thanks for contacting National Instruments.  I have been looking into your question a little more and I have some helpful links for you that I think will help you out.  This error is pretty self-explanatory in the fact that the system you are running the VI on is running out of memory.  The links attached below should give you some good guidelines on what to do with managing large data sets trying to avoid this error.  I would particularly pay attention to the article entitled "Managing Large Data Sets in LabVIEW."  However, you want to try and limit the size of the data in the cluster that you are sending to the RT-machine as it may not have a large amount of virtual memory that it can use to handle your data.  Please look over some of these documents and try out some of their methods.  If you have any more questions, reply back and we can go from there.  Thanks!
    http://zone.ni.com/devzone/cda/tut/p/id/3625
    http://digital.ni.com/public.nsf/allkb/CBEBDC18465​5FC8C8625724A00050854?OpenDocument
    http://digital.ni.com/public.nsf/websearch/C3C516C​11184AF3F862571B5006B46E1?OpenDocument
    http://digital.ni.com/public.nsf/websearch/BC911F0​893A4627586256BB10076E90C?OpenDocument
    http://zone.ni.com/devzone/cda/tut/p/id/3561
    Regards
    Noah R
    Applications Engineering
    National Instruments

  • KE28 Variants

    We have 31 KE28 variants and someone has to update the period values each month. We have a custom variable variant for dynamic date selection with the proper format but I do not see how to link the variable variant to the KE28 period selection parameter. If possible, I would like KE28 Actual and Reference periods to both default to the prior period.
    So my question is whether we can do one of the following:
    1) Default in previous period whenever KE28 is run.
           OR
    2) Find a way to save a month/year value in the From Period fields that are dynamic as part of the report variant.
    Any help is appreciated.
    Thanks,
    Tim

    Tim,
    I am sorry, but it is not my program to share.  However my basic request was:
    This transaction must allow an end-user to
    maintain variants, be it his own variants or
    for someone else (authorization checks are
    performed).
    The functionality has to remain similar to the
    standard one found in SM38.
    However, in addition to be able to work on a
    specific variant, the user must also be able
    to select multiple variants at the same time.
    One particular advantage that this transaction
    must provide compared to SM38 is to show on one
    screen all the variants created by a specific
    user, or all the variants from a specific program
    or list of programs.
    The programmer had just been to class and learned about a dialog transactions, which made this possible.
    We have 3 variations on this:
    1 - allows access to any variant and the ability to change it
    2 - allows access only to variatns that the user created or is "last change"
    3 - display only for any variant - with an ability to copy any of the variants for their own use.
    Hope this is of some use to you and that you understand not sending the program.
    Althea

  • How to display different Time Statement forms in ITS service PZ04

    Hi all,
    I am working on a underlyinge R/3 4.7 system and are working with standalone ITS and ESS 50.4. I am posting this question to find out if any of you has experience with my problem.
    The business wishes to use the ITS transation PZ04 standard and wish to be able to display different Time Statement forms in the transaction through customized variants for the report(RPTEDT00) that the PZ04 transaction executes. In the IMG it is posted that one variant has to be created called HRESS_TEDT00 and this works, but restricts the PZ04 transaction to always be called with this variant and therebye the same Time Statement form every time.
    I then by debugging found that the underlying ABAP code processed from SAP standard has a variable VARIANT that is hardcode to = HRESS_TEDT00.
    The question is: Is there anyway to setup the PZ04 transaction so that it can be dynamic decided which variant should be used, f.ex. from persons subarea from infotype 0001?
    Looking forward to here if anybody can help.
    Regards,
    Allan Brauer

    hi allan,
    cud u plz help me how to sort out this problem actually in mu company the same scenario is here need to be display pe51 form instead of standard hrforms.....
    plz help me how will i replace this "hrforms with pe51"..

  • Next payment run parameter in automatic payment program

    hi gurus
    why next payment run date must be given in parameters tab of automatic payment program
    thanks and regards
    ramesh

    Dear,
    yes but You should create a background job of F110S, where You define a dynamic date variable variant as per Your requirement,  by SE36.
    I hope this helps.
    Mauri

  • Value selected in Listbox of Selection screen

    Hi,
    I'm facing a problem where i'm not able to get the value selected in a listbox on selection screen.
    TYPE-POOLS : vrm.
    DATA : var_itab TYPE vrm_values.
    DATA : var_wa LIKE LINE OF var_itab.
    DATA:  count TYPE i.
    Parameters: variant(14) TYPE c AS LISTBOX VISIBLE LENGTH 14.
    INITIALIZATION.
      count = 1.
      name = 'variant'.
      SELECT variant FROM varid INTO var_wa-text
                     WHERE report = 'ZP_XXXXXX'.
        var_wa-key = count.
        APPEND var_wa TO var_itab.
        count = count + 1.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = var_itab.
    START-OF-SELECTION.
    WRITE: VARIANT.
    Here in Start of selection, the value selected in listbox is not getting written. In fact variable VARIANT does not contain any values.
    Please help,
    Thanks in advance,

    Hi Srinivas,
    Thanks for ur reply,
    I tried it, it doesnt work.
    In Selection screen, it is showing values in listbox.
    But i'm not able to catch the value selected there.
    If i do:
    WRITE: VARIANT.
    in start-of-selection.
    VARIANT is blank.
    Thanks,

  • Next Payment run in F110

    Hi
    Can we make 'next payment date' in F110 as default with 'Posting date +1' & non editable.
    Thanks.

    Dear,
    yes but You should create a background job of F110S, where You define a dynamic date variable variant as per Your requirement,  by SE36.
    I hope this helps.
    Mauri

  • Unable to edit a workbook

    Hi there,
    I have a problem with our workbooks. I opened the workbook and made changes (formatting and adding new columns). Then I saved. When I close and workbook and re-opened it again, the changes were all gone. It reverted back to its unchanged version. What cound be causing this problem?
    Thanks in advance

    HI,
    Here;s what Im doing:
    1. Launch Business Explorer -> Analyzer
    2. Open workbook
    3. Then I enter my login details
    4. Select the desired workbook and click on the open button
    5. Enter values for the variables (variant)
    6. Make the changes on the workbook
    7. Click on the diskette icon on Bex Explorer
    8. Click on the Save Workbook
    9. Close
    When I opened the workbook again, all the changes are not reflected. Im wondering what's causing it?
    Thanks

Maybe you are looking for

  • Is there an app for the ipad that will allow you to access your mac.

    Is there an app for the ipad that will allow you to access your mac via wifi or cell network.

  • How to re-read metadata from file in Photoshop Elements 11 Organizer?

    I am currently testing Lightroom 4 and Photoshop Elements 11 as a replacement for my old softwarestack due to a new DSLR. In Lightroom I can read and write metadata directly from/to file. In Photoshop Elements Organizer I have found an option to writ

  • MKS Toolkit 9.2    32 bit or 64 bit  install on Windows Server 2008 64 bit

    Hi Hussein, I have single node installation with the below 12.1.3 is running on Windows Server 2008 (32 bit) with 11.1.0.7 database (32 bit). We would like to split the DB Tier to 64 bit Machine and convert the database from 32bit yo 64 bit database

  • Cyrillic font in Chromium

    Please help me get Cyrillic fonts to appear in Chromium. I've been trying to figure this out on my own for a while, but now I'm at wit's end... CHROME RUNNING ON WINDOWS 7: http://i1122.photobucket.com/albums/l53 - 7a0d5e.png CHROMIUM RUNNING ON ARCH

  • ADF search from multiple database

    JDev 11.1.1.3 ADF BC & ADF Faces I am having a requirement to build advance search functionality, wherein the result data will come from multiple databases. Let's say I have two different database DB1 and DB2. On click of 'search' button I need to qu