System generated value for a field and incrementing (using module pool pro)

Hi,
I'm getting system generated value for a field and incrementing (i.e done by coding) when i'm saving the screen or transaction (which is created using module pool programming) while modifying, saving its working fine, but when i'm going out of the screen or exit n again i start the screen (with some ztransco) the value for the field again starting from 0 so i want to start from the same value for a field where we exit or got out from the screen n incremented respectively while saving the screen,
Thanks & Regards,
MS
Edited by: Rob Burbank on May 4, 2010 10:40 AM

Search the forum for number range objects.
Rob

Similar Messages

  • Value for customized fields didn't get copied to back end system

    Hi,
    We are in SRM 4.0 and using extended classic scenario.
    We have defined two customized fields in account assignment tab in shopping cart and SRM Po and also in back end PO.
    SRM POs are having values for the field but while transferring the Po details to back end system, for some of the line items of the Po the entries are missing in back end system.
    Problem is only with few line items of the PO.
    Have tried with FM like BBP_PD_PO_TRANSFER_EXEC  and BBP_PD_SC_RESUBMIT, but it is not transfering the values to back end.
    Is there any other way to push the missing values to back end system.
    Please advise.
    Thanks.

    Sk,
    Table adjustment has to be done accordingly. Get in touch with your Basis team.
    Thanks.

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • Default value for a field in Purchase order

    I want that while creating purchase order system should suggest one value for the field ' prior vendor ' in retail tab. I don't want to use user exit. Can anybody help?

    Hi,
    if that button is clicked then give the values in the work area of  table control and then append it to the table control
      in pai of the screen.
      if r_rad eq 'X'.
        fs_tab = ur value.
    append fs_tab to it_tab.
    endif.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 13, 2008 3:39 PM

  • Permitting user to choose value for a field only from F4

    Hi all,
       I have the following requirement in table maintenance generator.
       There is a custom field in the Z table for which table maintenance is generated to which a search help is attached.
       Now in the maintenance screen(SM30) i get a F4 value help for this field and also user can input values in this field. But the requirement is that the user should be able to select values only from F4 and should not be able to input any values.List box is not accepted.
    Thanks & Regards,
    Shafiq

    Hi Jon,
       Thank you once again. The issue is solved using the 'DYNP_VALUES_UPDATE' function module.
    I will put the code here for others to refer.
    ****ON THE SCREEN FLOW LOGIC*****
    PROCESS ON VALUE-REQUEST.
      FIELD /rb05/wwr_cr_t-mvgr4 MODULE value.  "Field on which F4 is required
    ****MODULE IMPLEMENTATION********
    *&  Include           /RB05/LYBW_WWRTTTI01
      DATA:
        l_fldval            LIKE help_info-fldvalue,
        l_repid             LIKE sy-repid,
        l_repid1            LIKE d020s-prog,
        l_dynnr             LIKE sy-dynnr,
        l_dynnr1            LIKE d020s-dnum,
        lt_return           LIKE ddshretval OCCURS 1,
        ls_return           LIKE ddshretval,
        ls_dynpread         LIKE dynpread,
        lt_dynpread         LIKE dynpread OCCURS 1,
        cnt                 TYPE i VALUE 0.
    MODULE value INPUT
      MODULE value INPUT.
        GET CURSOR LINE cnt.
        l_repid = sy-repid.
        l_dynnr = sy-dynnr.
        l_repid1 = sy-repid.
        l_dynnr1 = sy-dynnr.
        CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
          EXPORTING
            tabname           = space
            fieldname         = space
            searchhelp        = '/B05/OWWRW58'
            shlpparam         = '/B05/S_WWRW58'
            dynpprog          = l_repid
            dynpnr            = l_dynnr
            dynprofield       = '/RB05/WWR_CR_T-MVGR4'
            stepl             = 0
            value             = l_fldval
            display           = 'F'   "Force
          TABLES
            return_tab        = lt_return
          EXCEPTIONS
            field_not_found   = 1
            no_help_for_field = 2
            inconsistent_help = 3
            no_values_found   = 4
            OTHERS            = 5.
        IF NOT sy-subrc IS INITIAL.
          MESSAGE s398(00) WITH 'Call to Searchhelp failed'
            space space space.
          EXIT.
        ENDIF.
        CLEAR : ls_dynpread, lt_dynpread, ls_return.
        BREAK-POINT.
        READ TABLE lt_return INTO ls_return WITH KEY retfield = '/RB05/WWR_CR_T-MVGR4'.
        IF sy-subrc EQ 0.
          ls_dynpread-fieldname  = '/RB05/WWR_CR_T-MVGR4'.
          ls_dynpread-stepl      = cnt.
          ls_dynpread-fieldvalue = ls_return-fieldval.
          APPEND ls_dynpread TO lt_dynpread.
        ENDIF.
        READ TABLE lt_return INTO ls_return WITH KEY retfield = 'TXTSH'.   "Filling the related field
        IF sy-subrc EQ 0.
          ls_dynpread-fieldname  = '/RB05/WWR_CR_T-GB'.
          ls_dynpread-stepl      = cnt.
          ls_dynpread-fieldvalue = ls_return-fieldval.
          APPEND ls_dynpread TO lt_dynpread.
          CALL FUNCTION 'DYNP_VALUES_UPDATE'
            EXPORTING
              dyname               = l_repid1
              dynumb               = l_dynnr1
            TABLES
              dynpfields           = lt_dynpread
            EXCEPTIONS
              invalid_abapworkarea = 1
              invalid_dynprofield  = 2
              invalid_dynproname   = 3
              invalid_dynpronummer = 4
              invalid_request      = 5
              no_fielddescription  = 6
              undefind_error       = 7
              OTHERS               = 8.
        ENDIF.
      ENDMODULE.                    "value INPUT
    P.S: Points alloted.
    Message was edited by:
            Shafiq

  • How to set a default value for particular field in SRM PO Portal

    Dear Gurus,
    Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
    My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
    I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
    Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
    Thanks in advance...
    Regards,
    Sathish

    Dear Laurent,
    Thanks for your response,
    But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
    My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
    Kinly guide me how to get the particular node of field in the Purchase order screen.
    Thanks you in advance,
    Sorry for the inconvenience if any
    Regards,
    sathish

  • Account Creation - Badi for Default values for BP Role and Sales Area

    Hi all,
    my requirement regards the possibility to create a new prospect (a link should be available in the navigation bar or create section).
    Logically, a bp role as "Prospect" and particoular sales area should be created automatically.
    I created an implementation for the BADI definition "BADI_CRM_BP_UIU_DEFAULTS". But don't know how to create the default values for BP role and Sales area:
    In my code
    assign cr_me->('VIEW') to <lv_view_name>.
      if sy-subrc ne 0.
        exit.
      endif.
      lv_viewname = <lv_view_name>.
      case lv_viewname.
        when 'AccountDetails.htm'.
    I obtain the viewname "AccountDetails" , the related context "Header". After I don't know how to proceed to obtain the related entities through the relationship BuilRolesRel and BuilSalesArrangementRel.
    Am I following the right way? Is there another solution to prepare the output for default values?
    Any kind of suggestion will be appreciated.
    Regards, Roberto

    go to spro>cross-application components>sap busines partner>business partner> basic settings>field groupings>Configure Field Attributes per BP Role
    Double click the business role which you want to customaze (e.g. 'A') and change the proper settings.
    Regards.

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • Hi, how can i break the value for a row and column once i have converted the image to the array?????​??

    Hi, I would like to know how can i break the value for a row and column once i have converted the image to the array. I wanted to make some modification on the element of the array at a certain position. how can i do that?
    At the moment (as per attachhment), the value of the new row and column will be inserted by the user. But now, I want to do some coding that will automatically insert the new value of the row and the column ( I will use the formula node for the programming). But the question now, I don't know how to split the row and the column. Is it the value of i in the 'for loop'? I've  tried to link the 'i' to the input of the 'replace subset array icon' , but i'm unable to do it as i got some error.
    Please help me!
    For your information, I'm using LABView 7.0.

    Hi,
    Thanks for your reply.Sorry for the confusion.
    I manage to change the array element by changing the row and column value. But, what i want is to allow the program to change the array element at a specified row and column value, where the new value is generated automatically by the program.
    Atatched is the diagram. I've detailed out the program . you may refer to the comments in the formula node. There are 2 arrays going into the loop. If a >3, then the program will switch to b, where if b =0, then the program will check on the value of the next element which is in the same row with b but in the next column. But if b =45, another set of checking will be done at a dufferent value of row and column.
    I hope that I have made the problem clear. Sorry if it is still confusing.
    Hope you can help me. Thank you!!!!
    Attachments:
    arrayrowncolumn2.JPG ‏64 KB

  • HOW TO  SET A DEAFULT  VALUE  FOR A FIELD?

    hi friends
      i have doubt..how to  set a default  value for a field..say  like in  local printer field i always want  lp01 to  be displayed defaultly..when i  click  F1  in that  field i  get the parameter id ..i  know there is something  dealt with that  parameter id..how can i  set that  default value ..in the case of the default  printer value i made in  own data settings as lp01 but  how to  do it  normally  for other  field which has parameter id ??????
    thanks and regards
    prince

    Hi Prince,
    u can set the default value in abap as given below
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS : S_BUKRS TYPE BSID-BUKRS OBLIGATORY DEFAULT '1000'.
    PARAMETERS : S_BELNR TYPE BELNR_D OBLIGATORY DEFAULT '1600000070'.
    PARAMETERS : S_GJAHR TYPE GJAHR OBLIGATORY DEFAULT '2008'.
    PARAMETERS : ASON TYPE BUDAT OBLIGATORY DEFAULT SY-DATUM.
    PARAMETERS : S_KUNNR TYPE KUNNR MODIF ID GP1.
    PARAMETERS : S_LIFNR TYPE LIFNR MODIF ID GP2.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN : END OF BLOCK B1.
    or
    u can give the default value in INITIALIZATION also.
    vlue = '1000'.

  • Value for mandatory field is missing

    Hello again,
    I created an application how descripted in 95 Implementing Remote Persistency with CAF and RFCs (Service).
    The problem occurred when I try to search for an entry. I get the following error:
    german: "ERROR. Wert für Pflichtattribut ... fehlt:"
    english: "Value for mandatory field ... is missing"
    The option mandatory=true seems to be the problem. But I need this option to make these fields available for the mapping with the create method. After I while of tinkling I find out that the errormessage appears when I set more than to fields to mandatory.
    Do anybody know how to resolve this error?
    Thanks!

    Hi Martin,
    I reported this issue to development and they said that this is "by design".  Here is the recommendation.
    1.  set the "Mandatory" flag to false for each attribute that is not required by your external interface.
    2.  perform mappings for only the mandatory attributes in the create method.
    3.  perform mappings for mandatory and optional attributes in the update method.  The update method allows you to map optional attributes.
    4.  At runtime, first call the create method with only the required attributes, then call the update method to fill any optional attributes. 
    This should eliminate the error that you get in the Service Browser.
    Best Regards,
    Austin.

  • How to display texts automatic. besides entered value for a field in Trans.

    How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
    Message was edited by: Sarika Kedia

    Hi sarika,
    Welcome to SDN.
    1. first of all, such display of text,
       is not automatic.
       (it appears to be automatic)
    2. At design time,
       a) take one extra field for text
         and mark it as OUTPUT ONLY
    3. Then in PBO coding,
        call some module, and in that module
        write code
    4. The code should be to
       select from TEXT Table
       into the work area.
    EG. THE SCREEN TEXT FIELD NAME IS
    T510A-FIELDNAME.
    CLEAR t510a.
      SELECT SINGLE * FROM t510a INTO t510a
      WHERE trfar = FIELVALUE.
    5. This will take care of
       displaying the text value of that field.
    regards,
    amit m.

  • Default values for a field in itab

    Hello everyone!
    In the declaration below,
    DATA: BEGIN OF itab OCCURS 0,
             belnr   LIKE bkpf-belnr,
             myField,
          END OF itab.
    The belnr field will be filled by using SELECT statement but myField will have a default value, for example, "1,000".
    Is it possible to do without looping around the itab?
    Thanks!

    > HI,
    > We can not set a Default value for a Internal table
    > field, after selecting all the records in to the
    > Internal table, Loop the internal and pass the
    > constant value to that field and modify field
    >
    >
    > Regards
    >  sudheer
    I see.. Is it really necessary to loop? I would like to avoid looping because it takes so much time...

  • AUFGR (Order Group)- Which table has values for this field

    Hi Gurus,
    I am working on a report, which uses Key field- Order number AUFNR from table AUFK, and is similar to standard transaction KOK5 and S_ALR_87013019.
    havent been able to find where we get values for the field AUFGR from,
    If you have any table where this field gets values from/how to find that, Please do mail and help for this problem..
    Thanks,
    Regards,
    Krishna

    Hi Raman,
    Try this function module, when i execute it in transaction SE37, it show me the Order Group list, it can be helpful:
    CALL FUNCTION 'G_SET_SELECT'
    EXPORTING
       CLASS                   = '103'
       CRUSER                  = '*'
       DISPLAY_ONLY            = ' '
       DYNP_TITLE              = ' '
       ECCS_DIMEN              = '*'
       ECCS_ITCLG              = '*'
       ECCS_SITYP              = '*'
       FIELD_ENTRY             = '*'
       FIELD_NAME              = 'AUFNR'
       KOKRS                   = 'FSCO'
       KTOPL                   = '*'
       FIKRS                   = '*'
       LIB                     = ' '
       MULTIPLE_CHOICE         = ' '
       NO_CLASS_DISPLAY        = 'X'
       NO_DYNAMIC_SETS         = 'X'
       NO_MAINTENANCE          = 'X'
       NO_SUBSET_EXPAND        = 'X'
       NO_TABLE_DISPLAY        = ' '
       RNAME                   =
       SEARCHFLD               = '*'
       SET                     = '*'
       SET_USAGE               = '*'
       SET_WILDCARD_ONLY       = 'X'
       START_COLUMN            = 0
       START_ROW               = 0
       SUBCLASS                = '*'
       TABLE                   = 'CCSS'
       TITLE_STRING            = '*'
       TOP_NODES_ONLY          = ' '
       TYPELIST                = 'BSMD'
       UPDUSER                 = '*'
       VARIABLE                = '*'
    regards,
    Alejandro.

  • My mac mini is running slow.  Bought it in 2009.  Activity monitor shows nothing running that should not be.  Someone suggested it might be my operating system?  Check for software updates, and I am current.  Suggestions?

    My mac mini is running slow.  Bought it in 2009.  Activity monitor shows nothing running that should not be.  Someone suggested it might be my operating system?  Check for software updates, and I am current.  Suggestions?

    Open Activity Monitor, Show:>All Processes, sort on CPU%, see if anything using too much CPU% when this happens, click on Memory tab, do you have many Pageouts?
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    Check the S.M.A.R.T. status of the drive in Disk Utilty by highlighting the Drive & looking at the bottom of the window.

