Validating in Parameters for user entry

HI All,
Pls write a simple code for me.
0=0
1=1
2=2
3=3
4=4
5=5
6=6
7=7
8=8
9=9
A=10
B=12
C=13
D=14
E=15
F=16
G=17
H=18
I=19
J=20
K=21
L=23
M=24
N=25
O=26
P=27
Q=28
R=29
S=30
T=31
U=32
V=34
W=35
X=36
Y=37
Z=38
Use modulus 11 and remindr is check digit
Example
EIMU466000
15*1+
19*2+
24*4+
32*8+
4*16+
6*32+
6*64+
0*128+
0*256+
0*512
=1045/11=95 and reminder is 0 check digit is 0
When 11th digit enter by customer .It has to veryfy the above logic & check the riminder.
For incorrect entry Pass the error message.
Thanks in advance,
Singha

HI,
     Please try following logic
    var1 = 'EIMU466000'.
    var = strlen(var1).
    do var times.
     var2 = var1+var(1).  
     case var2.
      when '0'
       sum = sum + 0 * var.
      when '1'
       sum = sum + 1 * var 
      when.....(use all digits)
    endcase.
   enddo. 
    sum1 = sum /11.
    if sum1 > 0.
      message .....
    endif.
Regards,
Amole

Similar Messages

  • PR no created in SRM : No valid request Found for user 0013

    Hi.  I try Send PR from ECC6.0 to SRM 7.0 
    I appobed the PR in BACK end but SC does not created in SRM side.
    in transaction SLG1 into SRM show the next message.
    No valid requester found for user 0013 .
    Previously made the next configurations
    1.- IN ECC6.0 has the RFC with USER RFC creates in SRM system i check the connection and working ok.
    2.- in PPOMA i created a new node of Unit Orgnizational to Entry channel .
    3.- I created a new RFC user and was assigned to previous Unit Organizational
    4- created a new local purcharse gruops and assigned the responsability for Entry channel and product categories are introduced.
    some idea what is missing to set?

    Hi,
    Check the below threads
    [No valid requester found for user 0013 . BBP_EXTREQ_TRANSFER    Posted: Jan;
    [No valid requester found for user 0013 .   BBP_EXTREQ_TRANSFER;
    [BBP_EXTREQ_TRANSFER  - No valid requester found for user 0013;
    regards,
    MRao

  • No valid requester found for user 0013 . BBP_EXTREQ_TRANSFER    Posted: Jan

    Hi,
    We have a PDP scenario where a channel R/3 has the RFCUSER maintained and the link is established with the ECC6.0.
    When we try to send the PR to SRM the message shows the the PR is transferred but gives an error in the SLG1 as
    "No valid requester found for user 0013
    Message no. BBP_BD002"
    The SMQ1 status is ANORETRY
    TYPE : A
    ID : BBP_EXTREQ
    NUMBER : 013
    MESSAGE : Ext. requirement cannot be created, see application log.
    If you have any solution please tell me,.
    i am waiting for reply,
    Thanks in advance.

    Santosh,
    In my recent experience this SLG1 error is usually due to the RFC user being either missing, locked or not having their password set.
    Get your Basis person to check the RFC link relevant to the transfer process in TCode SM59.
    Hope this helps
    Allen Brooks
    SRM BPO
    Sunderland City Council

  • AP Aging report - key date for user entry

    Hi All,
    We have a requirement to calculate aging buckets like 0-30,31-60,61-90...etc.
    I know the key date for this report is created on net due date in SAP standard report.
    In standard SAP report , key date is always a system date(SY-DATUM).
    What we need for this report is , we need to get all the invoices which are outstanding as of that date(the date which user enters).
    If user enters today's date(08/28/07) , he should get all the invoices outstanding till that date in aging buckets and if user enters some date in the past like 07/26/07, he should get all the invoices outstanding as of that date.
    Can  someone Pls tell me if aging buckets are calculated based on a user entry ?
    Regards,
    Kumar

    Hi Voodi,
    Aging in the standard report is being calculated like below...
    1.For open items
    Posting date<key date
    Item status = O
    2.Posting date < keydate and clearing date > key date and net due date with offsets on keydate ( key date + 1 - keydate+30 --- for 1-30 days) like wise for all aging buckets.
    in this scenarion , key date is always system date ie today's date.
    But user wants to get all the invoices based on his user entry...
    is this possible with the same standard key date variable or do we need implement any other logic???
    Regards,
    Kumar

  • Adobe form for user entry  and then forward to email distro

    I would like to develop a form that will have a pull down list of entries from an SAP table and also fill out information is several text fields on the form.
    Once a user fills out the form, I would like the user to be able to send the completed form to an email or even a distribution list.
    I also would like to add a jpg or image to the top of the form.
    Can anyone provide me some tips on how to go about doing this. I am concerned it will take a lot more programming than I have current knowledge (I can do it but learning curve may take to long).
    I would think Adobe smartforms  is the best choice unless there is a better option that I don't know about
    Thank for all of your help
    Weyland Yutani

    I would like to develop a form that will have a pull down list of entries from an SAP table and also fill out information is several text fields on the form.
    Well if this is an online form then it is a standard thing Adobe Form can handle. But if you are talking of offline form then you will need to use Web Services to fill the dropdown dynamically from SAP.
    Once a user fills out the form, I would like the user to be able to send the completed form to an email or even a distribution list.
    There is a SubmitByEmail button which should trigger the default mail client on user's machine and the form can be sent to a email address.
    I also would like to add a jpg or image to the top of the form.
    There are Image element provided in standard library.
    Can anyone provide me some tips on how to go about doing this. I am concerned it will take a lot more programming than I have current knowledge (I can do it but learning curve may take to long).
    There are excellent tutorials available [here|http://www.sdn.sap.com/irj/sdn/adobe] which can be a good starting point
    I would think Adobe smartforms is the best choice unless there is a better option that I don't know about
    Adobe Forms and SAP Smartforms are different technologies. I am sure you were not referring to SAP Smartforms when you wrote above, were you?

  • How to create a table with 5 rows ready for user entry

    Hello All,
      Can someone kindly advise on how can I achieve the above ? Everytime the table is created, the fields are not enabled for entry . I am trying to create a ytabel that consists of 8 columns. Of which 2 of them are date fields and another 2 of them are dropdown listboxes (by key).
      Thank you very much.
    from
    Kwok Wei

    Hi,
    Conside you have Valuenode which is bound to table and valueattributtes bound to Tablecolumns.
    Create a elements of the Nodetype.
    Ex: IPrivate<<ViewName>>.INodeElement ele=wdContext.create<Node>Element();
    ele.set<<Attrib1>>(Value1);
    ele.set<<Attrib2>>(Value1);
    ele.set<<Attrib3>>(Value1);
    ele.set<<Attrib4>>(Value1);
    ele.set<<Attrib5>>(Value1);
    ele.set<<Attrib6>>(Value1);
    ele.set<<Attrib7>>(Value1);
    ele.set<<Attrib8>>(Value1);
    wdContext.node<<NodeName>>.addElement(ele);
    The above statements should be in a loop so that it will add 5 rows in Table. )
    Regards, Anilkumar

  • Validation errors out for Rapid Entry Paysheets in HCM 9.2

    I am experiencing trouble entering the data into "Create Rapid Entry Paysheets". Any prior validation errors are showing up like "Invalid Employee ID" or "Invalid Employee Record". But when it comes to no errors in the entered data, as per the SQL in App Engine PYRE_VALID- Section 90FINAL - Step50 it should be inserting the data into PS_PYRE_INVALID stating that all the records passed, but it errors out with 'duplicate row', even though there is no duplicate in the table.
    Has anyone encountered this issue or any ways to fix the issue ??

    Cross-posted in many forums. Don't answer this one.

  • Authorization for limited vendor for user in FBL1n

    Hi,
    I have certain user in my company, to whom, i want to give t-code FBL1N access. But for some vendors only.
    Please let me know, how it can be done.

    Hi Durga
    As far as I see I can suggest you 2 options:
    1. You can create a validation with sets for users and vendors. This way you can restrict to only the t-codes you want the restriction to apply
    2. You can co-ordinate with BASIS to restrict using authorization object F_BKPF_BEK. You have to assign authorization group to vendors and give authorization to users for specific authorization groups. In this case, you cannot restrict only to FBL1N. The restriction would be applicable to all the transaction codes for the users where vendors are impacted.
    Regards
    Sowmya

  • Validating user entry in XML Webforms

    Hi everybody!
    I'm trying to validate user entries in an XML Webform.
    I'm trying to validate an email address. Following http://help.sap.com/saphelp_nw04/helpdata/en/03/c10f41dd57f623e10000000a155106/content.htm I've referenced my input controls to schema elements.
    I've selected String as data type and in <b>pattern</b> i put
    \w([-.]\w)*@\w([-.]\w)*\.\w([-.]\w)([,;]\s\w([-.]\w)@\w([-.]\w)\.\w([-.]\w))
    When i Save the form with a blank or invalid value nothing happens. Am I loosing something?
    Thanks in advance,
    Fede

    Hi,
    Is the user a portal user?  If so you could set in the properties (bottom right of XML forms builder) for it to be of type user.  You can then also in the properties get it to display the e-mail address rather than the username if you wish.
    This is only valid for looking up portal users though.
    Paul

  • ISA B2B logon  Error: No valid private connection for internet user

    Hello ,
    i used isauseradm to create a user zzweb with all authorizations for B2B..
    now when i try to log to
    http://host:port/b2b/b2b/init.do  with the user zzweb
    i have a runtime error with the logs :
    EXCEPTION]
    #1#com.sap.isa.businessobject.BORuntimeException: Error getting private connection for internet user:com.sap.isa.core.eai.BackendException: Error: No valid private connection for internet userzzweb
         at com.sap.isa.businessobject.BusinessObjectHelper.splitException(BusinessObjectHelper.java:78)
         at com.sap.isa.user.businessobject.UserBase.login(UserBase.java:313)
         at com.sap.isa.businessobject.User.login(User.java:143)
         at com.sap.isa.user.action.UserActions.performLogin(UserActions.java:295)
         at com.sap.isa.user.action.UserActions.performLogin(UserActions.java:368)
         at com.sap.isa.user.action.UserBaseAction.performLogin(UserBaseAction.java:126)
         at com.sap.isa.user.action.LoginBaseAction.ecomPerform(LoginBaseAction.java:77)
         at com.sap.isa.isacore.action.EComBaseAction.doPerform(EComBaseAction.java:353)
         at com.sap.isa.core.BaseAction.execute(BaseAction.java:211)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at com.sap.isa.core.RequestProcessor.processActionPerform(RequestProcessor.java:674)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at com.sap.isa.core.RequestProcessor.process(RequestProcessor.java:391)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at com.sap.isa.core.ActionServlet.process(ActionServlet.java:243)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at com.tealeaf.capture.LiteFilter.doFilter(Unknown Source)
         at com.sap.isa.isacore.TealeafFilter.doFilter(TealeafFilter.java:61)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:373)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    what does this error means..?
    i also realised that zzweb  was not created in CRM backen? should it be created ?
    many thnx for help ..
    Message was edited by: Blackman

    Its a late response... but if someone gets the same issue here is the solution.
    When you register try uppercase password . That should take care of that issue.
    The problem is with function module CRM_ISA_IUSER_SWITCH , Note 946536.
    Although the note says 5.0 the problem exists with ISA 4.0 too

  • Create a variable for user input entry to act as i/p to anothr variable

    Hi,
    I have a requirement in my report where i have two variables one is user entry called "A" the a other user exit "B" and the query is based on an ods.
    <b>
    Scenario:</b> If the user were to enter a string  XXX in A, i need to do a search on certain columns in ODS and store the corresponding keys (single column) in an internal table and the internal table column will act as multiple single values for variable B .
    <b>Questions:</b>
    1. How to get  the value entered in A.(so i can do select statement on ODS table).
    2. In the select statement we need to specify FROM table, so what would the ods table name be.
    3. How to store the values from the select statement into the internal table.
    4.How to populate the values in internal table into variable B.
    5.Once all this is done i need to reset the variable A to empty.
    p.s: ABAP code for any of the following would be highly appreciated.

    hi Karthik,
    1.  you can try
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'varA'.
                  l_var = LOC_VAR_RANGE-LOW.
    2. ods table name = /bic/a[odsname]00 or /bi0/a[odsname]00
    3. use select .... from... into table ...
    4. loop at that internal table and populate as sample code
    5. try to create a RKF with restriction to variable A, and hide this keyfigure,
        not use in reporting.
    hope this helps.
    Populating material numbers from a table to customer exit bex variable
    tables : /bic/azods00.
    DATA: it_ods like /bic/azods00 occurs 0 with header line.
    CLEAR L_S_RANGE.
    WHEN 'varB'.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'varA'.
                  l_odsfield = LOC_VAR_RANGE-LOW.
    SELECT * FROM /bi INTO TABLE it_ods
    WHERE odsfield = l_odsfield.
    loop at it_ods.
    L_S_RANGE-LOW = it_ods-fieldselected.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    endloop.
          ENDLOOP.

  • Validation for User to Restrict vendor

    Hi Experts,
    My client wants that some users can only display one vendor account in vendor Line item / Balance reports and they are not accepting Authorization group update in vendor Master. Can you please suggest me that how can I do validation in OB28 for this requirement.
    Thanks in advance.
    Regards
    Abul

    So we thought we can use object F_LFA1_BEK. We entered an  authorization group (LFA1-BEGRU) to this vendor and added this group to F_LFA1_BEK. So far so good.
    Problem is now that it is still possible to access all vendors where no authorization group is maintained in the vendors master record. (No authorization group is the default case and it is not possible to add another one the other vendors)
    Is it possible to achieve this with F_LFA1_BEK or is there any other solution?

  • Current date as deafult for Calender Day and user entry

    Hello All,
    There is a select option for Calender Day for a BW query.
    This Calender Day should have a default as Current Date and User entry is also possible.
    I have used a Customer exit and written the following code under i_step = 1
    data: v_currdt like sy-datum.
    clear: v_currdt, vfl_range.
             if i_step = 1.
              vfl_range-sign = 'I'.
              vfl_range-opt = 'EQ'.
              v_currdt = sy-datum.
              vfl_range-low = v_currdt.
              append vfl_range to e_t_range.
             endif.
    Please inform if this code is incorrect, because I am not able to see the date at all.
    Cheers,
    KP

    Hi
    Check with this code!
    Implemented for the same function as you require.-
    if i_step = 1.
      case i_vname.
        WHEN 'ZZZZZZ'.
          IF i_step = 1.
            REFRESH e_t_range.
            CLEAR l_s_range.
            l_date1 = sy-datum.
            L_S_RANGE-LOW = l_date1.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT  = 'EQ'.
            APPEND L_S_RANGE  TO E_T_RANGE.
          endif.
      endcase.
    endif.
    Regards
    M.A

  • New FAQ Entry on JVM Parameters for Large Cache Sizes

    I've posted a new [FAQ entry|http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html#60] on JVM parameters for large cache sizes. The text of it is as follows:
    What JVM parameters should I consider when tuning an application with a large cache size?
    If your application has a large cache size, tuning the Java GC may be necessary. You will almost certainly be using a 64b JVM (i.e. -d64), the -server option, and setting your heap and stack sizes with -Xmx and -Xms. Be sure that you don't set the cache size too close to the heap size so that your application has plenty of room for its data and to avoided excessive full GC's. We have found that the Concurrent Mark Sweep GC is generally the best in this environment since it yields more predictable GC results. This can be enabled with -XX:+UseConcMarkSweepGC.
    Best practices dictates that you disable System.gc() calls with -XX:-DisableExplicitGC.
    Other JVM options which may prove useful are -XX:NewSize (start with 512m or 1024m as a value), -XX:MaxNewSize (try 1024m as a value), and -XX:CMSInitiatingOccupancyFraction=55. NewSize is typically tuned in relationship to the overall heap size so if you specify this parameter you will also need to provide a -Xmx value. A convenient way of specifying this in relative terms is to use -XX:NewRatio. The values we've suggested are only starting points. The actual values will vary depending on the runtime characteristics of the application.
    You may also want to refer to the following articles:
    * Java SE 6 HotSpot Virtual Machine Garbage Collection Tuning
    * The most complete list of -XX options for Java 6 JVM
    * My Favorite Hotspot JVM Flags
    Edited by: Charles Lamb on Oct 22, 2009 9:13 AM

    First of all please be aware HSODBC V10 has been desupported and DG4ODBC should be used instead.
    The root cause the problem you describe could be related to a timeout of the ODBC driver (especially while taking care of the comment: it happens only for larger tables):
    (0) [MySQL][ODBC 3.51 Driver]MySQL server has gone away (SQL State: S1T00; SQL
    (0) Code: 2006)
    indicates the Driver or the DB abends the connection due to a timeout.
    Check out the wait_timeout mysql variable on the server and increase it.

  • How to Enable the LOV to query for partial user entries in af:query in an ADF search form

    Hi guys,
    I have faced one issue in creating a search form in ADF, in that I have used af:query and table region. and I have attached an lov vo to the base vo for the list of values and given UI hint as Input values with List of values. Now the issue is that I have given auto submit property as true so when I give some value suppose "Jan-14" and tab out it gives me all the correct results. but if I give like "Jan%" and then tab out then it does not give me any value. Could you kindly help me with some solution. I am using Jdev 11.1.1.6.0.
    Thanks,
    Tanmoy

    To enable the LOV to query for partial user entries, we can trap the 'LaunchPopupListener' event and add custom code there. Within the af:query component, just wondering how can we set property the 'LaunchPopupListener' for the search criteria ?

Maybe you are looking for

  • Print to Adobe pdf does not give option for .pdf file

    I recently installed Acrobat X Pro.  I have a 10-page pdf document open in Acrobat.  I want to eliminate the first page and save the other 9 in another file. In previous versions, I would select Print and then select the printer "Adobe PDF".  When I

  • Reset my apple tv blinking apple and then nothing.

    When we turn on the Apple tv all I see is a blinking APPLE and the lights on the apple tv box are blinking also,...but then nothing happens.  I have held the MENU and DOWN arrow to try and restart it.... but nothig happens.  I plugged the apple TV in

  • HELP :: Error Location Registration for Workflow - RTC-5347

    Sorry to have to post this again ... I'm just getting anywhere with it . Hi all, Specs OWB 9.2.0.2.8 (Client) OWB 9.2.0.2.0 (Repository) Oracle Workflow 2.6.2 Oracle 9.2.0.3.0 Sunos 9 I have completed the OWB install, both client and severside. Oracl

  • This only happens in Technet forums.......

    I know this forum is not for product support. However since this issue is applicable only when I am posting in TechNet forums and I cannot get a solution in Win 10 TP forum, I figure I'll take a shot here. My problem: I cannot post "live" links in Te

  • How to get my requirement

    Hi, I want to do an adobe form. My output should be like an ALV(Not aware if we can have ALV on adobe forms) where I should also handle Page Breaks(For every new material group, should start on new page). I started this development in Webdynpro and l