Inbox: WorkItem text get truncated

Hi,
The work item text of a standard task created by me is of 110 character. The work item text can hold upto 120 characters.
When a workflow was created, the last few characters in the workitem text was truncated.
Is it SAP limitation or is there any way to get the full text.
Note: I used variable to display the doucment number in the work item text.
Thanks
Suresh Kumar

hi Suresh,
based on my experience, the work item text is limited to 50 characters only.
so if text for work item is longer than that it will be truncated
hopes it helps
cheers

Similar Messages

  • Long Text getting truncated in IW32

    We are using BAPI_ALM_ORDER_MAINTAIN to createa orders with long text.
    When reviewing the long text in the Office integration screen, We can see that all text is there.
    If, a user modifies the long text in the long text window of IW32, any text that does not display is lost when the order is saved
    If a user modifies teh long text in the office integartion screen, no text is lost.
    Any help on the cause and how to prevent this would be appreciated.
    Scott

    hi ,
    thanx for the reply,
    text gets truncated in print preview itself.
    i put breakpoint in  se38  and in sapscript.
    in se38 the variable shows full text, but in sapscript, it gets truncated.
    coding in sapscript
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.5' CH YORIGIN '-0.10' LN
    /:           SIZE WIDTH '+0.3' CH HEIGHT +0.85 LN
    /:           BOX HEIGHT '9.0' LN FRAME 10 TW
    /:           PERFORM PO_TEXT_DISP IN PROGRAM ZTEST_DRIVER
    /:           USING  &EKKO-EBELN&
    /:           CHANGING &PO_TEXT&
    /:           ENDPERFORM
    /:           IF &PO_TEXT& NE ''
    S7           &PO_TEXT&
    /:           ELSE
    /:           ENDIF
    regards
    senthil

  • Text getting truncated in alv report...

    hi friends,
         i am doing an alv report..the requirement is i need to display the user inputs at the top of the alv grid..in that, for a particular field, if the user is not selecting any option, then i need to display all the values in that category...i have concatenated all those values into a variable and displayed it...but the problem is, it is not taking beyond 60 characters as P_HEADING-INFO is only defined as characters of length 60...how to expand the character value of p_heading? thanks all..

    max size is
    types: begin of slis_listheader,
             typ(1) type c,   " H = Header, S = Selection, A = Action
             key(20) type c,
             info type slis_entry,
           end of slis_listheader.
    slis_entry(60) type c,
    so try to create one more Line if u have to much more data to display.
    regards
    Prabhu

  • Program exit to change workitem text

    Hi All,
    I have a requirement to change work item text at runtime, i am using program exit to change the task contrainer variable which is being used to display work item text. i have written a code in program exit to update container element, but it's not reflected to change workitem text, when i check in ln workflow log the variable shows with updated value.
    Please help to solve issue.
    Many thanks,

    Hi Gupta,
    I used below code to update container element.
    CASE im_event_name.
         WHEN swfco_event_after_creation.
            CLEAR l_value.
           CALL METHOD l_wi_cont->get
             EXPORTING
               name  = 'LV_WITEXT'
             IMPORTING
               value = l_value.
             REPLACE '$' INTO l_value WITH lv_id.
           CALL METHOD l_wi_cont->set
             EXPORTING
               name  = 'LV_WITEXT'
               value = l_value.
    With above code LV_WITEXT is updated with new value, but same is not displayed as workitem text in inbox.
    After workitem displayed in inbox if i use FM SWL_REFRESH_WORKITEM_TEXT explicitly to refresh, workitem text getting refreshed.
    Many thanks.

  • E-mails get truncated when forwarded

    When I forward an e-mail from within the e-mail app, the e-mail does not get forwarded completely. For some reason the original text gets truncated.
    I first noticed this on IOS 6 on both the iPhone 5 and iPad 3rd gen.
    Please advice me what to do, because this way the e-mail app is not reliable.
    Kind regards.

    Thank you. I will have to try this out with a known troublesome link, but I don't recall getting an "open with" dialog in these circumstances. Also, as I understand these things (and I probably don't) the links I have tried to use have been communication links rather than a file opening function. The problem I got the other day was on a BBC site and the function of the link (which was an e-mail address) was to enable me to post a question. I was able to use that address to post the question without using the link shortcut - just sent an e-mail.

  • Data getting truncated while exporting report to a text file in crystal 10?

    Hi All,
    I am using crystal 10.When exporting report to a text file ,a dialog prompts asking for Character perinch with a default value 9.If I change the value from 9 to 16 i am getting the correct data(that means character per inch value is 16) and it update "CharPerInch" value in registry under following location to 16.
    HKEY_CURRENT_USER\Software\Crystal Decisions\10.0\Crystal Reports\Export\Text
    The dialog asked for character per inch also has option to select not to prompt again and i also selected that in first go.
    When i export the report again in text format it didn't prompt for number of character per inch but the data gets truncated.
    What i believe is even though it updates entry in registry and reads, it is not using the same value for export. It never consider the value that is in registry, if the check box is not selected then it is using the value entered in the dialog and if the check box is selected then in the next run it uses the default value as 9.
    Can anyone suggest me how to override this problem ? Is there any other setting place in registry where i can enter the number of character per inch.I don't want to crystal to prompt always for character per inch.

    Hi Venkateswaran,
    The other option to avoid truncation of the data could be
    Right click the text filed
    Click on Format Text to open the Format Editor
    On Common tab check the text box for Can Grow.
    This will prevent the data from truncating in preview as well as while exporting to text.
    Otherwise you will have to set the characters per inch to 16 each time. I donu2019t see changing the registry value causing any difference here.
    Regards,
    Aditya Joshi

  • I can no longer see my inbox for texting, only those messages I've sent. How do I get my inbox back?

    I can no longer see my inbox for texting, only those messages I've sent. How do I get my inbox back?

    Tap the Messages button at the top left.

  • Task name appears instead of workitem text

    Hi,
      I have a dialog task. Whn I test the WF frm my system, I am getting the workitem text specified for the task in PFTC and its working fine. but when i test the same workflow in another system with the same user id & pwd, i am not getting the workitem text. Instead the task name is displayed in the inbox.
    Any settings needs to be checked? Plz let me know.
    Thanks,
    Sivagami

    Hi, thr was no translated text maintained for the workitem text .the prob is solved.

  • Alert Messages Get Truncated.....

    Hi Gurus,
    Error Text sent in Alert Inbox gets truncated after a specified length.
    If I configure system alerts I cant change its length.....
    Wots the reason behind it....and wots d solution to it????
    Regards,
    Sriparna

    Hi,
    Plz have a look:
    Alert message data getting truncated in Alert inbox
    Thanks
    Amit

  • SSIS Error Text was truncated or one or more characters had no match in the target code page

    I the same issue or something close.
    Except I have one Field (27) that get a trunacation error
    Error:
    Data conversion failed. The data conversion for column "Column 27" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
    The "output column "Column 27" (91)" failed because truncation occurred, and the truncation row disposition on "output column "Column 27" (91)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
    Data looks like:Red Text is the field that is throwing the error!
    00000412,
    0000000011411001,
    0273508793,
    01,
    "RUTH           ",
    "EDWARDS             ",
    19500415,20080401,
    "N",
    04488013,
    "1",
    "F",
    365094,
    20080401,
    000472162716,
    "1447203880    ",
    43995202341210,
    00120.000,
    0010,
    00008.26,
    00004.96,
    000.00,
    00002.70,
    00007.66,
    0,
    "PROMETH/COD  SYP 6.25-10 ",
    "Y",
    "Promethazine w/ Codeine Syrup 6.25-10 MG/5ML               ",
    0000,
    "001C",
    610020,"WELLP1537",
    "O",
    "N",
    00,
    "D",
    "S",
    "G",
    "ID01V012008782",
    "TOM AHL CHRYSLER              ",
    "M",
    "M",
    "PBD $20/10+40%/20%            ",
    00008.26,
    "1184641367"

    I have found four things that I always check when I run into this problem.  I have yet to find a time when one of these didn't work (specifically helps when reading data from flat files but I suppose most of the four would apply to any source).  Check out my blog post, content repeated below:
    1.  Make sure to properly configure the "Flat File Source".  When setting the connection properties to the flat file, take time to click on the advanced tab and ensure that the" Name", "DataType", and "OutputColumnWidth" properties are set properly.  I have found that if this is setup correctly when the initial connection is created, some if not all of the data type issues and errors can be alleviated.  The "Flat File Connection Manager Editor" can be accessed while initially creating the connection or by double clicking on a flat file connection within the "Connection Managers" for connections that have previously been created. 
    2.  Depending on the order and steps that were used to create the connection to the flat file, sometimes the data types need to be updated in an additional area.  This can be found by right clicking on the "Flat File Source" and selecting "Show Advanced Editor...".  Once in the advanced editor, click on the "Input and Output Properties" tab.  Expand the "External Columns" folder.  For each field being loaded from the flat file there are some configurable properties.  Make sure that the "DataType" field is properly set for each field.
    3.  Something else that can be done if you are sure that the data type is set correctly in both of the two previously mentioned locations is to set the "Flat File Source" to essentially ignore those annoying truncation errors.  On the same "Input and Output Properties" tab, expand the "Output Columns" folder.  For those fields listed, there is a "TruncationRowDisposition" property.  By default this is set to "RD_FailComponent".  This can be switched to "RD_IgnoreFailure" in order to allow the data to successfully pass through the "Flat File Source" even if SSIS believes that truncation is going to occur.  Along with making this change, you can also check the "DataType" in the "Output Columns" as well.
    Caution: If you do set the "Flat File Source" to "RD_IgnoreFailure" as mentioned above, always take time to review the data loaded in the target table to ensure that the integrity of the data was not jeopardized.
    Note:  I have found that when the "DataType" for both the "External Columns" and "Output Columns" is manually updated that it does not remain the same when the advanced editor is reopened.  For this reason, try Steps 1 and 2 before setting the "Output Columns" manually.
    4.  The last thing to try, and this applies specifically to loading data from Excel files as opposed to text or CSV is to set the package to run in 32-bit mode.  Click on "Project" on the top menu and select "Data Imports Properties...".  Click on "Debugging" under the "Configuration Properties" and set the "Run64BitRuntime" to "False".
    Working with data from flat files can sometimes be difficult in SSIS.  By using one or many of the approaches I have listed above you should be able to create a repeatable process that is frequently needed within most SSIS packages.  Be very careful when setting data types within SSIS and make sure to do it upfront when necessary because it can be harder to debug later in the development process.  If the proper changes are made it should not be a surprise to feel a big SSIS developer sense of relief when the screen shows all green.
    Let me know if this works!
    Check out my blog!

  • Text is truncated on the right side of a text field. How to solve?

    Hi group,
    I use CR for the .NET Platform 10.2 (VS 2005/.net2.0). In several cases the texts in my crystal reports are truncated on the right side of the text fields (which can show more than one line and which are set in the way that it increases if more than one line is needed).
    I created the CRs with CR in VS 2003. Then I migrated the VB.net project from VS 2003 to VS 2005. Then, when I opened a CR in VS 2005 and saved it again I got the message that it will be changed to the newer version if I click "yes" (or perhaps it was the "ok" button). I guess that was the moment the CR was migrated to the newer CR version.
    Because of the truncation problem I created one of the CRs completely new with exactly the same settings (i.e. the heigths of the sections, the widths of the text fields, and all the other setting are completely identical to the CR created in VS 2003). Interestingly, the texts are truncated in none of the text fields any more.
    Have I done the migration correcty? (Is it really opening the CR and saving it an saying "yes" or should I rather have done it in another way?)
    Does somebody of you already have had this kind of problem? How could it be solved without creating all CRs anew?
    Does recreating a CR which shows truncation of texts really solve it, or is truncation caused by something else, perhaps a certain property of a CR etc?
    The "printer" is set to "no printer" in all CRs. The truncation does show independent of whether the registry entry "HKEY_CURRENT_USER\Software\Crystal Decisions\10.2\Crystal Reports\Export\PDF\ForceLargerFonts" is set to 1 or to 0.
    Thanks for help in advance
    Kind regards
    Michael

    >
    Ludek Uher wrote:
    > There is a fair number of kbases in the kbase search (https://www.sdn.sap.com/irj/sdn/businessobjects-notes). Most of these refer to fixes. It may be a good idea to get the latest SP for your version of CR - CR 10.2?) and see if that helps. The latest SP for CR 10.2 is here:
    >
    > https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
    >
    >
    > Ludek
    Hi Ludek,
    I already installed crvs05sp1 a few months ago (still traceable by the dir "C:Program FilesCommon FilesBusiness ObjectsPatchesCrystal Reports for Visual Studio .NET 2005 Service Pack 1" on my computer).
    Unfortunately, I cannot find any fitting entry in the kbase. If I search for "text truncation" or "text truncated" i get results but they are about pdf or word or fixed truncation problems in older CR versions.
    It seems as if I am the only one who has to face this problem :-).
    Best,
    Michael

  • In Read_text FM, the data after 256 characters gets truncated

    Hi All,
    In this FM, the internal table can't have string type field. In my case the data is in multiple lines of internal table and I am concatenating into a single field which is of type DESCRIPTIONS(string). I am passing this data to a table in smartform.Only 255 characters are printed, remaining data gets truncated. I am using CONVERT_OTF and SX_TABLE_LINE_WIDTH_CHANGE FMs to create PDF. Is it the limitation or I am incorect here?

    Your posting title is misleading; there's nothing wrong with FM READ_TEXT.  Yes, it returns a table of type TLINE, as you've noted.  Perhaps you could close this post and repost in FORM PRINTING with an appropriate title like: Can't show more than 255 characters of text.....but search first, because you cannot be the first person to encounter this limitation.

  • TitledBorder Text is Truncated

    Hello all,
    This must be a common problem.
    Here's a simple version of the problem: I have a JPanel using a FlowLayout. Within the JPanel I have a JLabel whose text is a single character in length. When I place a TitledBorder around the JPanel, the border's text is truncated because the FlowLayout layout manager does not consider the border text when it gets the size of the JPanel. Please see the sample code below.
    Is there a way to make sure the border's title is taken into account by the layout manager?
    Yes, I know I can get the size of the border's text, convert it to pixels, override the panel's getPreferredSize() method, etc. but that's so ugly.
    import java.awt.*;
    import javax.swing.*;
    public class Tester2 {
      public static void main(String[] args) {
          JFrame f = new JFrame();
          f.getContentPane().setLayout(new FlowLayout());
          JPanel panel = new JPanel();
          panel.setBackground(Color.pink);
          panel.add(new JLabel("X"));
          panel.setBorder(BorderFactory.createTitledBorder("Long TitledBorder Text"));
          f.getContentPane().add(panel);
          f.pack();
          f.setVisible(true);
    }

    I think I know the answer to my own question....
    First, let me say I think this is a Swing bug (perhaps a FlowLayout bug) because the preferred size of the panel does take into account the border's height when using a TitledBorder but not the width. The preferred size of a component should take into account both the height and width of a border (if one is in use). If you run the sample program you'll see the preferred height certainly does take the border's height into account but not the width.
    Second, there is a method in javax.swing.border.TitledBorder:
    getMinimumSize(Component c)
    This method allows a workaround for the truncation of the border's text. I simple set the panel's preferred width to that returned by getMinimumSize() and I'm good to go.
    I'm not 100% sure about all this, I'll investigate more tomorrow and post a bug w/Sun if warranted.
    Any comments or suggestions are still very welcome, of course.
    Hello all,
    This must be a common problem.
    Here's a simple version of the problem: I have a
    JPanel using a FlowLayout. Within the JPanel I have a
    JLabel whose text is a single character in length.
    When I place a TitledBorder around the JPanel, the
    border's text is truncated because the FlowLayout
    layout manager does not consider the border text when
    it gets the size of the JPanel. Please see the sample
    code below.
    Is there a way to make sure the border's title is
    taken into account by the layout manager?
    Yes, I know I can get the size of the border's text,
    convert it to pixels, override the panel's
    getPreferredSize() method, etc. but that's so ugly.
    import java.awt.*;
    import javax.swing.*;
    public class Tester2 {
    public static void main(String[] args) {
    JFrame f = new JFrame();
    f.getContentPane().setLayout(new FlowLayout());
    JPanel panel = new JPanel();
    panel.setBackground(Color.pink);
    panel.add(new JLabel("X"));
    panel.setBorder(BorderFactory.createTitledBorder("Long
    TitledBorder Text"));
    f.getContentPane().add(panel);
    f.pack();
    f.setVisible(true);

  • HTML result gets truncated after including of the JSF page

    Hi there,
    I'm trying to create a page that will include dynamically content of JSF pages from another web application.
    Thus, there is a web application (Pages) that is deployed under web context: /test-pages and another web application (Faces) that is deployed under web context: /test-faces.
    The source code of /test-pages/IndexPage.jsp
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
    <title>
    IndexPage
    </title>
    </head>
    <body>
    <h3>Page Start</h3>
    <jsp:include page="header.jsp"/>
    <br>
    <h1>Index Page of the test-pages application</h1>
    <br>
    <jsp:include page="footer.jsp"/>
    </body>
    </html>
    The source code of /test-pages/header.jsp
    <%
    ServletContext servletContext = request.getSession().getServletContext().getContext("/test-faces");
    RequestDispatcher reqDispatcher = servletContext.getRequestDispatcher("/faces/header.jsp");
    reqDispatcher.include(request, response);
    %>
    The source code of /test-pages/footer.jsp
    <h2>Simple Footer</h2>
    The source code of /test-faces/header.jsp
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <f:subview id="myID">
         <f:verbatim>
              <h2>Faces Header</h2>
         </f:verbatim>
    </f:subview>
    The HTML execution result (http://localhost:7001/test-pages/IndexPage.jsp):
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
    <title>
    IndexPage
    </title>
    </head>
    <body>
    <h3>Page Start</h3>
         <h2>Faces Header</h2>
    Could you help me understand, why the result gets truncated after including of the JSF page.
    Thanks,
    Sasha

    Thanks you for reply!
    Unfortunately, still no luck!
    Any other ideas will be highly appreciated!

  • The last digit of invoice vbeln is getting  truncated  in the file

    Hi Experts,
    I'm facing problem in both quality and production,the last digit of invoice vbeln is getting  truncated  in the file when i do export-> local file ->spread sheet.I'm having an alv report using grid display alv is getting display.when output is displayed  i'm getting vbeln as 0430098109 and when i'm trying to download into XLS file using export local file spread sheet i'm getting vbeln as 043009810, last digit not appering in the file
    Thanks in advance.

    PERFORM reset_component_price.
    LOOP AT tab_documenti .
        IF tab_documenti-waerk = co_krw .
          tab_documenti-netwr = tab_documenti-netwr * 100 .
        ENDIF .
        MODIFY tab_documenti .
      ENDLOOP .
    DESCRIBE TABLE tab_documenti LINES num.
      IF num > 0.
        IF importa = 'X'.
          PERFORM esporta_file.
        ELSE.
          PERFORM stampa2.
        ENDIF.
      ENDIF.
    *&      Form  recupero_trigger_fatturazione
          text
    FORM recupero_trigger_fatturazione.
      SELECT vkorg fkdat kunnr vbeln vtweg spart vbtyp
             INTO CORRESPONDING FIELDS OF TABLE tab_vkdfs
             FROM vkdfs
             WHERE vkorg IN s_vkorg
              AND  fkdat IN s_edatu
              AND  kunnr IN s_kunnr
              AND  vbeln IN s_vbeln
              AND  vtweg IN s_vtweg
              AND  spart IN s_spart
              AND  vbtyp IN s_vbtyp.
    ENDFORM.   
    *&      Form  TERMINO_REPERIMENTO_DATI_DOCUM
    FORM termino_reperimento_dati_docum.
      IF NOT port IS INITIAL. "APAB 26/01/04
        REFRESH l_tab_vbak. CLEAR l_tab_vbak.
        SELECT vbeln
               erdat ernam                "APAB 26/01/04
               vkorg vtweg spart kunnr
               vkbur vkgrp vbtyp auart augru
               INTO CORRESPONDING FIELDS OF TABLE l_tab_vbak
               FROM vbak
               WHERE vbeln IN s_vbeln "EQ tab_vkdfs-vbeln Ceriati
               AND   ernam IN s_ernam "APAB 26/01/04
               AND   kunnr IN s_kunnr
               AND   vkorg IN s_vkorg
               AND   vtweg IN s_vtweg
               AND   spart IN s_spart.
        CHECK sy-subrc EQ 0.
        LOOP AT l_tab_vbak WHERE vkbur IN s_vkbur AND
                                 vkgrp IN s_vkgrp AND
                                 auart IN s_auart AND
                                 augru IN s_augru.
          REFRESH l_tab_vbap. CLEAR l_tab_vbap.
          SELECT vbeln posnr pstyv werks kondm matnr netwr waerk kwmeng
                 netpr prodh taxm1 knumh                "APAB 26/01/04
                 INTO CORRESPONDING FIELDS OF TABLE l_tab_vbap
                 FROM vbap
                 WHERE vbeln EQ l_tab_vbak-vbeln "tab_vkdfs-vbeln.Ceriati
                   AND pstyv IN s_pstyp. "Ceriati
          CHECK sy-subrc EQ 0.
    APAB 26/01/04 start - find order reason
          CLEAR l_tab_vbak-bezei.
          SELECT SINGLE bezei INTO l_tab_vbak-bezei FROM tvaut
                              WHERE spras EQ sy-langu
                              AND   augru EQ l_tab_vbak-augru.
    find client description
          CLEAR : l_tab_vbak-name1,l_tab_vbak-land1.
          SELECT SINGLE name1 land1 INTO (l_tab_vbak-name1,l_tab_vbak-land1)
                                                                   FROM kna1
                                              WHERE kunnr = l_tab_vbak-kunnr.
    Ceriati imposte
          SELECT SINGLE taxkd INTO tab_documenti-taxm1 FROM knvi
                                     WHERE kunnr = l_tab_vbak-kunnr
                                     AND  aland = 'IT'
                                     AND  tatyp = 'MWST'.
          LOOP AT l_tab_vbap WHERE werks IN s_werks AND
                                   kondm IN s_kondm AND
                                   matnr IN s_matnr.
            IF l_tab_vbak-auart = 'Z1OI' AND ( l_tab_vbap-pstyv = 'TAX' OR
                                               l_tab_vbap-pstyv = 'TAD' ).
              SELECT SINGLE * FROM vbup WHERE vbeln = l_tab_vbap-vbeln
                                        AND   posnr = l_tab_vbap-posnr.
              CHECK vbup-fksaa NE 'C'.
            ENDIF.
            CLEAR vbep.
            CLEAR: qta_uscita_t, qta_cons_t.
            REFRESH l_tab_vbfa.
            SELECT vbelv posnv posnv vbeln posnn vbtyp_n rfmng
            INTO CORRESPONDING FIELDS OF TABLE l_tab_vbfa
               FROM vbfa
               WHERE vbelv EQ l_tab_vbap-vbeln  AND
                     posnv EQ l_tab_vbap-posnr AND
                     vbtyp_n EQ 'J'.
            LOOP AT l_tab_vbfa.
              qta_cons_t = l_tab_vbfa-rfmng + qta_cons_t.
            ENDLOOP.
            REFRESH l_tab_vbfa.
            SELECT vbelv posnv posnv vbeln posnn vbtyp_n rfmng bwart
            INTO CORRESPONDING FIELDS OF TABLE l_tab_vbfa
               FROM vbfa
               WHERE vbelv EQ l_tab_vbap-vbeln
                 AND posnv EQ l_tab_vbap-posnr
                  AND BWART NE SPACE
                 AND ( vbtyp_n EQ 'R'
                  OR   vbtyp_n EQ 'h' ).
            LOOP AT l_tab_vbfa.
              IF l_tab_vbfa-vbtyp_n = 'h'.
                l_tab_vbfa-rfmng = l_tab_vbfa-rfmng * -1.
              ENDIF.
              qta_uscita_t = qta_uscita_t + l_tab_vbfa-rfmng.
            ENDLOOP.
            SELECT * FROM vbep WHERE vbeln EQ l_tab_vbap-vbeln AND
                  posnr EQ l_tab_vbap-posnr
                 AND edatu IN s_edatu
                  ORDER BY edatu.
              CHECK vbep-bmeng NE 0.
              MOVE vbep-bmeng TO tab_documenti-menge.
    CLEAR: qta_uscita,qta_cons.
              IF qta_cons_t = 0.
                CLEAR qta_cons.
                IF qta_uscita_t NE 0.
                  IF qta_uscita_t > vbep-bmeng.
                    qta_uscita = vbep-bmeng.
                    qta_uscita_t = qta_uscita_t - vbep-bmeng.
                  ELSE.
                    qta_uscita = qta_uscita_t.
                    CLEAR qta_uscita_t.
                  ENDIF.
                ENDIF.
              ELSE.
                IF qta_cons_t > vbep-bmeng.
                  qta_cons = vbep-bmeng.
                  qta_cons_t = qta_cons_t - vbep-bmeng.
                ELSE.
                  qta_cons = qta_cons_t.
                  CLEAR qta_cons_t.
                ENDIF.
                IF qta_uscita_t NE 0.
                  IF qta_uscita_t > vbep-bmeng.
                    qta_uscita = vbep-bmeng.
                    qta_uscita_t = qta_uscita_t - vbep-bmeng.
                  ELSE.
                    qta_uscita = qta_uscita_t.
                    CLEAR qta_uscita_t.
                  ENDIF.
                ENDIF.
              ENDIF.
              qta_cons = qta_cons - qta_uscita.
    CLEAR: tab_documenti-inco1, tab_documenti-vsart,
                     tab_documenti-bstkd, tab_documenti-bstdk.
              SELECT SINGLE inco1 vsart zterm bstkd bstdk
                                                INTO (tab_documenti-inco1,
                                                     tab_documenti-vsart,
                                                     tab_documenti-zterm,
                                                     tab_documenti-bstkd,
                                                     tab_documenti-bstdk)
                                                      FROM vbkd
                                           WHERE vbeln = l_tab_vbap-vbeln
                                           AND   posnr = l_tab_vbap-posnr.
    IF sy-subrc NE 0.
                SELECT SINGLE inco1 vsart zterm bstkd bstdk
                                                  INTO (tab_documenti-inco1,
                                                        tab_documenti-vsart,
                                                       tab_documenti-zterm,
                                                       tab_documenti-bstkd,
                                                       tab_documenti-bstdk)
                                                                  FROM vbkd
                                             WHERE vbeln = l_tab_vbap-vbeln
                                             AND   posnr = '000000'.
              ENDIF.
    CLEAR makt.
              SELECT SINGLE * FROM makt WHERE matnr = l_tab_vbap-matnr
                                          AND spras = sy-langu.
              IF sy-subrc = 0.
                tab_documenti-maktx = makt-maktx.
              ENDIF.
    IF qta_cons = l_tab_vbap-kwmeng.
                tab_documenti-qta_c = vbep-bmeng.
                tab_documenti-qta_a = l_tab_vbap-kwmeng - qta_cons
                                                        - qta_uscita.
                CLEAR qta_cons.
              ELSEIF
               qta_cons <= vbep-bmeng.
                tab_documenti-qta_c = qta_cons.
                tab_documenti-qta_a = vbep-bmeng - qta_cons - qta_uscita.
    ENDIF.
    l_tab_vbap-netwr = l_tab_vbap-netpr * ( tab_documenti-qta_a +
                                                     tab_documenti-qta_c ).
    MOVE: l_tab_vbak-vbeln TO tab_documenti-vbeln,
                    l_tab_vbak-vkorg TO tab_documenti-vkorg,
                    l_tab_vbak-vtweg TO tab_documenti-vtweg,
                    l_tab_vbak-spart TO tab_documenti-spart,
                    l_tab_vbak-kunnr TO tab_documenti-kunnr,
                    l_tab_vbak-vkbur TO tab_documenti-vkbur,
                    l_tab_vbak-vkgrp TO tab_documenti-vkgrp,
                    l_tab_vbak-vbtyp TO tab_documenti-vbtyp,
                    l_tab_vbak-auart TO tab_documenti-auart,
                    l_tab_vbak-augru TO tab_documenti-augru,
                    l_tab_vbak-bezei TO tab_documenti-bezei, "APAB 26/01/04
                    l_tab_vbak-erdat TO tab_documenti-erdat, "APAB 26/01/04
                    l_tab_vbak-ernam TO tab_documenti-ernam, "APAB 26/01/04
                    l_tab_vbak-name1 TO tab_documenti-name1, "APAB 26/01/04
                    l_tab_vbak-land1 TO tab_documenti-land1, "APAB 26/01/04
                    tab_vkdfs-fkdat  TO tab_documenti-fkdat.
              MOVE: l_tab_vbap-vbeln TO tab_documenti-vbeln,
                    l_tab_vbap-posnr TO tab_documenti-posnr,
                    l_tab_vbap-pstyv TO tab_documenti-pstyv,
                    l_tab_vbap-werks TO tab_documenti-werks,
                    l_tab_vbap-kondm TO tab_documenti-kondm,
                    l_tab_vbap-matnr TO tab_documenti-matnr,
                    l_tab_vbap-netwr TO tab_documenti-netwr,
                    l_tab_vbap-waerk TO tab_documenti-waerk,
                    l_tab_vbap-netpr TO tab_documenti-netw1, "APAB 26/01/04
                    l_tab_vbap-prodh TO tab_documenti-prodh.
    MOVE: vbep-edatu TO tab_documenti-fkdat.
    IF  NOT tab_documenti-qta_a IS INITIAL
              OR  NOT tab_documenti-qta_c IS INITIAL.
                APPEND tab_documenti.
              ENDIF.
    CLEAR tab_documenti.
            ENDSELECT.
          ENDLOOP.
        ENDLOOP.
        CLEAR tab_documenti.
    ENDIF.
    IF NOT boll IS INITIAL. "APAB 26/01/04
        LOOP AT tab_vkdfs WHERE vbtyp EQ 'J'.
          SELECT SINGLE * FROM vbuk WHERE vbeln EQ tab_vkdfs-vbeln.
          CHECK sy-subrc = 0.
          IF vbuk-wbstk = 'C'.
            PERFORM prendi_dati.
          ELSE.
            IF port EQ 'X'.
              PERFORM prendi_dati.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.

Maybe you are looking for