Function Module for generating Randon Numbers

Hi,
Is there any Function Module to generate Random Numbers automatically.
Say for example: The Lower Limit is 10 and the Higher imit is 30.
So is should generete the random numbers between 10 and 30. and it should store in he Data Base level.
Please help me in this ascept.
Thanks & Regards:
JSR

Hi,
You can use Number Range Concept.
Get new number
CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
           nr_range_nr             = c_01
           object                  = c_key_no
      IMPORTING
           number                  = pw_key_no
      EXCEPTIONS
           interval_not_found      = 1
           number_range_not_intern = 2
           object_not_found        = 3
           quantity_is_0           = 4
           quantity_is_not_1       = 5
           interval_overflow       = 6
           buffer_overflow         = 7
           OTHERS                  = 8.
Thanks,
Sree.

Similar Messages

  • Function Modul for generate hashcode

    Hi all
    i search a function modul for generate a hashcode. Does it existing a function modul for that?
    Regards

    Hi
    Try FKK_BR_BUILD_HASH_CODE.
    Pushpraj

  • Function module for generating password

    Hi All,
    Is there any function module which randomly generates case sensitive passwords.
    Thanks

    Hi,
    Please refer:
    FM for Random password in a specific pattern
    Best regards,
    Prashant

  • Searching for bapi/function module for uploading assent numbers.

    hi all,
    i have a senario where in for a sinle PO there will be many assent nos.
    Example :if i have a single purchase order of 100 chairs.each chair will have a unique asset no for maintianence.
    i want to find a bapi or any FM to help me upload the details through XL-sheet, other than doing it manually,
    plz help ,points will be rewareded.
    regards,
    johnson

    Hi Try using the BAPI
    BAPI_PO_CHANGE, if you want to add the Asset numbers to the PO.
    BAPI_PO_CREATE1 - if you want to create

  • Any function module for getting fiscal year week numbers

    can any one provide me function module for getting fiscal year week numbers ? if no function module please let me know work around.
    Thanks!
    Lakshmikandh

    hi,
    Use FM <b>'DATE_GET_WEEK'</b>...
    parameter D1 LIKE SCAL-DATE.
    Data w like scal-week.
    CALL FUNCTION <b>'DATE_GET_WEEK'</b>
    EXPORTING
    date = D1
    IMPORTING
    WEEK = W
    EXCEPTIONS
    DATE_INVALID = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write W+4(2).
    Regards,
    Santosh

  • Call Function not Generating Function Module for Smartform

    Hi Gurus,
    We have a work copy print program use to print deliveries (smartforms). This program works fine in Production but right now we are doing some testing and I found out that when we run this program in QUALITY environtment, it shortdumps with error saying "Function Module Not Found"
    Basically when it gets to the Function Module "SSF_FUNCTION_MODULE_NAME", it could not generate any function module for the form it Sy-Subrc = 2 Exception meaning NO_FUNCTION_MODULE.
    The problem is this only happens in our QUALITY environment.I compare the function module in the 2 systems, there was not diff as this is a Standard SAP module. I passed diff smartforms we have in QUALITY through the FM and it will not generating any FM for any of them. So this is not an error from the smartforms, bcos all the same smartforms generates FM in Prod.
    So what I did next is to Debug the FM "SSF_FUNCTION_MODULE_NAME" in the 2 systems to see where the diff is coming from. I noticed 2 views that the FM is using, they are STXFADM and D010SINF . So on the Production system, STXFADM-LASTDATE and D010SINF-UDAT fields are the same value, so it generates the FM. On the QUALITY systems, the values are different hence it skips the code to generate the FM.
    Thanks Guys.
    Points will greatly be awarded for this.

    Please guys, help me look into this, I really need a solution fast.
    Thanks

  • Function Module for some sBDOC does not work on

    Hi Experts,
    We have transported on QA landscape sBDOC definition. For sBDOC CNBCCPCUS602,  CNBCCPCUS603,  CNBCCPCUS604 function module seems to be not the right one, so no message of this BDOC are creted when a site extract is done. Error on smohqueue says: "Could not determine function module for processing AC messages".
    Have You encountered a problem like this?
    BR
    Roberto

    Hi All,
    We resolved the problem re-generating CDB pricing condition table using report CND_MAST_GEN_TRANSFER_OBJECTS.
    BR
    Roberto

  • IDoc outbound function module to generate Purchase order PORDCH IDoc

    Hi all,
    Can anyone help me with the outbound function module to generate PORDCH IDoc

    instead of that you can use the Below For PO's.
    Message Type : ORDCHG
    Process Code  : ME11
    Function : IDOC_OUTPUT_ORDCHG

  • Function module to generate Batch number

    Can anyone please let me know, the function module to generate the batch numbers. if possible the procedure to generate the batch number.

    Hi Venkat,
    Check function module <b>VB_CREATE_BATCH</b>.
    Thanks,
    Vinay

  • What is outbound function module for IDoc type INFRECMASS01

    Hi,
    What is outbound function module for IDoc type INFRECMASS01? This is for purchasing info record.
    Thanks
    Kamal

    Hi Kamal,
    Have you looked standard program <b>RBDSEINF</b> or transaction code <b>ME18</b>?
    This program will call function module <b>MASTERIDOC_CREATE_REQ_INFREC</b> to generate purchasing info record IDoc.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Outbound function module for IDOC WMMBID02

    Hi,
    Do we have any outbound function module for basic IDOC type WMMBID02 (Stock movements from ext. systems) which has message type WMMBXY.
    I searched with hot keys OUTBOUND_WMMBXY in SE37 but unable to find a standard FM. My task is to extend that FM by a user-exit so as to populate my extended IDOC which is of basic type WMMBID02.
    Any help would be greatly appreciated.
    Regards,
    Harsh

    Hi Kamal,
    Have you looked standard program <b>RBDSEINF</b> or transaction code <b>ME18</b>?
    This program will call function module <b>MASTERIDOC_CREATE_REQ_INFREC</b> to generate purchasing info record IDoc.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Urgent: creation function module for chvw table

    hi,
    I want to make Function Module for the fields in which i have to display the production order and batch numbers.plzz tell me how to create for it.

    Hi Everybody,
    About how to use this function Does anyone have an idea?
    I've found it.
    call function 'FI_DOCUMENT_READ'
    exporting
       i_awtyp = 'VBRK'
       i_awref = vbfa_tab-vbeln
       i_awsys = vbrk-logsys
       i_bukrs = vbrk-bukrs
       i_gjahr = vbrk-gjahr
    tables
       t_bkpf = xbkpf
       t_bseg = xbseg
    exceptions
    wrong_input = 1
    not_found = 2.
    But this is not enough.
    Best Regards Rasim.

  • Function Module for creating file name in Application Server

    Hi Guys,
    Can you suggest me a function module to generate a file name for a flat file to be save on application server using DATASET. 
    Required filename format : <table name >.<times tamp>.TXT
    Thanks in advance.

    Hi,
    Please try this ...
    DATA: BEGIN OF FILE1,
            CONST1(01) TYPE C VALUE '_',
            FIELD1     LIKE SY-DATUM,
            CONST2(01) TYPE C VALUE '_',
            FIELD2     LIKE SY-UZEIT,
          END OF FILE1.
    DATA: FILENAME LIKE EDI_PATH-PTHNAM.
    MOVE SY-DATUM  TO FILE1-FIELD1.
    MOVE SY-UZEIT  TO FILE1-FIELD2.
    CONCATENATE <table name> FILE1 INTO FILENAME.
    Regards,
    Ferry Lianto

  • Function Module for Equipment Details

    HI,
    Please tell me the functional module for Equipment details.
    i want to get the details for generator details
    Engine
    Alternator
    SIS
    Serial NO
    through passing the Equipment Number.
    Regards
    Surya

    thank you,
    This functon module will be giveing all the details but more then this i need for a particular equipment number i want to get the calss overview, details in class over view i need
    Charecteristic Discription
    value.
    Regards
    Surya

  • Functional module for automatic creation of pur requisition & pur order

    hello,
    what is the functional module for automatic creation of puchase requisition and automatic creation of purchase order which we will assign in action box in service order processing management.
    please let me know as early as possible
    regards,
    rajesh kumar raju

    Hi,
             Please check with following.
    IDOC_INPUT_ACC_PURCHASE_REQUI
    IDOC_INPUT_ACC_PURCHASE_ORDER
    /ISDFPS/OR_PURCHASE_ORDER_CR
    BS01_PURCHASE_DOCUMENT_CREATE
    CO_MP_CREATE_PURCHASE_ORDER
    Thanks & Regards
    Sadhu Kishore

Maybe you are looking for

  • Help with logging in to my Satellite L10

    I have a Satellite Pro L10 with WinXP Pro installed in it. One day, when I started my notebook, a Windows logon window came up and was asking for a password. It already had my name in the username box but no password. I did not enter a password when

  • [JS CS3] Trouble with getElements().length

    The "ScriptLabel.jsx" tutorial script has this code fragment: var myPageItems = myPage.pageItems.item("myScriptLabel"); if(myPageItems.getElements().length != 0){ alert("Found " + myPageItems.getElements().length + " page items with the label."); The

  • 3GS and OS 4.0.1

    Here are my issues with OS 4.0.1. Also had some with 4.0. With 4.0.1 doing anything seems to take longer now, everything is loading slower. Calls are being dropped more but I do not have the rebooting issue as I have read. With 4.0 and 4.0.1 When eve

  • REGEXP_REPLACE - replace several words

    Hi, Can anyone tell me if it is possible to replace several words at once using regexp_replace? I would like to do something like update... set field = regexp_replace(str, 'val1|val2|val3', '1|2|3');val1 would be replace with 1 val2 would be replace

  • Column header sorting

    Is there a way I can click on a displayed column (A) and have the actual sort be performed on the value in another hidden column B? Thanks