Need to condense the value of VBELN in to new variable.

Here in this code..I had defined a Local variable LV_VBELN LIKE VBRK_VBELN and VBELN is Type c (10).
The function module that I had used in the Import Parameter
you can see the BRANCH...Its type is C (4).
I am passing the value of VBELN to the Import parameter in the function module. As it result it is throwing the short dump.
I need to declare a new Local variable of type c with length 4 and condense the VBELN value into this local variable and pass it to the Functino module.
Can anyone suggest me with the code.
Here is the code.
DATA: ADDRESS LIKE SADR,
          BRANCH_RECORD LIKE J_1BBRANCH,
CGC_NUMBER LIKE J_1BWFIELD-CGC_NUMBER, 
      ADDRESS_VALUE LIKE ADDR1_VAL.
  DATA : LV_VBELN LIKE VBRK-VBELN. "Local Variable for vbrk-vbeln
--->Select single bupla into lv_vbeln from vbrk where vbeln EQ is_bil_invoice-hd_gen-bil_number.
CALL FUNCTION 'J_1B_BRANCH_READ'
     EXPORTING
          BRANCH     = lv_vbeln   
          COMPANY           = is_bil_invoice-hd_org-comp_code
     IMPORTING
          ADDRESS           = ADDRESS
          BRANCH_RECORD     = BRANCH_RECORD
          CGC_NUMBER        = CGC_NUMBER
          ADDRESS_VALUE     = ADDRESS_VALUE
     EXCEPTIONS
          BRANCH_NOT_FOUND  = 1
          ADDRESS_NOT_FOUND = 2
          COMPANY_NOT_FOUND = 3
          OTHERS            = 4.
IF sy-subrc = 0.
  st_txt-cnm1 = ADDRESS-NAME1.      " Name 1
  st_txt-cnm2 = 'BRAZIL'.   
  st_txt-cnm3 = ADDRESS-STRAS.  " House address & street
  st_txt-cnm4 = ADDRESS-ORT01.   " City
  st_txt-cnm5 = ADDRESS-PSTLZ.   " Postal code
  st_txt-cnm6 = 'Tel:'.         
  st_txt-cnm7 = ADDRESS-TELF1    " Telephone no.
  st_txt-cnm8 = ADDRESS-TELFX.   " Fax number
*Commmented and added to avoid hard code CNPJ
st_txt-cnm9 = 'CNPJ ' + CGC_NUMBER.     " CGC number (company,branch,check digits)
CONCATENATE 'CNPJ' CGC_NUMBER INTO st_txt-cnm9 SEPARATED BY SPACE.
**End of changes
ENDIF.

Hi Kittu,
The length of BRANCH is 4 but the length of VBELN is 10.
DATA: LV_VBELN like VBRK-VBELN. "Local Variable for vbrk-vbeln
The short dump is due to TYPE MISMATCH. So try to declare in the following way...
Declare like this....
DATA: LV_VBELN like J_1BBRANCH-BRANCH.
Best regards,
raam