Maybe you are looking for

  • Lack of language

    After the update of the Android on my Tablet to the 4.3 Version keyboard changes and the option to have as many languages as I want disappered! I need 4 languages, but only 3 available! How can I get back to the previous version, because the basic on

  • SOA 11g: Intergation with BAM 11g failed with ThreadPool has stuck threads

    Hi, I have installed BAM and SOA server on local host. Now while integrating BAM with BAMAdapter it's going into long running state and finally failing with below error. <Notice> <Diagnostics> <mars.as.local> <soa_server1> <[ACTIVE] ExecuteThread: '1

  • Update deleted everything on iphone and itunes

    updated iphone to 4.2.1 and it cleared all my sms and contacts like a new phone. i updated itunes and it cleared my itunes folder like an empty library, with no apps or anything. just have the names of albums and songs but no artwork. Called apple an

  • IPod not repsonding and showing a very faint light.

    I have been plugging my iPod into my computer and nothing happens, it won't show on my computer or the light won't turn on my iPod. I know the battery is dead, and I can't charge it. It stopped working not too long ago. A little while ago when I held

  • Error when executing method store of MiningFunctionSettings

    Hi, I get an error: ORA-01031: insufficient privileges ORA-06512: at "DMSYS.DM_SEC", line 183 every time I try to execute metod store for example: m_AssociationRulesFunctionSettings.store(dmsConnection, m_MiningSettingsName); User DMSYS has DBA privi