Diff line items in single field

Hi All
I have a requirement,
I have a internal table with field called content(40) type c.
and the values in this field are as below
CONTENT
m/s jani sales
uniwalkar
abc ltd
ghj ltd...etc
but my requirement is this all content on different line
i want to collect in single line
                    CONTENT
i.e m/s jani sales, uniwalkar, abc ltd, ghj ltd...etc
How should i proceed.
Thanks & Regards
Lalith

Hi,
Find below code..........
data : begin of itab occurs 0
           contact(40) type c,
         end of itab.
data: str1 type string.
Loop it itab.
concatenate str1 itab-contact to str1.
endloop.
I think it help u.......................

Similar Messages

  • Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers in fbcj

    Hi all ,
    I have a requirement to Post Cash Journal Document using FBCJ tcode.
    Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers
    for exp:
    pk   GL a/c   description       amount   cost center  profit center
    40  400101  telephone exp   500        1403            P 1000
    40  400101  telephone exp    100       1404            P 2000
    50  200100  cash in hand      600-                             
       This is My requirement  is it possible in fbcj
        Please suggest me.ASAP.
    Regards
       Naresh.

    Hi,
      This you can do it in two ways:
    1. Make three header under top level....one Product A, 2nd Product B ( as Billing element) and third as Common expense ( only cost). Now 1st & 2 nd WBS, you have to have sales order linking with individual lint item, for third you will accumulate all the common expense till the period end then make a reposting of the same in desired proportion to both products WBS hierarchy
    (This is if you want to have a track on the common expense as well.......like planning, budgeting & control)
    After this reposting, run RA for individual billing element and hence you will all the complement detailing and control over Revenue and expense with respect to Product A and Product B individually.
    2. If you don't want to maintain that kind of detailing the common expense and keep track of it through project, then have cost centers accordingly and make an assesment/ distribution with respect to expenses accumulated at those cost centers for the period to the respective WBS under each product. Then execute the period end processes for the project.
    Or
    You can try with have two more line items in the costing sheet as an overhead against common expenses with respect each product.
    I hope this should help you.
    Regards
    Avisek Bhardwaj

  • LM46 - Multiple line items into single HU

    Hello,
    I am using Pick & Pack functionality and confirming transfer orders using RF - LM46 transaction.
    During confirmation of transfer order, new HU is getting created for each line item. Is it possible to confirm multiple line items into single HU.
    Is there any setting needs to be done to achieve the same.
    Steps in current process
    - Create transfer order using LT03 or Background job
    - Go to LM46 - enter delivery and packaging material
    - Confirm line item
    - TO item information (Qty & batch) updating back to Delivery along with new HU number
    - Material and qty getting packed to HU correctly..
    As we have several small picks, we don't want new HU to be created automatically. If we can combine multiple TO items into single HU that will be helpful for the process.
    Please let me know if you need further information.
    Thanks in advance,
    Naga Mohan

    Hi Nag,
    I don't believe there is a straightforward way of doing that. The idea behind the design would be (for the two cases mentioned in this thread):
    No HU exists, so new HU is generated during the TO confirmation (by entering only the packing material and $ as the HU number, triggering the label printing for shipping)
    Hu exists, so the user would have the HU in front of them and would be packing directly into it.
    Is your requirement for all deliveries within the warehouse? i.e Each delivery (regardless of the number of transfer orders) should only have one HU assigned?
    Regards
    Stephen

  • Amount spliting in 3 line items for single customer

    Hi All,
    Here i am facing one small issue  at the time of billing docment relesing  to finance.
    here i am getting 3 line items for single cumenter, custmoer debited in 3 line itmes.
    why i am geting 3 line items can any one help me in this issue.
    thanks
    kiran

    Hi,
    If you have new GL with document splitting active then if you have created billing for 3 items then system can split the customer line as well into 3 lines in GL view particularly if you have 3 items are getting credited to separate GL Accounts as sales revenue.
    In Classic GL view you will not see customer line getting split. Hoep it helps you.
    Regards,
    Sanjay

  • AFAB:Balancing field "Profit Center" in line item for Single Company

    Balancing field "Profit Center" in line item 005 not filled , This Error is coming for only one company code Alone in AFAB Tcode
    Thanks & Regards,
    Daniel

    Check this T.code OBC4.Here you need to check the field status group G001,G005.which Field status is using for the GL
    U have to write substitution for T code J2IUN and Plant combition .
    Eg.whenT code is J2IUN and Plant is XXXX  Profit center is YYYYY.
    please check the same and then execute further your process.
    Regards
    Ketan

  • Cost Line Item Posting - which field indicates Order Number

    Hi,
    I need to know the specific Order Number (example: PM order) with has cost postings on a WBS element. I am using COVP / COEP field OBJNR to see the WBS Element (those starts with PR*), but I do not know which field is the Order Nmber contained in the table.
    Please advise in which table can I see the linkage between WBS and Order number for cost postings.
    Thanks!
    Regards,
    Vivian

    Hi Eli,
    Now that we have established we are looking into Plant Maintenance order (IW33) and not Overhead internal order (the WBS element is specified in the PM Order itself under Account Assignment section). 
    Now, going back to original question.  I need to create a report to show cost detailed based on WBS Element input.  I need to display all the Cost Line items for a particular WBS element.  For each line items to be displayed I also need to show the particular PM Order.  Would you know if the PM Order number information is stored in which field in the COVP/COEP CO posting Line item table (OBJNR is for the WBS Element)?
    If COVP/COEP CO posting Line item table does not store the original source PM Order, could you suggest a way on how I can retrieve the PM Order number based on WBS element and posting date? I dont think we can just use AUFK since it is just the master data table and will not show the posting date.
    Thanks!
    Vivian

  • Grouping of SC line items to single PO

    Hi,
    We are facing an issue with grouping of SC line items to one single PO as per the details given below.
    The requirement is if the SC has 10 line items as below
    5 line items with no source of supply                - 5 PO's
    3 line items with preferred vendor (82000000)    - 1 PO
    2 line items with preferred vendor (82000001)   - 1 PO
    In the first case 5 PO's has to be created. This is standard no issues.
    In the second case system has to group 3 line items to 1 PO.
    In the third case system has to group 2 line items to 1 PO.
    We have tried the BADI BBP_LOCAL_GROUP_PO and it doesn't help for the second & third case of our requirement.
    We tried using the Document change badi to convert the Prefferred vendor to vendor and could not do that.
    We also tried the FS BBP_SC_TRANSFER_GROUPED, but it doesn't cater to our requirement.
    Any help would be highly appreaciated.

    Here is a sample code that convert preferred vendor into fixed vendor.
    You can easily change it to your requirement )
    method IF_EX_BBP_DOC_CHANGE_BADI~BBP_SC_CHANGE .
    Constants : c_vendor type BBP_PDS_PARTNER-PARTNER_FCT
    value '00000019',
    c_preferred_vend type BBP_PDS_PARTNER-PARTNER_FCT
    value '00000039'.
    Data : ls_partner type BBP_PDS_PARTNER.
    *Read Table it_partner into ls_partner With key PARTNER_FCT = c_vendor.
    *If sy-subrc NE 0.
    Loop at it_partner into ls_partner
    where PARTNER_FCT Eq c_preferred_vend.
    Move c_vendor To Ls_partner-PARTNER_FCT.
    Modify it_partner from ls_partner index sy-tabix.
    Endloop.
    *Endif.
    et_partner[] = it_partner[].
    ET_ORGDATA[] = IT_ORGDATA[].
    ET_ITEM[] = IT_ITEM[].
    ES_HEADER = IS_HEADER.
    ET_ACCOUNT[] = IT_ACCOUNT[].
    *break ybo
    *IT_PARTNER
    *ET_PARTNER[]
    endmethod.

  • Line Item : New dispaly field for Report generated using Tcode FBL1N

    Hi Geeks,
              I want to display further fields in the line item report generated using Tcode FBL1N . i have refered OSS note 373268 it only discuss about fields available from index table ( BSID/BSAD/BSIK/BASK/BSIS/BSAS ) and special field from tables ( BKPF, BSEG, BSEC, BSED... ) using FAKP .My requirement is to add NAME1 from LFA1. Pls suggest a solution.
    Thanks,
    Karthik

    Hi Ushma,
    Its possible.No need to cpy into Z transaction.  You'll have to use a BTE for it.
    Go to FIBF.
    Create a 'Z' product.
    Put your own. Goto settings-> P/S modules-> of a customer.
    Now in the event 00001650 of z product there is a function module.
    It'll be 'LINE_ITEMS_GET_GKONT'.
    make a z by copying this and then put it here.
    Put code in that ZLINE_ITEMS_GET_GKONT.
    Also create append structure in RFPOS and RFPOSX with the fields you want.
    And activate.
    varun

  • Sales order: Two schedule line items for single order item

    Hi,
    I have an issue with the schedule lines in the sales order. When we create a sales order  with today as the delivery date, it creates two schedule lines for the single order item. But if we give future date as the delivery date, then it creates one schedule line only. The confirmed quantity for the first line item (with today we the delivery date) is zero and second line item confirmed quantity (with delivery date as tomorrow) is actual order quantity. So as there is no confirmed quantity on todayu2019s date, it looks like it is creating new line item. But we do we have stock.
    We donu2019t have availability check on and we use custom line item and schedule line categories.
    Please give some hints on what might be the issue.
    There was on post with this kind of issue, but it was closed without answer.
    Thanks,
    Srini

    Hi Srinivas,
    So as there is no confirmed quantity on todayu2019s date, it looks like it is creating new line item. But we do have stock.
    As per my understanding although you have sufficient stock for the material system may be confirming the quantity in future date because of the forward scheduling. As you know system adds different times while evaluating the  confirmed delivery date. Check the route which system is using.

  • Multipl line item for single line item in smart form

    Hi
    I have an issue wwith smart form. i Designed a Smarform with main window but each line item have again multilpe line items.Example.My smartform should print like this
    SNO.......Descriptions..................................................................Specifications
    1..............     Pepsi.......................................................................500ML Bottle
    ................................................................................................Rs.20.
    ................................................................................................No sugar COntent
    ................................................................................................Buy one get one free.
    2..............Coke.......................................................................1000ML Bottle
    ...............................................................................................Rs.$10.
    ...............................................................................................Added flavours COntent
    ...............................................................................................Buy one get 2 free.
    IN the above example Sno and Descriptions are from one internal table and Specifcations are form
    other internal table and both the tables are linked with one common field.
    Any inputs please.
    Regards
    Farook
    Edited by: farook shaik on May 15, 2009 11:56 AM

    Hi Farook,
    Either you cam merge in the driver program as said before -this is the best option.
    OR in smartform:
    Create a line type with columns for sno ,descr ,specification.
    Use a DATA TABLE  for the first internal table with the above line type and fill the first 2 columns.
    and a LOOP inside the data table's 3rd column  for specifications with the common field in where condition.
    eg
    first table - DATA TABLE
    HEAD
    MAIN
      |___ linetype
              |-cel1
                  |-Sno-text
              |-cel2
                  |-Descriptions text
              |-cel3-Specifications
                    |__loop for second table  in where condition - match common fields.
                          |-text for Specifications
    FOOTER
    Regards,
    Fonseca DC
    Edited by: Fonseca Christina on May 15, 2009 1:10 PM

  • Concat 4 source fields in new line to a single field in IDoc segment-field?

    HI,
    My requirement is below: Need to concar 4 sources fields in a file and map them to a single target field (In IDoc) with each source field in new line.
    Lets say if I have a source file with
    f1, f2, f3, f4
    I need to send to single target field as follow:
    f1
    f2
    f3
    f4
    It is basically concat in newline. Can I use any delimiter string in std concat funtion or help me to provide sample code for UDF.
    Regards,
    N@vIn

    Sample UDF for your case.
    public String concatStrings(String var1, String var2, String var3, String var4, Container container) throws StreamTransformationException{
              String newLine = System.getProperty("line.separator");
              //String newLine="\r\n";
              String concatString =var1 + newLine + var2 + newLine + var3 + newLine +var4;
              return concatString;
    Note: Use System.getProperty that would take care for all Operating systems when deploy this code.
    you might not able to test in test mapping tool
    If you run in eclipse or nwds you will see output as follows
    var1 value
    var2 value
    var3 value
    var3 value
    Hope this helps. Let me know further.

  • Regexp_replace to remove blank lines from multi lines in a single field

    Gents. 10g R2.
       with test_tab as
       (select 'x'||chr(10)||'y'||chr(10)||chr(10)||'z' tester from dual)
       select tester from test_tabproduces
    x
    y
    zI require
    x
    y
    zThere's a lot of examples on how to end up with xzy, but I need to maintain the carriage returns, just strip out blank lines.
    I've been trying with posix [:cntrl:] but it doesn't seem to want to work. Question: how to get the desired output?
    If this has been answered on another post, please point me in the right direction and accept my apologies!

    Hi,
    The simplest thing might be to use LTRIM. (or TRIM, if you need to remove them from the end of the string, as well).
    If you want a regular expression:
    SELECT     REGEXP_REPLACE ( tester
                     , '(^|' || CHR (10) || ')' || CHR (10) || '+'
                     , '\1'
    FROM     test_tab
    ;This might be easier to understand if you let x stand for CHR (10):
    SELECT     REGEXP_REPLACE ( tester
                     , '(^|x)x+'
                     , '\1'
    FROM     test_tab
    ;This is easier to understand: \1 is either the beginning of the string or x. When this is followed imeediately by 1 or more extra x's, then replace that whole pattern with \1 (that is, remove the extra x's).

  • Line item display-special fields

    Hi,
    i selected a special  field for fbl5n and saved in a new lay-out.When i select the particular lay-out special field values are displayed .
    But when i default the layout , system not displaying the values though the field is avilable.
    regards
    Guru

    Hi meena,
    search below link useful yours.
    scn.sap.com/docs/DOC-45019
    scn.sap.com/docs/DOC-49772#comment-439481
    https://scn.sap.com/thread/1636245
    Thanks,
    G Rajendhar.

  • Rebate Agreement number in GL account line item in Assignment Field

    Hi all
    We have two GL accounts in company code xxx - 299011 and 373500. They both have the same sort key 016 but do not get the same value in the assignment field. For the 299011 account the system seems to add the Rebate agreement number to the field from the sort key. This is also requested for the 373500 account.
    The document flow is like this Std order > outbound delivery > Invoice > Accounting Doc.
    In GL a/c 299011 the agreement number is displayed but no rebate agreement number is displayed in account 373500. What are the setting need to be done to achieve rebate no in gl account 373500.
    Thanks
    Naveen

    Hi
    Depending on the GL Account Assignment of the Two GL Accounts, you need to check the copy controls in VTFA
    Regards
    Sanil

  • RG23C PART 1 - Two line items for single item

    Dear Experts,
    I created a po for capital goods without any material number but entered the description of the capital good  in material short text and processed.
    while posting the excise details for the capital good in RG23C Part 1, it is posting the register with two lines with different serial numbers and updating the quantity as well.
    how do i rectify it?
    regards
    Suresh

    hI,
    thanks for the quick reply
    thats what happening exactly......how do i correct it.....or is it so that i dont have to do anything
    the movement types for both entries is 101
    regards
    Suresh
    Edited by: rasuresh on Aug 29, 2009 11:30 AM

Maybe you are looking for

  • Query on BE, Tcode and GL accounts

    Hi Friends 1. surrogate bidding and proxy bidding: Are these performed by both BE and LAC.Is proxy bidding done by LAC only. 2.Tcode for GUI of CCM and SUS 3.Which version of srm supports multiple g/l accounts Regards Simha

  • Change Server problem in client machine

    hi kings we are using Vista. SAP 2007 B Patch Level 15 when i connected to the server. its show the internal error (-1002) Message (131-183) Thanks & Best Regards B.Lakshminarayanan

  • Where are my settings for Firefox stored so I can configure my new PC?

    Everytime I change my laptops or start from scratch, do I have to configure firefox all over again (i.e. fast dial, add ons, appearance)? I only know how to backup and restore bookmarks. Where are all my configurations stored? Please someone tell me?

  • Statutory Field disabled for Global Business Group

    Hello Group, I am implementing Oracle HRMS for a non seeded country. I have ran the International HRMS Setup program. It ran successfully. Also I do have enabled the country using hrglobal patch. Please suggest me how to enable the Statutory informat

  • I need another color where two objects meet

    Hello Sorry, bad subject, but I cant do it better. So, I have two objects. One circle and one rectangle. The circle is on top of the rectangle. Just in one corner, so its not covering all of the rectangle. I would like to have another color where the