SAPscript - output of delivery item text field

Hello,
I would like to show an item text field of a delivery (VL02n) on one of the output script forms.
I've used the function read_text in my print program for the output type:
DATA: BEGIN OF TEXT_CARTONQUAN OCCURS 20.    
      INCLUDE STRUCTURE TLINE.
DATA: END OF TEXT_CARTONQUAN.
CALL FUNCTION 'READ_TEXT'
             EXPORTING
               ID        = 'Z005'
               LANGUAGE  = SY-LANGU
               NAME      = VBDPL-TDNAME
               OBJECT    = 'VBBP'
            IMPORTING
               HEADER    = THEAD
            TABLES
               LINES     = TEXT_CARTONQUAN
            EXCEPTIONS
               NOT_FOUND = 1.
        READ TABLE TEXT_CARTONQUAN INDEX 1.
        MOVE TEXT_CARTONQUAN-TDLINE TO VBDPL-USR01_VBLB.
Now I put this code into my sapscript:
IL    &VBDPL-USR01_VBLB&
For some reasons, it does not come up on the form, but I know it should have a value.
Am I missing something?
Thanks,
Anne
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jan 7, 2009 11:25 AM

Hello,
thanks for the answers!
@Ramiro Escamilla  
I've tried that already, but for some reasons, the break point doesn't work, it is not stopping during the print out. I've tested if it is using that print program and uncommented the entry subroutine and I got an error message then, so it's the correct print program. Any suggestions why break point is not working?
@Pawan Kesari  
I did that and this is working. But the problem is, I need this value within an IF statement, because I only want to give this and some text out, if  INCLUDE &VBDPL-TDNAME& OBJECT 'VBBP' ID 'Z005' has a value. Unfortunately I cannot use the Include statement within an IF statement.
Thanks
Anne

