Carriage Return in line Text for invoice line item.

Hi,
I am trying to create an non PO invoice through calling a BAPI "BAPI_INVOICE_CREATE"
in which  i am passing all the required data . I have a field called "SGTXT" which is item text and i am passing this field
which has maximum length of 50 char i just want to add a new line characters on to it. i.e want to support Carriage Return
just want to know whether it can hold Carrige Return.
I just tried by entering some Characters and hitting Enter the value which i am passing is simillar to
itemtext
"abcdabcdabcdabcd#
abacdabcdabcd#
abcdabcd"   My program is not able to parse this values hence landing into dump.
How should i support this scenario.
Thanks,

Here is the dump.
The termination occurred in the ABAP program "SAPLZIBA_SSP_READ_CSV" in
"LINE_TO_CELL_ESC_SEP".                                                 
The main program was "ZIBA_SSP_INVOICELOAD ".                                                                               
The termination occurred in line 149 of the source code of the (Include) 
program "LZIBA_SSP_READ_CSVF01"                                       
of the source code of program "LZIBA_SSP_READ_CSVF01" (when calling the
editor 1490).                                                           
        IF i_string CS l_pipe.                     
          l_stringlength = strlen( i_string ).     
          DO l_stringlength TIMES.                 
            REPLACE '  ' WITH '""' INTO i_string.  
            IF sy-subrc NE 0.                      
              EXIT.                                
            ENDIF.                                 
          ENDDO.                                   
        ENDIF.                                     
        ASSIGN I_STRING(L_INT) TO <L_CELL>.        
        I_INTERN_VALUE = <L_CELL>.                 
      endif.                                       
      L_INT = L_INT + 2.                           
      I_SIC_INT = L_INT.                           
      I_STRING = I_STRING+L_INT.                   
    ELSEIF I_STRING CS C_ESC.                      
    letzte Celle                                 
      L_INT = SY-FDPOS.                            
      if l_int = 0.                                
        clear i_intern_value.                      
      else.                                        
        ASSIGN I_STRING(L_INT) TO <L_CELL>.        
        I_INTERN_VALUE = <L_CELL>.                 
      endif.                                       
      L_INT = L_INT + 1.                           
      I_SIC_INT = L_INT.                           
      I_STRING = I_STRING+L_INT.                   
      L_INT = STRLEN( I_STRING ).                  
      IF L_INT > 0 . MESSAGE X001(KX) . ENDIF.     
    ELSE.                                          
      MESSAGE X001(KX) . "was ist mit csv-Format   
    ENDIF.                                         
  ENDIF.                                           
Can you let me knwo how should i put my condition to support CR .
thanks,

