How can i set dynamice for week on Selection screen..pls help me..Urgent

Hi..All
please Help me .. i am very  confused..
i need to set a varient for week which is dynamic on selection screen.
b) Week from current week to current week + 2. (<b>Dynamic selection)</b>how can i set dynamice for week on Selection screen,,
how can i do this..i am alrady set dynamice variant for Date.. there is option for D.. but in case of week there is a no option.
pls help me..urgent
thamks in advance.
mayukh

Hi,
I think the way out is use the dynamic select option while setting up the varinat and use sy-datum to sy-datum+9 which should essentially serve the purpose.
While saving the variant, for that particular date field check the Selection variable checkbox, then Choose D
option and then choose current days + or - option from there.
Rgds,
HR

Similar Messages

  • How Can i SEt Dynamic Variant For WEEK on SELECTION Screen.pls help me..

    <b>Hi ALL..
    Pls Help Me for this Problem..i am very confused how can i do that...plese tell me proper process..
    i  want set Dynamice Varient for WEEK on Selection screen..
    I have ALrady SET Dynamice Varient for DATE on Selection Screen.ther isd option is D...but in case of WEEK there is a no option...
    Plese help me..
    thaks in advance..
    pls help me..</b>

    Hello,
    Define your select-option in TVARV (assume Z_THISWEEK). And use a program like:
    DATA:
      zlv_week TYPE KWEEK.
    call function 'DATE_GET_WEEK'       
       exporting date = syst-datum
       importing week = zlv_week.
    SELECT SINGLE *
          FROM tvarvc
         WHERE name = 'Z_THISWEEK'
           AND type = 'S'
           AND numb = '0000'.
    tvarvc-low = zlv_week.
    IF syst-subrc <> 0.
        tvarvc-name     = 'Z_THISWEEK'.
        tvarvc-type     = 'S'.
        tvarvc-opti     = 'EQ'.
        tvarvc-sign     = 'I'.
        tvarvc-numb     = '0000'.
        insert tvarvc.
    ELSE.
      update tvarc.
    ENDIF.
    Regards,
    John.

  • How can i set a Title to Parameters(Selection-Screen)?

    Hi,
    i have a Selection-Screen with two Parameters. Both Parameters should be have an Title.
    But how can I set a Title two this Parameters? Is there existing any options????
    For example, the Parameters "I_WRBTR" and "I_NBDOCS" needs two Title´s.
    Every Parameter must have a title, but how can I realize this???
    *I have know only a title for "IWRBTR" but i need also a title for "I_NBDOCS"*_.
    DATA: FIELD_BUKRS(10).
    SELECTION-SCREEN BEGIN OF SCREEN 0100.
      SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
         SELECT-OPTIONS SEL_BUKR FOR FIELD_BUKRS OBLIGATORY.
         SELECTION-SCREEN BEGIN OF LINE, COMMENT (25) text-005 FOR FIELD IWRBTR_, POSITION 33.
             PARAMETERS: I_WRBTR(10),
                                      I_NBDOCS(3).
         SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN END OF SCREEN 0100.
    Thanks for Helps.
    ETN

    Hi,
    try this short example:
    DATA: FIELD_BUKRS(10).
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK WITH FRAME TITLE T_BLOCK.
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK1 WITH FRAME TITLE T_BLOCK1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (29) T_SEL_BU.
    SELECT-OPTIONS SEL_BUKR FOR FIELD_BUKRS OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK BLOCK1.
    SELECTION-SCREEN BEGIN OF BLOCK BLOCK2 WITH FRAME TITLE T_BLOCK2.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (32) T_WRBTR.
    PARAMETERS: I_WRBTR(10).
    SELECTION-SCREEN COMMENT 50(15) T_NBDOCS.
    PARAMETERS: I_NBDOCS(3).
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK BLOCK2.
    SELECTION-SCREEN END OF BLOCK BLOCK.
    INITIALIZATION.
      T_BLOCK  = 'parameter'.
      T_BLOCK1 = '1. parameter'.
      T_BLOCK2 = '2. parameter'.
      T_SEL_BU = 'Buchungskreis'.
      T_WRBTR  = 'Parameter wrbtr'.
      T_NBDOCS = 'Parameter nbdocs'.
    Regards, Dieter

  • How can i connect the PO to Document No...pls help it urgent!

    Hi gurus!
    How can i connect the PO no. to Document NO. pls specify the tables and fields.. tnx!
    Regards,
    Mackoy

    Hi,
    the document no. that is attached to PO at tcode <b>ME23N</b>..what should i do?
    Tnx!
    Regards,
    Mackoy

  • How can i set password for a backup?

    ::I am using 10g xe
    I am gettin gbackup through RMAN, how can i set password for each backup? I want to protect my backup so that no one other could use it if he copies the backup files.
    Faheem

    Just use "SET ENCRYPTION ON IDENTIFIED BY password ONLY" command in your RMAN scripts. Look at the advanced backup manual for details: http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmbackp006.htm#sthref632
    Daniel

  • HT1338 How can i set password for my folder?

    How can i set a password for my folder?

    Mac OS X does not natively include a method for passwording only selected folders. You can either get a third-party utility such as Knox (from AgileBits) or you can create an encrypted disk image (using Disk Utilty) and keep the files you wish protected in that disk image.
    Regards.

  • How can I set destination for archived logs?

    I would like to know:
    how to set destination for archived logs?
    how to identify the init.ora that is used for my database?
    With rman using compressed backupset by default and and making
    backup database;
    What does it backup exactly?

    Another thing I am wondering, when I make a backup with rman : backup database.
    It saves the backups in the directory autobackup from the flash_recovery_area but it seems that it only saves the data files and the control files.Isn't there a way to sava archived logs files, control files, datafiles in a single backup?
    In fact I would like to make a full backup using rman on sunday of everything and a incremental backup all days of the week how can I acomplish this with a retention of 7 days?

  • How can I set DPI for a document in illustrator?

    I'm designing a user interface for iPad (Resolution: 1024x768, DPI:132). Setting the resolution is a piece of cake but when I change the ruler unit to Centimeters, it shows the screen about 36x27cm which is not right (iPad screen is 24.3x19cm).
    Illustrator calculates these lengths based on the DPI. But when creating a new document the only available DPI's are: 72, 150, 300 (File > New > Raster Effect). I searched for the answer on this forum and googled it and looked into the help but couldn't find a satisfying answer. I know that Illustrator is a vector design program but there must be a way to set the DPI to an arbitrary value.
    How can I have a 1024x768px artboard in Illustrator that is 24.3x19cm? (DPI=132)

    Alex,
    only when I'm printing or saving the image for the web, Illustrator will ask me the actual width.
    Almost. Illustrator won't "ask you for the width." As with any program, when you export a vector graphic to a raster image, you have the opportunity to specify its resolution, in number of pixels.  Illustrator tries to "simplify" (and thereby often confuses) this process by providing different interfaces for the same thing. The so-called "Save For Web" interface is just another way to export a raster image (and other web-centric things, like slicing). The settings available (or at least the ones most prominate) differ between the straightforward Export dialog and the Save For Web dialog.
    My question is: how illustrator calculates these measures?
    Again: When Illustrator's rulers are set to "Pixels," they are really set to points. A point measures 1/72 inch. So Illustrator assumes a "pixel" is scaled to measure 1/72 inch, even though it may not be in a particular raster image object you have on the page.
    But when you export as a raster image (in other words, rasterize the artwork), you don't care what those pixels are scaled to due to the actual, physical, hardware dimensions of the device's monitor pixels (so-many centimeters by so-many centimeters). Regardless of whether the device's hardware pixels are gigantic or microscopic, you just care how many of them there are. So long as you export your finished artwork rasterized to that number of pixels, it will effectively be scaled (in terms of actual measure) by whatever device it is displayed on, becasue the device is going to "turn on" a monitor pixel for each pixel in your image.
    In other words, when designing purely for electronic displays (as opposed to printing), forget all about PPI, or DPI, which are nothing but scale factors, and forget about the actual measure (centimeters x centimeters, inches by inches) of the monitor.
    If I display your 1024 x 768 image in a web browser on my 15-inch-diagonal Toshiba laptop, your image is going to occupy 1024 x 768 of my monitor's pixels.
    If I display your 1024 x 768 image in a web browser on my 10-inch-diagonal Acer netbook, your image is going to occupy 1024 x 768 of my monitor's pixels, and it will display at a smaller actual size than it does on my Toshiba, because the Acer's monitor pixels are smaller than the Toshiba's monitor pixels.
    But even though the image's actual measure is smaller on the Acer, and even though your image occupies the exact same number of monitor pixels on both the Acer and the Toshiba, I will have to do some scrolling on the Acer because its monitor has fewer hardware pixels.
    So if I'm designing images to fit neatly on my Acer without the need for scrolling, I care about its screen size in terms of number of hardware pixels, not in terms of actual measure (centimeters or inches).
    I want to be able to set the lines and curves in terms of pixels.
    Because Illustrator considers a pixel to be a particular measure (1/72 inch), work with your rulers set to either the bogus PIxels or to Points (which, in Illustrator, is the same thing). Forget about the dimensions of a device screen. It doesn't matter.
    If you want to also spec type in terms of "pixels" you can also (pointlessly) set your General Prefs to use the bogus Pixles as the "Unit Of Measure". But this is pointless because in Illustrator, a so-called "Pixel" is, in fact a point already, and Points is the default UOM for type. Either way, you have to realize that any measure for type (using "Pixels" or Points) is a measure of the font's em-square, not the measure of the actual glyphs. So setting your type to "9 Pixels" doesn't mean the type characters are going to occupy 9 pixels in height.
    But you can proceed to specify line weights, box sizes, etc., etc, in terms of ruler units (bogus pixels or legitimate points).
    Alternatively, if you want, you can set your rulers to Centimeters. And then as you draw your boxes and set your stroke weights, you can specify them in terms of Points or "Pixels" by just typing "pts" or "px" after the measures you key into the various dimension fields.
    But after all this is said and done, the point you're missing is still this: All that means nothing if you don't export the resulting images to the number of pixels that you want them to occupy on the device you are designing for. In other words, you can work with your Illustrator rulers set to "Pixels" all day long; but if you then export the artwork to a raster format using a Pixels-Per-Inch setting other than 72, It won't be the right size, because Illustrator still thinks a Pixel measures one point.
    So regardless of how you have your rulers set while working, it is just simpler (and more legitimately meaningful) to export your raster images in terms of number of pixels (N pixels x n pixels), not by PPI. That brings us full-circle right back to where your question started: There is no document-wide PPI for an Illustrator file.
    But what you have to understand is this: If your design includes already-rasterized objects, the number of actual pixels included in each of those raster objects is entirely independent of whatever Illustrator's rulers say they "measure" in "Pixels". That is very important. Because if you use as part of your design a raster image that is scaled to anything other than 72 ppi, and/or that image does not align to a point-size increment of Illustrator's grid, then when you export your final product, that image is going to be re-rasterized to whatever PPI you export, based on its on-page position and the quality of that image is going to be compromized. That's why it's important to understand that "Pixels" is bogus as a unit of measure in a program like Illustrator.
    In pursuit of web- and device-centric creative markets, Adobe continues to add confusion-generating "conveniences" to Illustrator. For example, to workaround Illustrator's problematic antialiasing, version CS5 added a feature called Align To Pixel Grd which causes vertical and horizontal strokes to align to whole-"pixel" increments, to avoid antialiasing of those edges.
    There are also probably templates in your AI installation (depending on version) already set up for mobile devices, and there's the whole "Device Central" online thing, if you're inclined to use that kind of thing. So look up and read about those features.
    JET

  • How can i set password for my n8?

    I'm sure it's easy but i didn't know how....can you also tell me how can set my picture to be save on the Mass storage .....
    Thank you
    Solved!
    Go to Solution.

     The default saving location is the Mass storage of the phone, however as Aspergerguy said if you have a micro sd card installed you can choose that as default saving location.
     There is a downloadable app called MazeLock where you need to draw a pattern on the screen to unlock the phone. If you like that sort of thing you can download it from HERE.
     I did use it for a bit, but found it annoying to unlock the phone every time I wanted to use it.
    Cheers.
    Ray

  • I have created a newsletter in indesign cs4 how can I set zooms for each article for the user

    I have created a e-newsletter in Indesign. I have successfuly saved it as a SWF then as a PDF from acrobat.
    The problem is that when the user zooms in the resolution is not good.
    How can I let the user zoom in to read each article. Would I create buttons with zoom settings for each article. If this is the case do I do it in Indesign or Flash and can I still save it as a PDF file and it will keep the interactivity?
    I would greatly appreciate any help with this issue. It is driving me mad trying to get the information I need.
    Thank you

    Hi Bob
    Dont know what you mean by deleting my signature in the forum. Sorry its my
    first time using a forum.
    So just to confirm if I want a user to zoom in on an article I can't do it
    in Indesign or Flash.
    cheers
    PAMELA
                                                                                    BobLevine                                                    
                 <[email protected]                                            
                 >                                                          To
                                           pamela hettrick                    
                 17/08/2010 14:09          <[email protected]>  
                                                                            cc                                                                               
    Please respond to                                     Subject
                 clearspace-143433         I have created a        
                 1873-767197-2-305         newsletter in indesign cs4 how can 
                 [email protected].         I set zooms for each article for   
                     adobe.com             the user                                                                               
    You don't. There are third party solutions available for that. Sorry but I
    don't have any links handy right now.
    And please delete your signature...it's making a mess of the forum display
    of your posts.
    Bob

  • How can i set resolution for monitor

    The maximum resolution for my monitor is not shown in the preferences.
    How can I make my macBook Pro use the display in the highest resolution.

    What model MacBook Pro and what video format? Are you talking about the internal display or an external display? 1600 x 1200 is the old style 4:3 NTSC video format and 1920 x 1200 is today's widescreen 16:10 format. They're two different animals. The native resolution and what your notebook or external display can handle or adapt to are not necessarily the same thing.

  • How can i set image for any item in windows

    i want to make button iconic in windows how can i do that in oracle 9i forms

    First be aware that in forms .ico cannot be used for icons,
    by default it is gif
    so if you have an small gif file for your button you can alter the button properties in the property palette so that the button should be iconic (=> put to yes) and in the next filed iconname +put the name of the gif file without the extensoin (case sensitive)
    Put this gif file in the icons/ path directory and your button will display the icon.
    if you want more to know on the virtual path icons/ search this or the reports forum for virtual-path . you'll find plenty about it.
    Hope it helps
    erwin

  • How can I add a new field in selection screen for this report

    *& Report  ZGS_BARKODLA_HIZLI_GIRIS
    report  zgs_barkodla_hizli_giris.
    tables: mara,
            mseg,
            mch1,
            *mch1,
            mkpf,
            mchb ,
            makt.
    type-pools: esp1.
    data: i_message_tab  type esp1_message_tab_type,
          wa_message_tab type esp1_message_wa_type ,
          sc_count type i.
    ALV
    type-pools: slis, kkblo.
    data: gs_layout   type slis_layout_alv                     ,
          gt_fldcat   type slis_t_fieldcat_alv with header line,
          gt_header   type slis_t_listheader   with header line,
          gt_sortin   type slis_t_sortinfo_alv with header line,
          g_repid     like sy-repid                            .
    define add-fieldcat.
      gt_fldcat-fieldname     = &1.
      gt_fldcat-ref_tabname   = &2.
      gt_fldcat-seltext_s     = &3.
      gt_fldcat-seltext_m     = &3.
      gt_fldcat-seltext_l     = &3.
      gt_fldcat-reptext_ddic  = &3.
      gt_fldcat-ddictxt       = 'M'.
      append gt_fldcat.
      clear  gt_fldcat.
    end-of-definition.
    types: begin of titab,
            sel   type xfeld,
            matnr type matnr,
            maktx type maktx,
            charg type charg_d,
            menge type menge_d,
            erfmg type erfmg,
           end of titab.
    data : witab type titab.
    data : itab type table of titab.
    data : ok_code type sy-ucomm.
    controls: tc_itab type tableview using screen 0100.
    data: gv_header like bapi2017_gm_head_01,
          gv_code   like bapi2017_gm_code.
    BAPI export parameters
    data: gv_headret type bapi2017_gm_head_ret,
          gv_matdoc  type bapi2017_gm_head_ret-mat_doc,
          gv_matyear type bapi2017_gm_head_ret-doc_year.
    data : lv_objek like inob-objek .
    data : ls_inob  like inob .
    data : imseg type ty_t_mseg.
    data : wmseg type mseg.
    data : answer.
    data : count type i.
    data : v_atinn type atinn.
    BAPI movement details
    data: i_goodsmvt_items type bapi2017_gm_item_create occurs 0
          with header line.
    data: i_return type bapiret2 occurs 0 with header line.
    start-of-selection.
    call function 'CONVERSION_EXIT_ATINN_INPUT'
       exporting
         input  = 'Z_ORAN'
       importing
         output = v_atinn.
      call screen 100.
    *&      Module  status_0100  OUTPUT
    module status_0100 output.
      set pf-status '100'.
      set titlebar '100'.
      mseg-werks = 1000.
      mseg-umwrk = 1000.
    **added
      sc_count = sc_count + 1.
      if sc_count eq 1.
        mseg-bwart = 313.
      endif.
      mkpf-budat = sy-datum.
    **added
      describe table itab lines tc_itab-lines.
    endmodule.                 " status_0100  OUTPUT
    *&      Module  user_command_0100  INPUT
    module user_command_0100 input.
      data field(20).
      data: line_t like sy-index.
      data: lines  like sy-index.
      data line_count like sy-loopc.
      data: begin of cols,
             screen      like screen,
             index       type i,
             selected(1) type c,
             vislength   like icon-oleng,
             invisible(1) type c,
           end   of cols.
      case ok_code.
        when 'DELE'.
          delete itab where sel eq 'X'.
        when 'ENTE'.
          check *mch1-charg is not initial.
          read table itab into witab with key charg = *mch1-charg.
          if not sy-subrc is initial.
            witab-charg = *mch1-charg.
            select single matnr from mch1 into witab-matnr
                               where charg eq witab-charg.
            if not syst-subrc is initial.
              set cursor field '*MCH1-CHARG'.
              message e115(12) with *mch1-charg.
            endif.
            select single maktx from makt into witab-maktx
                               where matnr eq witab-matnr
                                 and spras eq syst-langu.
            witab-erfmg = 1.
            concatenate witab-matnr witab-charg into lv_objek .
            clear ls_inob .
            select single * into ls_inob
                            from inob
                            where objek = lv_objek and
                                  klart = '023'    and
                                  obtab = 'MCH1' .
            select single atflv from ausp into witab-menge
                     where objek = ls_inob-cuobj and
                           klart = '023' .
            append witab to itab.
    **added
            clear *mch1-charg.
    **added
          endif.
        when 'SAVE'.
          if mkpf-budat is initial.
            set cursor field 'MKPF-BUDAT'.
            message e055(00).
          endif.
          if mseg-lgort is initial.
            set cursor field 'MSEG-LGORT'.
            message e055(00).
          endif.
          if mseg-umlgo is initial.
            set cursor field 'MSEG-UMLGO'.
            message e055(00).
          endif.
          if mseg-bwart is initial.
            set cursor field 'MSEG-BWART'.
            message e055(00).
          endif.
          refresh imseg.
          loop at itab into witab.
            move-corresponding witab to wmseg.
            append wmseg to imseg.
          endloop.
          call function 'ZMM_POPUP_WITH_DATA'
            exporting
              imseg  = imseg
            importing
              answer = answer.
          if answer eq 'Y'.
            perform create_goods_movement.
          endif.
        when 'P--'.
          clear ok_code.
          perform paging using 'P--'.
          set cursor field 'MARA-MATNR' line 1.
        when 'P-'.
          clear ok_code.
          perform paging using 'P-'.
          set cursor field 'MARA-MATNR' line 1.
        when 'P+'.
          clear ok_code.
          clear lines.
          perform paging using 'P+'.
          set cursor field 'MARA-MATNR' line 1.
        when 'P++'.
          clear ok_code.
          perform paging using 'P++'.
          set cursor field 'MARA-MATNR' line 1.
        when 'SORA'.
          read table tc_itab-cols into cols with key selected = 'X'.
          if sy-subrc is initial.
            field = cols-screen.
            field = field+5(10).
            sort itab ascending by (field).
          endif.
        when 'SORZ'.
          read table tc_itab-cols into cols with key selected = 'X'.
          if sy-subrc is initial.
            field = cols-screen.
            field = field+5(10).
            sort itab descending by (field).
          endif.
        when 'PRNT'.
          perform write_alv.
      endcase.
    endmodule.                 " user_command_0100  INPUT
    *&      Module  read_table  OUTPUT
    module read_table output.
      mara-matnr = witab-matnr.
      makt-maktx = witab-maktx.
      mch1-charg = witab-charg.
      mseg-menge = witab-menge.
      mseg-erfmg = witab-erfmg.
      line_count = sy-loopc.
    endmodule.                 " read_table  OUTPUT
    *&      Module  write_table  INPUT
    module write_table input.
      witab-matnr = mara-matnr.
      witab-maktx = makt-maktx.
      witab-charg = mch1-charg.
      witab-menge = mseg-menge.
      witab-erfmg = mseg-erfmg.
      modify itab from witab index tc_itab-current_line.
    endmodule.                 " write_table  INPUT
    *&      Module  exit  INPUT
    module exit input.
      leave to screen 0 .
    endmodule.                 " exit  INPUT
    *&      Form  create_goods_movement
    form create_goods_movement .
      clear : gv_header, i_return[], i_goodsmvt_items[].
      gv_header-doc_date = gv_header-pstng_date = mkpf-budat.
      gv_header-pr_uname = sy-uname.
    GM with reference to reservation
      loop at itab into witab.
        i_goodsmvt_items-material   = witab-matnr.
        i_goodsmvt_items-entry_qnt  = witab-erfmg.
        i_goodsmvt_items-entry_uom  = 'ST'.
        i_goodsmvt_items-move_type  = mseg-bwart.
        i_goodsmvt_items-plant      = mseg-werks.
        i_goodsmvt_items-stge_loc   = mseg-lgort.
        i_goodsmvt_items-move_plant = mseg-umwrk.
        i_goodsmvt_items-move_stloc = mseg-umlgo.
        i_goodsmvt_items-batch      = witab-charg.
        append i_goodsmvt_items.
      endloop.
    find BAPI processing transaction
      if gv_code is initial.
        perform determine_bapi_code using mseg-bwart
                                 changing gv_code.
      endif.
      call function 'BAPI_GOODSMVT_CREATE'
        exporting
          goodsmvt_header  = gv_header
          goodsmvt_code    = gv_code
        importing
          goodsmvt_headret = gv_headret
          materialdocument = gv_matdoc
          matdocumentyear  = gv_matyear
        tables
          goodsmvt_item    = i_goodsmvt_items
          return           = i_return[].
    cancel blocking process
      loop at i_return where type eq 'E' or type eq 'A' or type eq 'X'.
        exit.
      endloop.
      if sy-subrc ne 0.
        refresh i_message_tab.
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
        wa_message_tab-msgid = 'M7'..
        wa_message_tab-msgty = 'S'.
        wa_message_tab-msgno = '060'.
        wa_message_tab-msgv1 = gv_matdoc.
        wa_message_tab-msgv2 = ''.
        wa_message_tab-msgv3 = ''.
        wa_message_tab-msgv4 = ''.
        append wa_message_tab to i_message_tab.
      else.
        refresh i_message_tab.
        call function 'BAPI_TRANSACTION_ROLLBACK'.
    write a message as there is an unexpected error.
        loop at i_return.
          wa_message_tab-msgid = i_return-id.
          wa_message_tab-msgty = i_return-type.
          wa_message_tab-msgno = i_return-number.
          wa_message_tab-msgv1 = i_return-message_v1.
          wa_message_tab-msgv2 = i_return-message_v2.
          wa_message_tab-msgv3 = i_return-message_v3.
          wa_message_tab-msgv4 = i_return-message_v4.
          append wa_message_tab to i_message_tab.
        endloop.
      endif.
      call function 'C14Z_MESSAGES_SHOW_AS_POPUP'
        tables
          i_message_tab = i_message_tab.
    endform.                    " create_goods_movement
    *&      Form  determine_bapi_code
    form determine_bapi_code using p_bwart type bwart
    changing p_code type bapi2017_gm_code.
      data: lt_t158b type table of t158b with header line.
      clear p_code.
      select tcode from t158b into corresponding fields of table lt_t158b
      where bwart eq p_bwart.
      loop at lt_t158b.
        select single gmcode from t158g into p_code
        where tcode eq lt_t158b-tcode.
        if sy-subrc is initial.
          exit.
        endif.
      endloop.
    endform. " determine_bapi_code
    *&      Form  paging
    form paging using code.
      data: i type i,
            j type i.
      case code.
        when 'P--'. tc_itab-top_line = 1.
        when 'P-'.
          tc_itab-top_line = tc_itab-top_line - line_count.
          if tc_itab-top_line le 0.
            tc_itab-top_line = 1.
          endif.
        when 'P+'.
          i = tc_itab-top_line +  line_count.
          j = tc_itab-lines -  line_count + 1.
          if j le 0.
            j = 1.
          endif.
          if i le j.
            tc_itab-top_line = i.
          else.
            tc_itab-top_line = j.
          endif.
        when 'P++'.
          tc_itab-top_line = tc_itab-lines - line_count + 1.
          if tc_itab-top_line le 0.
            tc_itab-top_line = 1.
          endif.
      endcase.
    endform.                    " paging
    *&      Form  write_alv
    form write_alv .
      perform find_list_header.
      perform fill_field_cat.
      perform fill_sortinfo.
      g_repid = sy-repid.
      gs_layout-colwidth_optimize = 'X'.
      gs_layout-zebra             = 'X'.
      answer = 'Y'.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_buffer_active        = ''
          i_callback_program     = g_repid
          i_save                 = 'A'
        i_callback_top_of_page = 'TOP_OF_PAGE'
          is_layout              = gs_layout
          it_fieldcat            = gt_fldcat[]
         it_sort                = gt_sortin[]
        tables
          t_outtab               = itab[].
    endform.                    " write_alv
         Form  find_list_header
    form find_list_header.
      data : v_datum(10),
             v_datlo(10),
             v_dathi(10),
             v_uzeit(8).
      clear: gt_header, gt_header[].
      gt_header-typ  = 'H'.
      gt_header-info = sy-title.
      append gt_header.
      clear gt_header.
      gt_header-typ  = 'S'.
      gt_header-key  = 'Çal&#305;&#351;t&#305;rma Zaman&#305; : '.
      write syst-datum to v_datum.
      write syst-uzeit to v_uzeit.
      concatenate v_datum '/' v_uzeit into gt_header-info.
      append gt_header.
    endform.                    " find_list_header
         Form  fill_field_cat
    form fill_field_cat.
      refresh gt_fldcat.
      clear   gt_fldcat.
      gt_fldcat-key = 'X'.
      add-fieldcat 'MATNR'  'MARA' ''.
      add-fieldcat 'MAKTX'  'MAKT' ''.
      add-fieldcat 'CHARG'  'MSEG' ''.
      gt_fldcat-do_sum = 'X'.
      add-fieldcat 'MEINS'  'MARA' 'Olcu Birimi '.
      gt_fldcat-do_sum = 'X'.
      add-fieldcat 'ERFMG'  'MSEG' 'Adet'.
    endform.                    " fill_field_cat
         Form  fill_sortinfo
    form fill_sortinfo.
      gt_sortin-up            = 'X'.
      gt_sortin-fieldname     = 'MATNR'.  append gt_sortin.
    endform.                    " fill_sortinfo
         Form  top_of_page                                              *
    form top_of_page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          i_logo             = 'ZKUTAS'
          it_list_commentary = gt_header[].
    endform.                    " top_of_page

    HI,
    if it is a normal report program then you can directly create a Selection screen field.
    After the Type-pool you can use Parameters or Select-options to create the selection screen field..
    If it is a Modulpool program then you can create a selection scren field like
    SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.
    PARAMETERS: p1(10) TYPE c.
    SELECTION-SCREEN END OF SCREEN 1100.
    defines a selection screens – 1100 – as subscreens.
    The next screen number of screen 100 is 100 (statically-defined).
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      CALL SUBSCREEN area INCLUDING sy-repid number.
    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
      CALL SUBSCREEN area.
      MODULE user_command_0100.
    look at the below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm
    Regards
    Sudheer

  • How Can I Import Primary contacts in new application? Pls Help...!

    Hi All,
    I am Importing Company Contacts from one SOD system to another SOD application (Copy of the earlier SOD). Can anyone tell me how can I import Primary Contact value?
    Company Contacts are successfully Imported but Primary contact checkbox is not set for anyone, Pls let me know if there any way to import that?
    Regards,
    Abhay

    Abhay, the first contact imported for an account will be the primary contact. There is not a separate import to indicate the primary contact.

  • How can i put mandatory fields in my selection screen

    I am having Sales Office,Sold to Party,Sales document Number,Sales Group,Date of Creation,Name Of The Person Who Creat and Short Text For Sales Order in my selection scrren.How can i put sales office and sold to party fields manadatoty input fields at selection sceen.

    hi,
    Use obligatory keyword while you are declaring the fields of selection screen.
    Example for the same is :
    Obligatory
    e.g Parameters p_id like vbak-vbeln obligatory
          Select-options s_vbeln for vbak-vbeln obligatory
    I hope this will solve your problem.
    Thanx.

Maybe you are looking for