Empty line in long text in order

Hi,
I'm using BAPI_SALESORDER_CREATEFROMDAT2 to create orders. Long texts can be added to the BAPI with the parameter ORDER_TEXT.
I know want to add different information. Therefore I need to insert an empty line between the different lines. How can I do that? If I add a line with just a space in the data element TD_LINE (text_line), it is not working. The BAPI might remove that while order creation.
Any advices?
Thank you

hi,
Do not append this to the internal table. Instead concatenate twice from where you want the blank link.
Example
The table contains the three lines as shown below
This report is required as to submit to the Govt. Department as a Statutory Report.
Manually preparing this form is very difficult. After this development user can get form with minimal efforts as well accuracy regarding data will be more.
But we required to display/update as
This report is required as to submit to the Govt. Department as a Statutory Report.
Manually preparing this form is very difficult. After this development user can get form with minimal efforts as well accuracy regarding data will be more.
Just you need to cancatenate the cr_lf twice at the end of 1st line
This report is required as to submit to the Govt. Department as a Statutory Report.0D0A0D0A
while displaying the long text in the Order it will show the effect.

Similar Messages

  • How to activate Long Text of Order Header in IW31/32

    Hi Expert,
    I have one reqm. like want to upload Long Text in Order Header.
    I have used FM 'Create_Text', its working f9 i.e. creating Long Text for Order Header but not displaying it
    in IW32/33 transaction. Entry for Long Text is available in Table STXL and STXH.
    Please advice me how to activate that Header Long Text which I uploaded earlier.
    Thanks,
    Jay.

    Hi Madhukar,
    Yes I am passing everything correctly, as I am getting Long Text record created in Table STXL & STXH, but not able to see in IW32/33 at the header long text.
    So this is my doubt like how 2 update or activate long text of Order Header?
    Thanks,
    Jay.

  • Incress the lines in long text

    hi experts,
    can we incesss the the number of lines in long text,right now i am able to enter only 5 line i want to make it 10......the t-code is a customized one.

    Hi
    There is no limit as such for entering long text lines.
    In the Text editor you can enter any number of lines.
    we have to fetch it using READ_TEXT fun module and to display in the report/script.
    Reward points if useful
    Regards
    Anji

  • Put Fixed guide line in long text of Notification: IW21

    Hi,
    I have an requirement where I need to put some fixed guide line in the notification long text whenever notification order gets created.
    For an example below guidelines need to be incorporated automatically in the long text of notification whenever they get created
    Ex:
    Long Text Template as follows:
    Detailed description of fault:
    What caused the fault?
    Action taken to date:
              Who:
    Suggested Repair / resourcec:
    Please suggest how can I implement this requirement?
    Appreciate your help in advance.
    Thanks,
    Jay.
    Moderator message : Duplicate post locked. Continue with original thread.
    Edited by: Vinod Kumar on Sep 14, 2011 11:29 AM

    Hi,
         Check the user exit :- QQMA0025 PM/SM: Default values when adding a notification
    For wiring into longtext i think u can update via WRITE_TEXT
    You should also ensure that this information  should not be changed
    regards
    pushpa

  • Propagate long text from order to notification, notification to order

    Hi Experts!
    Like in subject I want to propagate long text from PM order to PM notification and the other way round. If text will be changed in one document it should be changed in second too.
    Have you any idea how to do that?
    Thank from advance
    Bartek
    Edited by: Julius Bussche on May 4, 2009 11:25 AM
    Subject formatting corrected.

    Hi,
    If these are two different fields having different data elements then I dont think its possible until and unless they both have the same data element...
    if they have the same data element I think you can keep the long text for the data element and it will reflect both the sides...
    Regards,
    Siddarth

  • Horizontal lines on long text icon

    Hi,
    I am working on IW32 transaction. When a long exits for any operation, we will be getting horizontal lines on the "Text"(notepad with pencil) icon. If there is no long text or if we delete the long text then these horizontal lines doesn't appear on this icon. My problem is when I am trying to delete the long text in this transaction through my program, the long text is getting deleted but the horizontal lines on icon are still existing. Can you please help me out how to handle these horizontal lines and where are these maintained.
    Thanks & Regards,
    Adithya M.

    are you using delete_text FM or clearing contents ?
    what is the SAVEMODE_DIRECT ?

  • Empty line item added in incomplete orders after upgrade

    Hi,
    We are upgraded from 4.7 to 6.0 version of R/3. After the upgrade in sales orders which were incomplete in 4.7, a empty line item have got added in those sales order. While opening those order in VA02, first line item is completely empty and due to that it doesnot allow me to do anything on that order. Also, on checking the tables such as VBAP, VBKD an empty line item is there.
    Kindly Advice.
    Thanks in Advance.

    Hi Kishore,
    I have already checked SAP notes but got nothing related to it.

  • FI document Line item Long text store in which table .

    Respected Members,
    During posting of the FI document through Tcode F-02 i m giving the some text in the long text not in the text field.
    Please anybody can be help me out where exactly this long text is going to be stored or in which table.
    Through F1 it is saying Field is TXLINE and Structure is RSTXT.
    But  i want the table name.
    Please give me the answer as soon as possible .
    Thanks a lot.

    Hi Lee,
    I am also facing problem in getting the long text information into my on e of the custom report, i need onformtion in longtext field of the accounting document number which is against item posted to vendor.here i am sending you the screenshot of the document number and long text filed and READ_TEXT function module parameters, i  tried with lot of options,but no luck, it would be great if you could provide me some hint on this..

  • How can i get order long text?

    Hi Experts
                 We are developing one order report and trying to get order long text, but we search several tables and we didn't fine which table is the right table to save long text, anyone can tell me how to achieve long text for order.  Thanks in advance.
    Best regards
    george

    Hi George,
    STXL: Long Text (Header - English)
    Extract all records where XTDOBJECT='AUFK' and XTDID='KOPF' and XTDSPRAS in ('E')
    XTDNAME is MANDT+AUFNR
    STXL: Long Text (Operations- English)
    Extract all records where XTDOBJECT='AUFK' and XTDID='AVOT' and XTDSPRAS in ('E')
    XTDNAME is MANDTAUFPLAPLZL
    STXL: Long Text (Components- English)
    Extract all records where XTDOBJECT='AUFK' and XTDID='MATK' and XTDSPRAS in ('E')
    XTDNAME is MANDTRSNUMRSPOS
    This may help you
    Babu

  • Sap script-standard text in order confirmation

    Hi Experts,
    Can anybody solve my problem.I f my problem is solved they will definetely be rewarded with points.
    The standard text will be stored as Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division)
    Text ID = ZSD
    Examples: ORDCONF_TEXT_4000_01_01 ,
    ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01
    The print program /form will need to pick up the
    appropriate standard text based on the Sales Area
    (combination of Sales Org / Distribution Center /
    Division) of the sales order [VBAK-VKORG /
    VTWEG / SPART], provided a standard text has been
    created for that Sales Area. Itu2019s not required
    that every sales area have a standard text, so if one
    is not found, this step should be skipped and
    the rest of the print program executed.
    The new text should print after 2 blank lines after
    the Printable Notes text (which is after the
    line items and the Total Net Price prints).
    The font should be the same size as the Printable
    Notes, but bolded rather than italicized
    The text should print in the same columns as the
    Printable Notes currently print in (Material
    Description / Scheduled Ship Date / Quantity)
    So the logic i have used is this below code:
    I used a subroutine in the layout of the main window becoz i need to print it in the main window below after 2 blank lines of line items.
    PERFORM GET_OBJECT IN PROGRAM ZSDRP001_ORD_CONF_IRE
    USING &VBDKA-VBELN&
    CHANGING &ORDCONF_TEXT&
    ENDFORM
    INCLUDE &ORDCONF_TEXT& OBJECT TEXT ID ZSD PARAGRAPH A1
    I called this subroutine in the print program:
    FORM GET_OBJECT TABLES INPUT_TAB STRUCTURE ITCSY
                           OUTPUT_TAB STRUCTURE ITCSY.
    DATA : TMP_VBELN LIKE vbdka-VBELN,
           TMP_VKORG LIKE  VBAK-VKORG,
           TMP_VTWEG LIKE VBAK-VTWEG,
           TMP_SPART LIKE VBAK-SPART,
           TMP_TXNAM1(40) TYPE C VALUE 'ORDCONF_TEXT_',
           TMP_TXNAM2(100) TYPE C.
    DATA: v_text LIKE tline-tdline.
    DATA : P_V_TEXT LIKE tline-tdline.
    CLEAR : TMP_TXNAM1, TMP_TXNAM2, TMP_VBELN, TMP_VKORG, TMP_VTWEG, TMP_SPART.
    READ TABLE INPUT_TAB WITH KEY NAME = 'vbdka-VBELN'.
    IF SY-SUBRC = 0.
      tmp_vbeln = input_tab-value.
      ENDIF.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT         = TMP_VBELN
       IMPORTING
         OUTPUT        = TMP_VBELN
      CLEAR VBAK.
      SELECT SINGLE VKORG VTWEG SPART
        INTO (TMP_VKORG, TMP_VTWEG, TMP_SPART)
        FROM VBAK
        WHERE VBELN EQ TMP_VBELN.
       IF NOT  TMP_VKORG IS INITIAL AND
         NOT   TMP_VTWEG IS INITIAL AND
         NOT TMP_SPART IS INITIAL.
    CONCATENATE TMP_TXNAM1 TMP_VKORG tmp_vtweg tmp_spart into TMP_TXNAM2 SEPARATED BY '_'.
       CONCATENATE TMP_VKORG TMP_VTWEG TMP_SPART into TMP_TXNAM SEPARATED BY '_'.
         endif.
         CONDENSE TMP_TXNAM2 NO-GAPS.
       PERFORM read_order_text  USING TMP_TXNAM2 CHANGING v_text.
    READ TABLE output_tab WITH KEY NAME = 'ORDCONF_TEXT'.
         IF SY-SUBRC = 0.
         output_tab-value = P_V_TEXT.
         MODIFY output_tab index sy-tabix.
         endif.
         endform.
    *&      Form  READ_ORDER_TEXT
          text
         -->P_TMP_TXNAM2  text
         <--P_V_TEXT  text
    FORM READ_ORDER_TEXT  USING    P_TMP_TXNAM2
                          CHANGING P_V_TEXT LIKE tline-tdline.
        DATA: ztdid  LIKE     thead-tdid,
            zlang  LIKE     thead-tdspras,
            zobj   LIKE     thead-tdobject,
            zname  LIKE     thead-tdname.
      DATA: tlines TYPE STANDARD TABLE OF tline WITH HEADER LINE,
            thead  LIKE thead.
      CLEAR P_V_TEXT.
      ztdid = 'ZSD'.
      zlang = 'E'.
      zobj  = 'TEXT'.
      zname  = P_TMP_TXNAM2.
      CLEAR   tlines.
      REFRESH tlines.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          object                  = zobj
          name                    = zname
          id                      = ztdid
          language                = zlang
        IMPORTING
          header                  = thead
        TABLES
          lines                   = tlines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      LOOP AT tlines WHERE NOT tdline IS INITIAL.
        MOVE tlines-tdline TO P_V_TEXT.
      ENDLOOP.
    ENDFORM.                    " READ_ORDER_TEXT
    But still its not getting printed .Plz tell me where i am going wrong.
    Thanks,
    Sirishaa
    Moderator message - Cross thread locked
    Edited by: Rob Burbank on Nov 10, 2009 9:51 AM

    You do not need to use the subroutine READ_ORDER_TEXT to get another text name because you already have it: TMP_TXNAM2 .
    Pass this value back to your SAPscript, and it is okay.
    Or you can even check the text object is empty or not, if no text is found, print 2 empty lines:
    still use your subroutine to read the text, if no line is found, set TMP_TXNAM2  to empty, otherwise, no change,
    In SAPscript, check the value is empty or not, then print 2 empty line or the text object...

  • Long text problem in sap script

    Hi Experts,
    I have craeted sap script for payment print progrem.. in my sap script one window is text window... client want more then 300 char for that window. for that i use read_text function module... its working fine... but problem is it retrive only one line from long text editor. only 70 char i got.
    below is my coding......
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = '0001'
        LANGUAGE                      = sy-langu
        NAME                          = NAME
        OBJECT                        = 'DOC_ITEM'
      TABLES
        LINES                         = LINES          .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT LINES.
      n = 0.
      l = 132.
      text+n(l) = lines-tdline.
      n = n + 132.
      l = l + 132.
    ENDLOOP.
    in sap script i have direct pass lines-tdline
    *&lines-tdline&
    Please suggest me which point i missing?
    Thanks
    Jigar

    Hi All,
    The standard text will be stored in Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division)
    Text ID = ZSD
    Examples: ORDCONF_TEXT_4000_01_01 , ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01.
    Requirement :
    The print program /form will need to pick up the appropriate standard text based on the Sales Area (combination of Sales Org / Distribution Center / Division) of the sales order [VBAK-VKORG / VTWEG / SPART], provided a standard text has been created for that Sales Area. Itu2019s not required that every sales area have a standard text, so if one is not found, this step should be skipped and the rest of the print program executed.
    The new text should print after 2 blank lines after the Printable Notes text (which is after the line items and the Total Net Price prints).
    The font should be the same size as the Printable Notes, but bolded rather than italicized.
    The text should print in the same columns as the Printable Notes currently print in (Material Description / Scheduled Ship Date / Quantity) .
    So the logic i have used is this below code:
    I used a subroutine in the layout of the main window becoz i need to print it in the main window below after 2 blank lines of line items.
    This is logic in the layout:
    /:PERFORM GET_OBJECT IN PROGRAM ZSDRP001_ORD_CONF_IRE
    /:USING &VBDKA-VBELN&
    /:CHANGING &ORDCONF_TEXT&
    /:ENDFORM
    /:INCLUDE &ORDCONF_TEXT& OBJECT TEXT ID ZSD PARAGRAPH A1
    I called this subroutine in the print program:
    Logic in the print program:
    FORM GET_OBJECT TABLES INPUT_TAB STRUCTURE ITCSY
                                                 OUTPUT_TAB STRUCTURE ITCSY.
    DATA : TMP_VBELN LIKE vbdka-VBELN,
                TMP_VKORG LIKE VBAK-VKORG,
                TMP_VTWEG LIKE VBAK-VTWEG,
               TMP_SPART LIKE VBAK-SPART,
               TMP_TXNAM1(40) TYPE C VALUE 'ORDCONF_TEXT',
               TMP_TXNAM2(100) TYPE C.
    DATA: v_text LIKE tline-tdline.
    DATA : P_V_TEXT LIKE tline-tdline.
    CLEAR : TMP_TXNAM1, TMP_TXNAM2, TMP_VBELN, TMP_VKORG, TMP_VTWEG, TMP_SPART.
    READ TABLE INPUT_TAB WITH KEY NAME = 'vbdka-VBELN'.
    IF SY-SUBRC = 0.
    tmp_vbeln = input_tab-value.
    ENDIF.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING INPUT = TMP_VBELN
    I
    MPORTING OUTPUT = TMP_VBELN .
    CLEAR VBAK.
    SELECT SINGLE VKORG VTWEG SPART INTO (TMP_VKORG, TMP_VTWEG, TMP_SPART)
                                            FROM VBAK WHERE VBELN EQ TMP_VBELN.
    IF NOT TMP_VKORG IS INITIAL
    AND NOT TMP_VTWEG IS INITIAL
    AND NOT TMP_SPART IS INITIAL.
    CONCATENATE TMP_TXNAM1 TMP_VKORG tmp_vtweg tmp_spart into TMP_TXNAM2 SEPARATED BY '_'.
    endif.
    CONDENSE TMP_TXNAM2 NO-GAPS.
    PERFORM read_order_text USING TMP_TXNAM2 CHANGING v_text.
    READ TABLE output_tab WITH KEY NAME = 'ORDCONF_TEXT'.
    IF SY-SUBRC = 0.
    output_tab-value = P_V_TEXT.
    MODIFY output_tab index sy-tabix.
    endif.
    endform.
    FORM READ_ORDER_TEXT USING P_TMP_TXNAM2 CHANGING P_V_TEXT LIKE tline-tdline.
    DATA: ztdid LIKE thead-tdid,
              zlang LIKE thead-tdspras,
              zobj LIKE thead-tdobject,
              zname LIKE thead-tdname.
    DATA: tlines TYPE STANDARD TABLE OF tline WITH HEADER LINE
              thead LIKE thead.
    CLEAR P_V_TEXT.
    ztdid = 'ZSD'.
    zlang = 'E'.
    zobj = 'TEXT'.
    zname = P_TMP_TXNAM2.
    CLEAR tlines.
    REFRESH tlines.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    object = zobj
    name = zname
    id = ztdid
    language = zlang
    IMPORTING
    header = thead
    TABLES
    lines = tlines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    not_found = 4
    object = 5
    reference_check = 6
    wrong_access_to_archive = 7
    OTHERS = 8.
    LOOP AT tlines WHERE NOT tdline IS INITIAL.
    MOVE tlines-tdline TO P_V_TEXT.
    ENDLOOP.
    ENDFORM.
    But still its not getting printed .Plz tell me where i am going wrong.
    Thanks,
    Suman

  • Issue with Capturing Long text using CALL METHOD EDITOR- GET_TEXT_AS_STREAM

    HI Experts,
    Standard Long text is capturing using CALL METHOD EDITOR->GET_TEXT_AS_STREAM
         but not working for Custom Long text – Only changes
    Here is the Issue:
    1)      Created Custom Long text in TAB. --> Good
    2)      Entered few lines in custom Long text  --> Good
             Click on Standard Tab , Leaving Custom tab and Custom Long text-->Good
    4)      In PAI of Custom Tab – Changes captured using CALL METHOD 1 ( See below Code 1)--> Good
    5)      Entered few lines in Standard Long text in Standard Tab -->Good
    6)      Click another Standard Tab
    7)      In PAI of Standard Tab – Changes captured using CALL MEHTOD 2 ( See Below Code 2)-->Good
    8)      Come back to Standard Tab / Standard Long Text , Enter few more lines.
    9)      Change the Tab , IN PAI of Standard Tab/Standard Text , Changes Captured using CALL METHOD2 ( See Below CODE 3) --> Good
    10)   Go to Custom Tab , Custom Long text , Entered few more lines--> Good
    11)   Click on any other tab, Triggered again PAI of Custom tab / Custom Long text using Call Method1 ( See Below Code 4) -->Good triggered PAI same CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM.
    12)   But additional lines are not captured , saying ZERO LINES in Internal Table and IF_MODIFIED = NO  -->Issues lies here.
    CODE1 ( Custom Long text entry capturing – First Few Lines )
    Custom Long text Entries are stored in LS_OUTTAB-TEXT first time when entered few lines and LV_MOD is 1.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT ( FIlled with Lines entered in custom long text )
              IS_MODIFIED            = LV_MOD ( Value 1 , Modified )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    CODE2 ( Standard Long Text Entry Capturing – First Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT first time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE ( Value 1 , Modified )
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED.
    CODE 3 ( Standard Long Text Entry Capturing – Second time Few Lines )
    Standard Long text Entries are stored in SELECTED_TEXT  second  time when entered few lines and FLAG_MODIFIED is 1.
    PAI of Standard tab
       CALL METHOD EDITOR->GET_TEXT_AS_STREAM
          EXPORTING
            ONLY_WHEN_MODIFIED = YTRUE
          IMPORTING
            TEXT                               = SELECTED_TEXT ( FIlled with Lines entered in standard long text )
            IS_MODIFIED        = FLAG_MODIFIED. ( Value 1 , Modified )
    CODE4 ( Custom Long text entry capturing – Second Time Few Lines )
    Custom Long text Entries are not stored in LS_OUTTAB-TEXT Second Time when entered few lines and LV_MOD is 0.
    PAI of Custom tab
    CALL METHOD TEXT_EDITOR1->GET_TEXT_AS_STREAM
            EXPORTING
              ONLY_WHEN_MODIFIED     = CL_GUI_TEXTEDIT=>TRUE
            IMPORTING
              TEXT                                       = LS_OUTTAB-TEXT  ( ZERO ENTRIES )
              IS_MODIFIED            = LV_MOD   ( NOT MODIFIED Flag )
            EXCEPTIONS
              ERROR_DP               = 1
              ERROR_CNTL_CALL_METHOD = 2
              OTHERS                 = 3
    Can anyone help me out of this.
    With Regards,
    Bala M

    Excellent Eitan,
    Here is what I am trying to Achieve.
    In Create Notification IW21 , They need 5 Long Text in Custom Tab ( Say Tab Name is MBR ).
    TAB1 NOTIFICATION Standard Information , TAB2 REFERENCE OBJ , TAB 3 MalFunction , Breakdown Standard one...... TAB 7 ( Custom Tab ).
    In Custom Tab , I added 5 LONG TEXT ( its 5 WHY Concept ).
    When the User enters data in 5 Long text , it should store long text along with Notification number when save.
    But Notification number will be generated @ the time of SAVE , but before that its just shows as
    %0000000001 ( and Number will be generated 1000065479) at Save.
    How to achive this .
    I did this:
    Added 5 Custom Container. and In PBO / PAI
      PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    IN PBO
       CREATE OBJECT TEXT_EDITOR1 ,    CREATE OBJECT TEXT_EDITOR2,    CREATE OBJECT TEXT_EDITOR3 like wise 5
       CALL METHOD TEXT_EDITOR1->SET_TEXT_AS_R3TABLE ,    CALL METHOD TEXT_EDITOR2->SET_TEXT_AS_R3TABLE .. Like wise 5 , So when the user Click on Custom Tab ( MBR ).
    It give 5 Long text.
    When he click tab1 or tab2 or tab3 .. and again tab MBR , still data is available.
    How to store this data for future retrival ( IW22 or IW23 ) ?
    Its working fine when I enter first time and goes here and there and finall save .
    IN SAVE BADI , I imported the Long text and created Standard Text SO10 with Notification Number with LONG1 , LONG2 .. means 1000065479LONG1 as standard text.
    But not working when I entered first time and go to tab1 and tab2 and then to MBR tab and added few more lines , its not exporting full lines and in IMPORT ( SAVE BADI ) giving ZERO Lines.
    Please help and thanks for your quick response.

  • HasMoreTokens detecting and counting empty line

    Hi programmers!
    how can i count empty line in a text file which has the data?
    suppose the text file with data is as follows:
    =====================
    c 500
    c 2100
    // <== empty line
    p 550
    c 5950
    c 3000
    =====================
    I want to display "Invalid record" when that empty line comes
    I tried following to execute "IO.print("Invalid record") line
    if(str.equals(" "))  / / also/  if (str.nextToken == false) /also / if (string.hasMoreTokens())
                   IO.print("Invalid record");
             }

    If (line.equals(""))
    or
    if (line.trim().length() == 0)

  • GR Page headers empty for 1st page for Long Text greated than 26 lines

    Gurus,
    I have this wierd problem on my GR. I added the following code and corresponding fetches in the printprogram to include PO Item long texts in the GR.
    /: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE E PARAGRAPH Z8 NEW-PARAGRAPH Z8 
    When the text is upto 26 lines, everything seems fine. But when it is more than 26 lines and usually a new page needs to be created, all the dynamic texts like PO number, Buyer name, Plant name etc. in the header of the 1st page is blank. But all the details in the second page seem to apprear fine.
    Any suggestions on where to or what to look for to solve this problem?
    I'd appreciate any help with this problem.
    Thanks
    L

    Yes...the way the current print program works is that the header and footer contains information like PO number dat, buyer, isuued by etc and these will print on each page that is created. These are populated prior to the area where write forms for Main are issued.
    The main page contains the Item related information. I have added a code where the long text is also obtained before all the write forms. I then issue write form in the same subroutine where other Main-related write forms are coded.
    L

  • How to create long text in production order?

    Hi,
    i have found that i could only change long text in the
    production order by 'SAVE_TEXT'.
    but i want to create long text and any advice?

    DATA:TEXT_HEADER LIKE THEAD.
    DATA:TEXT_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.
    data: t_ponum  like BAPI_ORDER_KEY-ORDER_NUMBER.
    t_ponum = '000040000068'.
    TEXT_HEADER-TDID ='KOPF'.
    TEXT_HEADER-TDOBJECT = 'AUFK'.
    TEXT_HEADER-TDSPRAS = sy-LANGU .
    CONCATENATE SY-MANDT t_ponum INTO TEXT_HEADER-TDNAME.
    clear text_lines.
    refresh text_lines.
    text_lines-TDFORMAT = '*'.
    text_lines-TDLINE = '12567'.
    append text_lines.
    text_lines-TDFORMAT = '*'.
    text_lines-TDLINE = 'lg'.
    append text_lines.
    text_lines-TDFORMAT = '*'.
    text_lines-TDLINE = 'prh'.
    append text_lines.
    text_lines-TDFORMAT = '*'.
    text_lines-TDLINE = 'ueue'.
    append text_lines.
    CALL FUNCTION 'CREATE_TEXT'
      EXPORTING
        FID               = TEXT_HEADER-TDID
        FLANGUAGE         = sy-LANGU
        FNAME             = TEXT_HEADER-TDNAME
        FOBJECT           = TEXT_HEADER-TDOBJECT
                     SAVE_DIRECT       = 'X'
                     FFORMAT           = '*'
      TABLES
        FLINES            = text_lines
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        CLIENT          = SY-MANDT
        HEADER          = TEXT_HEADER
        INSERT          = ' '
        SAVEMODE_DIRECT = 'X'
      TABLES
        LINES           = text_lines.
    CALL FUNCTION 'COMMIT_TEXT'
      EXPORTING
        OBJECT          = TEXT_HEADER-TDOBJECT
        NAME            = TEXT_HEADER-TDNAME
        ID              = TEXT_HEADER-TDID
        LANGUAGE        = sy-LANGU
        SAVEMODE_DIRECT = 'X'.