Similar Messages

  • How to get the texts for each line item for Sales order in a smartform

    I'm createing a smart form in which i need to display certain texts for each line item of a sales order. How can i get those??
    I'm trying with the table STXH and FM read_text... but i'm not clear how and what i'm getting... can anybody pls help me.....

    Hi There,
    But then i will be getting only the value. i want to link that against the particular material of the Purchase Order.
    Like for ex:
    PO No.  Material Code        Line Item        Basic        Excise       Tax       Inv Value
    0000001 5000251                010               100           16         4.64      120.64
    0000001 5000252                020               200           32         9.28      241.28
    Can u help me on this?
    Regards,
    Jitesh

  • Post long text for document line item via FI-GL Inbound IDoc

    Hi guru,
    I am trying post extension ZFIDCP02 linked basic type FIDCCP02 and message type FIDCC2 IDoc in R/3 (4.6c) via IBM Websphere (Inbound IDoc),
    I am use inbound function module IDOC_INPUT_FIDCC2 and activate exit 008 (EXIT_SAPLF050_008) and exit 002 (EXIT_SAPLF050_002),
    In the extension ZFIDCP02 and under E1FISEG, I am add my segment  ZITEXT include field TDSPRAS, TDID, TDOBJECT, TDLINE.
    I am send  ZFIDCP02 IDoc via IBM Websphere no error  but all field TDSPRAS, TDID, TDOBJECT, TDLINE in my segment  ZITEXT not post in FI-GL.
    How can I  post long text for document line item (ZITEXT) in FI-GL ?.
    and I'm mean post ZITEXT to bank statement via IDOC.
    Please throw light on this  and  may be I  'm want solution or example ABAP code for exit 002 (EXIT_SAPLF050_002).
    Thanks in advance,
    Akkapong Pirachai
    CAT Telecom
    Edited by: Akkapong Pirachai on Aug 20, 2008 7:40 AM

    Close question because long time for answer.

  • F110 Text for payment line items.

    Hi,
    Can any one help in this regard. How will the system capture the Texts for payment line items, I require this for ACH payment.
    Suppose  I paying to a employees, there may be so many payments like for eg: Payroll, Gas Bill, Reg Salary, Ins Prem, etc. where should I configure this, inorder the system will pick the correct text so that it can be displayed in ACH layout.
    Can anyone provide a solution for this I need to complete the requirement for ACH.
    Thanks,

    Hi Biju
    I am not clear what you are expecting.  You can make these setting in the default note to payee (if you want to see what items you can enter in the note to payee, please see the structure FPAYP, FPAYH and FPAYHX)
    Thanks
    Ashok
    Assign points for useful answer

  • Partial Payment (with invoice reference) for Invoice-based items

    Hi Gurus,
    I'd like to make partial payments to credit memos while "Include partial payment" is activated.  However, if i activate "Include partial payment, partial payments for invoice-based items are no longer possible (partial payment amount is displayed only, and full amount is automatically applied).
    My credit memos were posted via BAPI_ACC_DOCUMENT_POST.  I've read that when using BAPI, invoice reference field is automatically populated with "V".   
    Can you please enlighten me what is SAP's logic behind this.  How does SAP determine invoice-based items?  And is there a workaround so I could still make partial payment while it is activated?  Thank you.
    Regards,

    Hai Dianne,
    Check it once OBA4 & OBA4 t.codes both are Tolerance Group
    Regards
    Madhu I

  • Function Module or BAPI to update Short text  for sales order item(vl02n)

    Hi All,
    I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
    Does any body know any Function Module or BAPI which can accomplish this purpose .
    Or else writing BDC is the only option I have got ? .
    Please clarify .
    Thanking you in advance .
    With Regards,
    Suriya .

    Hi
    You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
    Regards
    MD

  • Wrong short text for sales order item

    Hi guys,
    I have an issue for the short text for sales order item. It is werid that I get the different short text depends on how we enter the material. If we only enter the material #, we get the short text for sales order item from material master data. If we enter the material #, plant and storage location, we get the short text for sales order item from customer material infor record. However, the customer material infor record is only maintained for inter-compnay transaction. System should not pick it for third-party transaction.
    I found a code in FV45PFAP_VBAP_FUELLEN:
    Bei Primärbedarfen ist MAAPV-ARKTX nicht relevant
        if vbak-vbtyp ne vbtyp_pbed.
          vbap-arktx = maapv-arktx.
        endif.
    Kundenmatinfo hat höhere Priorität
        if knmt-postx ne space.
          vbap-arktx = knmt-postx.
        endif.
        if da_arktx ne space and
           svbap-tabix = 0 and
           vbapin-matnr = vbap-matnr.
          vbap-arktx = da_arktx.
        endif.
    But it is nothing customized. Who can tell me what is wrong here?
    Thanks,
    DL

    Hi,
    Text coming from source (MMR, CMIR etc.) is being "pulled" via the access sequence. Check the Text analysis in your sales order in Tab Texts, at item category level.

  • Need help to change line item text for 220 Line items

    Hi Specialists,
    The user has posted a reversal entry ( doc type : Manual Accrual) using TCODE FBS1.
    It has 220 line items.
    Is there a way in SAP he can change the text of All Line Items for a particular document number in one shot ( Mass Change).
    Pls note : Header text remains same . Only the line item text needs to be changed in one shot .
    For Eg :
      1 50 2758000047 Accruals for CAS               Accrl - Dec 08 / Nalini Marketing(Door Mats) - Oth
      2 50 2758000047 Accruals for CAS               Accrl - Dec 08 / SKC - M&E Repair
    Changed Description:
      1 50 2758000047 Accruals for CAS               Accrl - Jan 09 / Nalini Marketing(Door Mats) - Oth
      2 50 2758000047 Accruals for CAS               Accrl - Jan 09 / SKC - M&E Repair
    Thanks,
    Abhinav.

    Hi
    This is possible, please follow as below:
    If it is GL (FBL3N), Customer (FBL5N), Vendor (FBL1N) line item use the TCODE' mentioned.
    In the selection screen, if possible give all the document numbers (it is possible with addition selection).
    Once you get the output with the line item, select all line items and go to the menu options  there you can see the mass change option, it will give one popup screen give the new value in the text field and proceed further.
    VVR

  • Logic to get same text for 2 line items

    hi all,
    i have an issue in my report,
    i have a final internal table. fileds in the table are
    bukrs  belnr gjahr buzei  sgtxt
    0010  12345  2008  01      text
    0010  12345  2008  02      -
    now the problem is if the belnr is same thn in the final internal table the above sgtxt shoud come for second line item if the second line item is initial ,i shoud get the output as
    bukrs  belnr gjahr buzei  sgtxt
    0010  12345  2008  01      text
    0010  12345  2008  02      text
    please help me how to write code for this

    Hi,
    Use this :
    Loop at itab.
    if itab-sgtext is initial .
    read table itab into wa with key bukrs  =  itab-bukrs
                                       belnr = itab-bukrs
                                       gjahr = itab-bukrs
                                        buzei = itab-bukrs
                                        sgtext <> space.
    if sy-subrc eq 0.
    itab-sgtext = wa-sgtext.
    modify itab transporting sgtext.
    endif.
    endif.
    endloop.
    Hope this helps.
    Rgds,
    Sandeep

  • PAAPINVW -- how to fetch values for invoice line level details

    My requirement is such that we define one of our account segments at invoice line dff's while creating the invoice against a project. So the ccid would need to driven from this invoice line dff, to be complete and valid.
    Project Supplier Invoice Account Generator (PAAPINVW) has already defined attributes for Invoice Header DFF's and Invoice Distribution level DFF's; but Invoice line level DFF's have not been defined.
    Also there are no attributes that would help me query the invoice line to fetch these details.
    Working on this workflow in R12. Has anyone tried to fetch any sort of details from invoice lines, using any existing attributes in PAAPINVW; or has anyone done something in accordance to this??
    Looking for suggestions.. have anyone faced a similar situation before??

    Hi user;
    Pelase check below note cause and solution part please,which at least can gives u some ideas
    Projects Supplier Invoice Account Generation Error: APP-SQLAP-97734: The System Cannot Generate Distributions [ID 823787.1]Regard
    Regard
    Helios

  • Ignore carriage return in a text area

    Hi
    I've a JTextArea of 3 rows on an applet screen.
    I want to disable the carriage return key on the text area.
    Thanx in advance

    Look at the API documentation for JTextField; it contains an example of a class called UpperCaseField. You could modify this code to ignore line-end characters; the concept works with JTextArea as well as JTextField. This code would prevent people from pasting line-end characters as well as from keying them.

  • Cfmail missing carriage returns in plain text

    CF8
    Im sending plain text mail and when my email arrives I dont'
    see carriage returns, it's all joined together.
    Using utf8 encoding, but does the same in all encodings.
    Any ideas why?

    I'm not putting ascii codes on the lines i want to line
    feed...
    I simply put text between the cfmail tags and hit enter...it
    has always worked in the past.
    cfmail
    text here
    text here
    text here, etc...
    /cfmail
    that would show up like that in outlook express when i read
    the mail...with the CR in place.

  • Carriage return in central text

    Hi,
    I'd like to know how to add a carriage return character in a central text of an order document.
    I use SAVE_TEXT BAPI to add central text in an order.
    Thank you for your help.

    carriage return is available in class CL_ABAP_CHAR_UTILITIES
    you just have to concatenate existing text with
    CL_ABAP_CHAR_UTILITIES=>CR_LF

  • Carriage Return/Linefeed Character Removal  for a CLOB variable

    Hi,
    Can anyone let me know how I can remove the carriage return from a CLOB variable.
    I tried the replace function
    REPLACE(D_MessageText, CHR(10)), it doesn't give any error,but the output still has the new line character.
    Any help would be really appreciated.
    Regards,
    Anil.

    chr(10) takes care of LINEFEED
    chr(13) takes care of CARRIAGE RETURN

  • Carriage Return with the text in xdofx

    Hi
    I have to insert a carriage return with in a text I tried <?xdoxslt:chr(10)?>
    e.g <?xdofx:if x>'0' then 'Approved. Thank you.' else 'Disapprov.Thank you. ' end if?>
    so the output should be
    Approved
    Thank You
    I need carriage return between Approved and Thank You
    Thanks

    Use this:
    <?xdoxslt:ifelse(x>0, concat('Approved', xdoxslt:chr(10), 'Thank you.'), concat('Disapprov. ', xdoxslt:chr(10), 'Thank You.'))?>
    I tried this and it works
    <?xdoxslt:ifelse(10>9, concat('Approved', xdoxslt:chr(10), 'Thank you.'), concat('Disapprov. ', xdoxslt:chr(10), 'Thank You.'))?>
    Thanks,
    Bipuser

Maybe you are looking for

  • Windows Server 2012 R2 - ALL HF's Failing to install as "Does Not Apply to this computer"

    Hi, A general question about hot fix installs. I have multiple servers that are all Windows 2012 R2. They do not have internet connections, so I have to install the Hotfixes manually. I download the HF's from the ISO download page (https://support.mi

  • 10.2.0.5 to 11.2.0.4 RAC upgrade w/11i

    Dear All, I wanted to inquire if someone can provide high level guidance for a 10GR2 to 11Gr2 upgrade while staying on 11.5.10.2.  My two core Metalink docs are the first two below but wondering if there is an Interoperability Note specifically for f

  • Actvity type in work center

    I assign cost center the activity type in kp26 In work center when i a assign the cost center not automatically seen in the activity type tab In the order creation when is assign work center am not able to see activity type in the bottom Where to do

  • Disk Full Error message when try to save word 2004

    Hi all please help me , I have problem when try to save my word 2004 and the message show that Disk full error!!!!!

  • Cant' block ads with maverick

    How can I block ads and pop up screens?  I have tried all the settings I can think of.