Similar Messages

  • I need to get the value of a text field that is located in another page JSP

    I need to get the value of a text field that is located in another page JSP. How do I do that?

    Well you see, I have a page at angelfire.com, which
    does not support JSP. I want to call a script located
    at mycgisever and then, when pressing a link on the
    former page, the JSP page is loaded, and the script
    get the value from the text field on the OTHER page.
    Is this possible?I know nothing about cgi. But that should not prevent me from understanding what can and cannot be done, assuming cgi is sort of comparable with jsps.
    I'm unable to understand your description clearly. Try to explain it better. Give precise steps that you intend to follow and I should be able to help you further.
    So you have a page1.
    You hit submit from page1.
    That goes to the cgiserver.
    From the cgiserver, programmatically load up the jsp.
    search this for the text field.
    Display it on your page2.
    Is that what you are trying to do?
    BTW, won't be able to help you with cgi scripting at all. Can help with Java and Jsp.

  • Need to pass the value from UI

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had dragged and dropped Three Input Text Boxes in my UI
    I need to pass the values from the UI to my AMImpl Methods
    i.e. In my AMImpl Methods
    vo2.setNamedWhereClauseParam("year",[af:ImputTextBox1]);
    vo2.setNamedWhereClauseParam("period",[af:ImputTextBox2]);
    vo2.setNamedWhereClauseParam("bu",[af:InputTextBox3]);
    vo2.executeQuery();

    The links given by Vinoth and jabr is very usefull for me!!
    Still i m receiving an while i clicked the button
    Cannot convert MEL of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
    Cannot convert 201011 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
    Cannot convert 5 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputTextEdited by: wilhelm wundt on Dec 18, 2011 10:00 PM

  • Limiting the value help for a user input variable as required

    Hello Gurus,
    I have a requirement :-
    Restrict the value help for a user input variable in a query to only a required set of values instead of the default behaviour. ie instead of having all the values in the master data of that characteristics in the value help.
    How do I go about it? - Do I have to explore the precalculated value set feature?
    If so, please tell me how to go about it in BI 7.I would appreciate if you could explain it in detail rather than sending me a URL because I have gone through most of them but Iam yet to figure out how to create the broadcast setting and subsequent steps.
    Thanks for your time.
    Regards,
    Kris_Hitman

    I believe if the User doesn't want to see any particular values in F4 help then it means they are not intrested in viewing the transaction data related to those values.
    So why don't you restrict that object with the required values. Then the F4 help will automatically display only those values.

  • How to call procedure inside a procedure and need to sore the value in a variable?

    HI ALL,
    i am usung oracle 11g.
    here is my package and procedure
    i want  to call get_email_details this procedure inside the process_email_master and want to keep the value inside a varible in master procedure
    create or replace
    PACKAGE        ms_gen_process_email
    as
       type email_type is record(subject                            varchar2(4000 char),
                                 email_body                       varchar2(4000 char),
                                 to_receipent                    varchar2(4000 char),
                                 cc_receipent                     varchar2(4000 char));
        type email_type_table is table of email_type;
       procedure process_email_master(
          p_metric_name     IN   VARCHAR2,
          p_current_stage   in   varchar2,
          p_action          in   varchar2,
          p_pid             in    number,
          P_OBJECT_ID       in    varchar2
          --p_emai_master     out   p_email_type_table
       PROCEDURE get_email_details (
          p_metric_name     IN   VARCHAR2,
          p_current_stage   in   varchar2,
          P_ACTION          in   varchar2,
          p_email_type_table1 out email_type_table
    END ms_gen_process_email;
    create or replace
    PACKAGE BODY        ms_gen_process_email
    as
        procedure process_email_master(
          p_metric_name     IN   VARCHAR2,
          p_current_stage   in   varchar2,
          p_action          in   varchar2,
          p_pid             in    number,
          p_object_id       in    varchar2
          as
          begin
          null;
           EXCEPTION
          WHEN OTHERS
          then
             null;
          end process_email_master;
       PROCEDURE get_email_details (
          p_metric_name     IN   VARCHAR2,
          p_current_stage   IN   VARCHAR2,
          P_ACTION          in   varchar2,
          p_email_type_table out email_type_table
       as
       BEGIN
          select subject, email_body, to_receipent, cc_receipent
           bulk collect into p_email_type_table
                    from ms_gen_email_config_detail
           WHERE email_key = (
                    SELECT email_key
                      FROM ms_gen_email_config
                     WHERE metric_name = p_metric_name
                       AND action = p_action
                       and current_stage = p_current_stage
          for i in p_email_type_table.first..p_email_type_table.last loop
          dbms_output.put_line(p_email_type_table(i).subject||p_email_type_table(i).email_body||p_email_type_table(i).to_receipent||p_email_type_table(i).cc_receipent);
          end loop;
       EXCEPTION
          WHEN OTHERS
          THEN
             NULL;
       END get_email_details;
    END ms_gen_process_email;
    but i am getting this error
    Error(15,31): PLS-00201: identifier 'P_EMAIL_TYPE_TABLE' must be declared
    Regards
    Damby

    If you need to call a procedure which has yet to be defined in your package, you can use forward declaration...
    That means that you declare the procedure/function before the place it's going to be called (typically people do this at the top of the package) without providing a body for the code...
    PACKAGE BODY        ms_gen_process_email as
       PROCEDURE get_email_details
          p_metric_name     IN   VARCHAR2,
          p_current_stage   IN   VARCHAR2,
          P_ACTION          in   varchar2,
          p_email_type_table out email_type_table
       ); -- Forward declaration of get_email_details procedure
        procedure process_email_master(
          p_metric_name     IN   VARCHAR2,
          p_current_stage   in   varchar2,
          p_action          in   varchar2,
          p_pid             in    number,
          p_object_id       in    varchar2
          as
          begin
          null;
           EXCEPTION
          WHEN OTHERS
          then
             null;
          end process_email_master;
       PROCEDURE get_email_details
          p_metric_name     IN   VARCHAR2,
          p_current_stage   IN   VARCHAR2,
          P_ACTION          in   varchar2,
          p_email_type_table out email_type_table
       ) as

  • Need to get the values from "Signed" field from PDF form.

    Hi,
    This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
    Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
    Thanks & Regards
    Dinesh

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • I need to add the values stored in the session object into the html textbox

    Dear Sir,
    i have been trying to create an edit employee details page
    What i have done till now is as follow:
    1. Got employee id from HTML page.
    2. Compared it with the id stored in the database.
    3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.
    4. Dispatched the session values to another servlet EditEmpDetails2.java
    what i need to do now
    5. Now i need to set the session values in the text field of the html form
    6. I also need to be able to edit those vales and store the edited values in the database.
    Please help me as i have tried doing it for 1 week without any clues
    i have tried to create a html page which is something like this:
    <html>
    <head>
    <title>Edit Employee Details Page</title>
    <body BGCOLOR="red" text="black">
    <h1 ><font color="black">Edit Employee Details Page</font></h1>
    <form action = "EditEmpDetails" method="Get">
    <table width="50% align="center"
    <tr><td>Employee ID: </td>
    <td><INPUT TYPE="TEXT" name="employeeid"<br></td></tr>
    <tr><td><center><input type="submit" value="submit"></center></td></tr>
    <tr><td><center><input type="reset" value="reset" ></center></td></tr>
    </table>
    </form>
    </body>
    </html>
    design of my servlet EditEmpDetails.java
    public void EditEmpDetails1 extends HttpServlet
    public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
    PrintWriter out = response.getWriter();
    response.setContentType("text/html");
    HttpSession session = request.getSession();
    String employeeid;
    String X = request.getParameter("employeeid");
    System.out.println("Employee iD:" + X);
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:murphy");
    String query = "Select * from users where employeeid=?";
    PreparedStatement stat = con.prepareStatement(query);
    System.out.println(stat);
    stat.setString(1,X);
    ResultSet rs = stat.executeQuery();
    while(rs.next())
    String Z = rs.getString(password);
    if(Z.equals(X))
    String A = rs.getString(1);
    session.setAttribute("employeeid", A);
    String B = rs.getString(2);
    session.setAttribute("firstname", B);
    String C = rs.getString(3);
    session.setAttribute("lastname", C);
    String D = rs.getString(4);
    session.setAttribute("gender", D);
    String E = rs.getString(5);
    session.setAttribute("dateofbirth", E);
    String F = rs.getString(6);
    session.setAttribute("address", F);
    String G = rs.getString(7);
    session.setAttribute("postalcode", G);
    String H = rs.getString(8);
    session.setAttribute("phone", H);
    String I = rs.getString(9);
    session.setAttribute("mobile", I);
    String J = rs.getString(10);
    String url = "/EditEmpDetao;s.java";
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url)
    dispatcher.forward(request,response);
    catch (Exception e)
    system.out.println(e)
    I do not know how to put the values stored in the session object into the html text box

    3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.do you really need to store this in session object?
    5. Now i need to set the session values in the text field of the html form which form? in a new html/jsp page? i suggest go for a JSP
    In your JSP page use JSP expression tags to put the session attributes.
    it's something like : <input type='text' name='employeeid' value='<%= session.getAttribute("employeeid") %>' >and you need to generateanother servlet for saving the details/modifications to the database.
    I think i m clear enough.
    if you need more clarifications. just try it and then post your problem.
    Diablo

  • Need to retain the values of LOV in Apex

    Hi,
    I had created three lovs namely A,B, and C in which A is the parent of B and C is an independent LOV. For parent child realtionship between the LOVS A and B, I had used the Ajax on demand process.
    Now in my project all the three LOVs are mandatory, so what i want if suppose any user clicks on submit button without selecting any value from LOV C, then it must load to the same page and show an error. My problem is that after the page load, LOVs A and B are not retaining their earlier values and set to default values In my application I want to retain them.
    I hope my problem is clear.
    Please help.
    Thanks
    Saurabh

    OK, now it is a different story.
    First, you don't need to remove the page# from the action section as long as it is NOT in the clear cache attribute.
    Second, You said that you are using AJAX to load the value of B , and I beleive that currently you have a JS that fires OnChange on item A. You need to call the same JS code when loading the page as follows:
    In you page attributes :
    Page HTML Body Attribute>> onLoad="your_function();"
    where your_function is the same function you call when you change A's value to get B's value..
    Hope this helps.
    Sam

  • Needs to plot the values in x-axis linearly in obiee

    Hello all,
    I am trying to plot the values in x-axis linearly .
    Actual it should be starting at -100,-50,0,50,100,150,200,250,300,350,400,450........
    But now in my graph it is showing -100,-50,-25,-10,-1,+1,+25,+50,+100,+150..
    Can you please suggest me, how to achieve the actual values in x-axis.
    and also all the questions related to these situation.
    Thanking all.
    Thanks.

    Hi Luis,
    find attached an example ( maybe not easy to understand); but you can cut it and reuse it for
    your needs. Hope it helps.
    regards
    Werner
    Attachments:
    test_sweep.zip ‏108 KB

  • Is it needed to convert the values frm text field to numeric for sql server

    hi all,
    i'm using tomvat4.0,back end sql server 200.
    when i insert the values in to the table it is giving an exception sayin "Error in converting varchar to numeric"
    is it necessary to convert those strings from text fields into int before passing them to the sql query..
    i think it is not necessary for oracle..but not sure with sql server..
    pls help me
    cheers
    chandu

    yap, every thing is fine...
    n i got the solution...when the text field is left blank....the requst.getParameter returns [coe]""(null)
    wen the database is lookin for a numeric it is giving null...which is not acceptable...
    so inserted this code...
    if(request.getParameter("...").equals("")) {
      //assign zero to a variable then insert that variable....
    }thanx for the responses
    cheers
    May the solutions to one's problem pop up in one's mind itself
    chandu

  • How to pass the values to stored proc using presentation variable in OBIEE

    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There are 6 reports say ‘A’,’B’,’C’,’D’,’E’,’F’ in the same subject area.
    The reports are being configured with prompts using either the repository/presentation variables.
    One of the reports say ‘A’ has been configured to pass the values using presentation variables from the prompt in Advanced Tab of the report request to the stored procedure defined in the Execute Before Query section of the connection pool.
    After running another report ‘B’ in the same subject area, upon visiting the report ‘A’ view display error is being seen ( Please have a look below screen shot for your reference) .
    Speculate the issue is around presentation variables of report ‘A’ getting initialized even before running the report.
    Appreciate your earliest advise as this is a prod issue.

    Hi Prasad,
    I got your note, you should not use Session variable syntax to call presentation variable.
    you should use like @{AIC_PROJ_PLAT_SEQ_NO}
    One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
    Hope this helps

  • Unable to pass the values to stored proc using presentation variable in OBI

    Hi All,
    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There is an OBIEE requirement whereby two prompts need to be defined.
    1.     Textbox prompt
    2.     Drop-down prompt
    The dropdown values should be populated using textbox prompt. So, we have used presentation variable in textbox prompt and passing the same to select query of drop-down.
    Until this step, the report works just fine.
    Now, the value in both textbox and drop-down needs to be passed to stored proc.
    While trying to pass the values by using the presentation variable, the following error comes-up saying
    Session variable has no value definition.
    Note:Although the corresponding session variable has been set to default value,still the error appears.
    Please advise.
    Regards,
    Prasad

    "Session variable has no value definition" I'm assuming typo error and it should be presentation variable.
    Set default value for presentation variable that may work

  • Do I need to resize the sparsebundle file after migrating to new larger AirPort Time Capsule?

    Just upgraded my Airport Time Capsule from an old 1TB to a new 2TB version.
    I have migrated the sparse.bundle file by using the ethernet method but now I want to know if I need to resize the file using Disk Utility or does it happen automatically? If it doesn't resize automatically then Apple should at least have some option to automate this process as it seems a natural request.
    Over time people would want to continue using their same old back up and just allow the file to get bigger as it is moved onto a newer larger device and still have access to all the previous old backups all on one device/system.

    It should continue to resize automatically or would if Yosemite worked properly.. since TM in Yosemite is lousy it might well need you to fix it.. It isn't hard.
    See Pondini A8 here.
    http://pondini.org/TM/Troubleshooting.html

  • My screen went completly yellow green color took forever to get it to power back on do i need to take the phone back and get a new one?

    Does any know why the screen turned completley yellow when my battery died??? I just got the phone today and wanna know do I need to return the phone I fixed it after I youtubed how to fix it! Will this keep happening??

    Just get it exchanged.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Getting the value of a user defined environment variable

    hi,
    i have an environment variable called MY_PATH='E:\data'
    I am running a batch file which sets the value of this variable. Then i run my java program. Now from my java program i want the value of the variable MY_PATH. How do i get it?

    See http://developer.java.sun.com/developer/bugParade/bugs/4199068.html and http://developer.java.sun.com/developer/bugParade/bugs/4642629.html
    You can pass the value into the Java program as:
    $ java -DMY_PATH="E:\data" YourJavaProgram
    HTH,
    Binil

Maybe you are looking for

  • Data Execution Prevention closes iTunes

    With great difficulty i installed iTunes on Windows Vista x64, now this is the problem, what do i do ?? I tried to make iTunes an exception to DEP, but DEP says, iTunes has to run with DEP and i cannot even add iTunes to the list of programs that DEP

  • ITunes 9.2 and PDFs

    One of the main things I am excited about the 9.2 update is the fact that I can sync PDFs with my iPad and (future) iPhone 4. I already purchased multiple books through the iBookstore, but have quite a few PDFs that I already added to my iTunes libra

  • ATV1 - Content Streaming Issue

    I am able to access all of my Itunes content via AppleTV (ATV1) but for some reason AppleTV is not showing up as a device in iTunes. I have checked software updates, hard reset, restarted iMac, restarted Time Capsule, and all of the other basic steps

  • You need 3.54 GB of available space to download Mac OS X 10.7. Remove items from your startup disk to increase available space.

    i recently upgraded my memory to 2gb to support download of lion. i am now receiving this message when i try to download lion: You need 3.54 GB of available space to download Mac OS X 10.7. Remove items from your startup disk to increase available sp

  • Windows DEP won't let Adobe run

    Tried making adobe reader an exception in control panel DEP, windows won't allow it.  Tried repairing adobe reader in control panel.  Tried un-installing and re-installing adobe, still no good.  Tried re-starting pc, shutting down and re-starting.  D