Maybe you are looking for

  • WRT310N v1 and MacBook Pro wireless issues

    Hi all, I've been having ongoing wireless issues with my WRT310N v1. I have a macbook pro (early 2009) with mac os 10.5.8. I have cable internet, with a DHCP connection. I have a computer and PS3 hardwired through the router, and they work flawlessly

  • IDSM-2 and VMS problem with version software

    I use a IDSM-2 with software ver. 4... IDSM-2 is managing by VMS ver. 2.0. Since 2006 I couldn't taking new signature What can I do to upgrade IDSM to higher version ( IPS ver 5...) and which version VMS manage properly IDSM-2 with version software 5

  • Transferring User-Entry Cells from Excel Files

    Hello, I apologize in advance if this is a question better answered in a Microsoft Excel forum, but I saw some really good discussions here, and I think my question applies just as much to Acrobat. I work at a college and we create a lot of excel fil

  • Metadata Management Setup connection error

    I'm trying to install BO Metadata Management (3.0) over a BO XI R3.1, to try it's features and testing. After the setup launch of "Metadata Management" I fill my credentials to log on to BO CMS, but the setup fails with "Test connection failed" error

  • How do you combine a stacked column chart with a clustered column chart

    Hello, I am trying to combine a stacked column chart with a clustered column chart. I know that in Excel there is a way to trick that described on the next site: http://people.stfx.ca/bliengme/ExcelTips/Columns.htm Is that possible with BI Publisher?