Similar Messages

  • How to configure the delivery item text is required text

    Dear All,
            I have issues about delivery item text.  I would like to know how configure to delivery item text is required text (if not enter the text then cannot save delivery and show error message).
           In configuration about delivery text in text control. I configure the delivery item text is (text is obligatory) but the delivery item is only show at incompletion log but not requried field.
           In configuration about incompletion control for deliveries. No table and field is about delivery item text. I trial to enter PTEX(item texts) in field: Screen for creating missing data. The result can detect missing delivery item text but cannot specific delivery item text. If I enter other item text then the delivery can be saved. In additional, when I open screen delivery item text and not enter the delivery item text, the delivery can be saved.   These are incorrect. I would like to check the delivery item text is required text.
           Please suggest me how to solve this issue. Thank you very much. 
    Best Regards,
    Lek Lexus

    the

  • Sales order item text to delivery item text

    Hi All,
    Please find my query below :
    sales order is maintining  item level text . is there any posibility to update same text at the item level in delivery ?  Means after creating delivery the sales order item text tranfered to delivery item  text.
    How can i update the sales order item level text to delivery item level text.
    is there any user-exit or any configuration process or any other process. please let me know
    Thanks in advance
    Regards
    Sudhakar

    Check this [link|http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf]
    Refer to page 19. you will have to assign the requirement to the access sequence of the header/item text determination, this, you can ask your functional consultant to do it,. If you want to code your own requirement, then refer to the link that I provided you above.
    KR,
    Advait

  • With Oracle Portal 11g Item Text field there is no limit 32k?

    I have a question to O, then Oracle Portal 11g Item Text field there is no limit 32k? Because the version old is limited to 32k for fieldText Item Text. When i add Item text than 32k have error :
    http://btcportal.btc/portal/pls/portal/PORTAL.wwv_add_wizard.edititem
    400 Bad Request
    Unable to process request. Please check the log file for more details.
    thanks!

    Text items are still limited to 32k in Portal 11g. Check the Portal Online Help section 'Add/Edit Text-Based Item' for documentation of this limitation.
    Thanks,
    Erik Janssen

  • From line item text field in Fi not posted to COPA characteristic field?

    How do you create the link from the Line item Text field in FI to a characteristic field in COPA?
    I tried to create a characteristic field Text. from the domain VBELN in COPA.
    Although I can post from CRM the contract number to the Line itemText field in FI posting,
    I can't get this contract number to post to a characteristic field in COPA.
    Thanks,
    Sony

    program a bdc to tcode fb09
    A.

  • Fill BSEG-LIFNR and LFA1-NAME1 in line item text field of Bank GL line item

    Hi all,
    I need to develop a program to populate the Vendor Number (BSEG-LIFNR) and Vendor Name (LFA1-NAME1) in the line item text field of Bank GL line item.
    The UI design will have the input data as:
       - Company Code
       - Posting Dates (both from and to date)
       - Execute Icon
    Please let me know how to proceed on this.
    Thanks and regards,
    Anishur

    program a bdc to tcode fb09
    A.

  • How to reference SQL column value for  page item text field

    greetings,
    I created a simple report based on sql query. the query is select employeeid,salary from emp_tbl. under the report column i see employeeid and salary. I created a page item text field with the source type pl/sql function body. inside this source is simple block.
    begin
    if salary < 10000 then
    return (1);
    else
    return (2);
    end if;
    end;
    from the error i take it that it doesn't understand salary. I have tried bind variable (:salary) , hash marks (#salary#), ampersand (&salary.) but nothing works. Is this even possible?
    thank you,
    mon

    Hi Mon,
    I think you will find that anything you do in Forms, you can achieve in Apex, but you may have to think a little differently. Finding direct equivalents in both environments may not be easy or even possible in some circumstances, but with a little knowledge and thought an equivalent overall business flow can be achieved that is just as efficient.
    For example, in Forms where you have a multi row block based on a table, if you need to add any derived fields then you will add these at the block level. I can see that this is what you are trying to achieve in Apex.
    In Apex this will be more easily achieved by specifying the derived fields as part of the query for the region, and if the derivation of the fields is complex you can use user defined functions. If you require page type items to be displayed such as text boxes, LOV's, radiogroups, datepickers etc then these can be embedded in the query with the use of the Apex API, see the APEX_ITEM supplied package.
    I know this is still very high level, but I hope it helps you on your way in your journey with Apex.
    Regards
    Andre

  • Line item text field from MIGO are not copied into FI line item text field

    Hi all on SCN, please, I need a help.
    It was created as required by the user a field status group with the text field required.
    This field status group was assigned to some accounts, in order to make my unit tests.
    u2003
    In development envirionment was made some tests directly in FI area, and it works properly.
    u2003
    But the user made a test using MIGO transaction, choosing in this transaction an account that he changed its field status variant to the one created in development environment, that make the text fiels required. So, to start, he donu2019t fill the text item of MIGO, and a message error appear stating that he needs to enter values in this field.
    After fill in the text fiels, he can save his work.
    u2003
    But the FI document generated donu2019t receive the line item text typed in MIGO, but receives the values on Reference document and Document Header text entered in the header of MIGO, what is missing, donu2019t is automatically copied MIGO text line items to FI documents line Items, does there is some additional configuration missing?
    Hope someone help me with this issues.
    Thanks in advanced!

    Hi,
    Material document will get updated in reference field in FI by default.  If for any reason, want to get this updated in text field, you need to define a subsititution in GGB1.
    Best Regards,
    Madhu

  • The payment request do not transfer the Item Text field to FI doc

    The payment request do not transfer the Item Text (SGTXT) field to FI documents (accounting document) when they are paid by F111 and the payment request is created from repetitive codes (Trx FRFT_B). Therefore is not able to display a text description in the FI line items accounts, even the payment request document number is not available in the accounting document.
    Even the program SAPLKKBL (F8BT) does not contain available the Accounting document.
    So, there is not easy trace.
    Does anybody know how can I match this?

    This is the SAP Response:
    Dear customer,
    The standard FRFT_B transaction does not directly or indirectly pass
    the text to the F111 payment document since the initial program design.
    In other words, you will not able to experience the reported issue
    in the system with standard SAP coding.
    However, the text value can be passed via business transaction event
    (BTE) for example or other modifications as a substitution.
    I hope this confirmation of the standard system behaviour is
    useful to you.
    I regret not to be able to give you a positive answer.

  • Withholding tax code in line item text field

    Dear All,
    Please suggest me on the below matter,
    When we will pass a vendor invoice through FB60 we will mention the Withholding tax type
    and tax code for withholding tax deduction from vendor . Then withholding tax line item will
    generate automatecally, but there will be nothing in the text field.
    I want that the withholding tax code will come automatecally in the text field after posting the entry.
    Is it possible?
    Regards
    Amitava

    Hi,
    You can define Text for line items in OB56. Just define Text ID and enter your text and tick the check box "Control Display". Now you can define Substitution rule and replace the Text "=XY" in text field (If you have defined Text ID XY in OB56).
    You can also try to maintain user exit with reference to OB56.
    Regards,
    Jigar

  • MIGO Item Text  field

    Dear Experts,
    Want to check with you all, how to made MIGO "Item Text" (SGTXT) field a mandatory field?
    And is there any way to insert the item text back to posted material document. Because user claimed that in GL line item they want to see all the item text description which currently is blank.
    Thanks a lot,
    Kiran D

    Hi Kiran
    Answer for your first question is that you can make SGTXT field as mandatory but not at MIGO(document level) but at Mvt type level.
    Path is Goto SPRO->MM>IM->Settings for enjoy transaction--->field selection per mvt type.there select your desired mvt type and make SGTXT field as "required".
    Answer to second question is NO, once posted you can not do any changes to Material Doc. only way is to cancel it and then proceed again.
    Regards
    Yogesh

  • MB51 Item text field entry procedure

    Hi Experts
         I am an abaper who has limited  knowledge of MM . Now my requirment is to find the tcode where the text to be displayed in MB51 Item should be entered . Where should we enter it for it to get displayed in the text field of MB51 item,Plz suggest .
    Edited by: Martina Floriette on Apr 16, 2010 7:18 AM

    Please check this path for activating this check:
    SPRO>MM>Inventory Management and Phy Inv>Reporting>Define field selection for material document list, click execute, here you see all the fields, you need to enable check on S = Selection field for whichever field you want displayed in selection criteria of MB51, and click save and when you execute MB51, your new field will be displayed in the selection criteria of MB51.

  • Item text field

    HI
         we develeping zreport in the report i need to add a column which has to show the data from po item text so fromwhich field and table i will get this inputs .
    Thanks & Regards,
    Raman.

    item text is stored in table STXH and STXL.
    you need to use function module READ_TEXT to access and retrieve the text.
    go into a PO with Me23N and double click the long text.
    SAP will take you to the Text Editor. Here chose from menu GOTO > Header.
    The pop-up will give you all the parameters that you need to retrieve the text via the function module.

  • Issue output options for reprinting output for delivery items

    Hi Gurus,
    I want to create the new output for delivery but at item level.
    There is a standard proceduere available for trigger output at item level.
    But I am not able to find the option to re-issue or see the print preview as that is not option is available in the standard menu at VL02N.
    Due to this I am not able to debug the code as during triggering the output at item level both the program and script are called in background.
    So is there any standard option available at item level to see the print preview as we can at header level.
    If you requried any additional information then please let me know. Eagerly waiting for the reply.
    Regards,
    Sagar

    Hi Arun,
    Yes I want output to be trigger at the item level in the delivery.
    If i tirgger the output that output at item level, i see the ouput as green (ie successful)
    but when i got menu and try to issue to output i do not see this output type in the list and shows all header output types only..
    Due to this i am not able to debug my program when doing print preview..
    So i need a way where i can see the my program in debugging mode.
    And VT70 is not useful to me i do no shippment no. but I have only delivery with me.
    Regards,
    Sagar

  • Which field from idoc INVOIC01 maps to Item Text field in MIRO transaction?

    Hi
    Will anybody please tell me which of the field in which segment of IDOC INVOIC01 maps to Item text (INVFO-SGTXT) field in Basic data tab of MIRO transaction

    Thanks Ravi for your response.
    But I have tried with all fielsd related to texts in IDOC but it is not being filled in transcation .
    If you see the F4 help in text field then Text Id is four character and when I manually assign this in transactin then it is putting = symbol in fron of the id. And then if we save or go to other tab then it is filling text.
    I am not able to find the error bcoz document is being posted through idoc but text field is not getting filled.

Maybe you are looking for