Reg:FICO-IDTO Transfer.---( interdivision transfer report )

Dear Experts,
  I have a scenario to develp a interdivision report on sales and purchase for the given profit center.
ll brief u the details as i am stuck in one point.
For sales:
From the entries of bsid and bsad table for customers of different profit center have to find the corresponding bsik and bsak enteries.
Is there any technical relation for this?
(the functional idea is: if A has sold to a customer B for 30,000 , then B should have bought it from the vendor A for the same price.
So the difference should match for sales with respect to the prfoit center.
The logic for purchase ll be the the other way, i,e from bsak, bsik enteries i should find corresponding bsid and bsad enteries.
E.g.
for sales:
if profit center is in30505 and customer code is 801230010 then in bsik and bsak table the corresponding profit center ll be in23001 and vendor code ll be 701305050.
But this logic cant be hard coded as in production server for the corresponding entries in bsik and bsak, the amount would have posted to different profit center.
So is there any relation to find for entries of bsid and bsad table for customers of different profit center have to find the corresponding bsik and bsak enteries( not line item wise, total should match wiyh respect to profit center.
The fields fetched from bsid, bsad, bsik, bsak are:
bukrs, lifnr/kunnr, belnr, buzei, budat, shkzg, dmbtr, prctr.
Please reply if anyone can give a solution as the priority to push the report to production is on.
Thanks and regards,
Sujeel Unneen

Hi JK,
1.each document in FI will updated in local currency and document currency. in addition to that we have 2 more currencies is called parellel currencies. ex:object,hard,group,indexbased,transaction,document etc.,
2.Recon accounts are used in AP, AR, AA only. as many as you wants
4.Rollout means say if u have 10 co.codes out of 10 already 3 co.codes are exist in sap remaining 7 co.codes will bring in sap through ROLLOUTS.
if useful pl assign points
thanks
anil
Edited by: Anil on Feb 8, 2008 10:52 AM
Edited by: Anil on Feb 8, 2008 10:53 AM

Similar Messages

  • Stock Transfer Report after Invoice

    Hello Experts
    Please spend one minute's time to read this. It may be long but its the exact scenario.
    I have got a requirement to generate a Stock Transfer Report for the bills passed (invoice receipt) for a particular date range. Note that the delivery against the PO can be for partial quantities too.
    I am using RBKP table to get all the invoice numbers falling in the certain date range selection. Against these Invoices I am retrieving the PO number and other report relevant data from the RSEG Table. And using the PO I need to get into the MSEG table to retrieve Mat Doc numbers so that I can drill into the excise tables to get Excise No.
    Now the problem is:
    Suppose the PO <b>4900000337 </b>contains various items
    item no  | material  | qty
    10       | mat1      | 1050
    20       | mat2      | 2670
    30       | mat3      | 450
    Now one partial delivery is made as
    item no  | material  | qty
    10       | mat1      | 100
    20       | mat2      | 250
    <i>mat doc 4900012713, mov type 641</i>
    and the against this delivery an invoice receipt is created using MIRO, <b>5105600790</b>
    another partial delivery is made as
    item no  | material  | qty
    20       | mat1      | 350
    30       | mat2      | 50
    <i>mat doc 4900012714, mov type 641</i>
    against this delivery an invoice receipt is created using MIRO, <b>5105600791</b>
    How do I link the invoice no to the material documents to know the quantity of the particular item of the PO... as we see item no 20 is common in both the case.
    RSEG
    Document Number Fiscal Year Item   Purchasing Doc. Item
    5105600790      2007        000007 4900000337      00020
    5105600791      2007        000007 4900000337      00020
    MSEG
    Material Doc. Mat. Doc. Year Item Line ID Parent ID Movement Type Material     Quantity          Purchase Order Item
    4900012713    2007           0004 000005  000002    641           90050106            250.000  4900000337     00020
    4900012714    2007           0002 000003  000001    641           90050106            350.000  4900000337     00020

    Hi...
    <i>1) MIRO is done against Purchase Order right??</i>
    > Yes, MIRO is done against PO. And, when I try to do it against Deliv. Doc. its not possible as its not displaying any items!
    <i>2) In BSEG : you put the PO number 4900000343 then the below rows are visible right??</i>
    >Yes.
    <i>3) Can you please paste the rows : BELNR, EBELN and VBELN only ??</i>
    Here they are...(with some other fields which might be of importance)
    For <b>PO 4900000343</b>
    Table:          BSEG
    Document Number Transaction Assignment         Billing Doc. Plant       Quantity     Purchasing Doc. Item
    BELNR           KTOSL          ZUONR              VBELN        WERKS       MENGE        EBELN           EBELP
    0490021088      BSX         20071024           0010004216   2006             50.000  4900000343      00010
    0490021088      BSX         20071024           0010004216   6201             50.000  4900000343      00010
    0490021088      AUM         0006201001         0010004216   6201             50.000  4900000343      00010
    0490021088      FR1         490000034300010    0010004216   6201             50.000  4900000343      00010
    0490021088      BSX         20071024           0010004216   2006            100.000  4900000343      00020
    0490021088      BSX         20071024           0010004216   6201            100.000  4900000343      00020
    0490021088      AUM         0006201001         0010004216   6201            100.000  4900000343      00020
    0490021088      FR1         490000034300020    0010004216   6201            100.000  4900000343      00020
    0490021089      BSX         20071024           0010004217   2006            200.000  4900000343      00020
    0490021089      BSX         20071024           0010004217   6201            200.000  4900000343      00020
    0490021089      AUM         0006201001         0010004217   6201            200.000  4900000343      00020
    0490021089      FR1         490000034300020    0010004217   6201            200.000  4900000343      00020
    0490021089      AUM         0006201001         0010004217   6201            100.000  4900000343      00030
    0490021089      FR1         490000034300030    0010004217   6201            100.000  4900000343      00030
    0510000678      FR1         490000034300010                 6201             50.000  4900000343      00010
    0510000678      FR1         490000034300020                 6201            100.000  4900000343      00020
    0510000679      FR1         490000034300020                 6201            200.000  4900000343      00020
    0510000679      FR1         490000034300030                 6201            100.000  4900000343      00030
    Can you also show the rows for the PO that you have mentioned in your first message.
    <b>PO 4900000337</b>
    Table:          BSEG
    Document Number Transaction Assignment         Billing Doc. Plant       Quantity     Purchasing Doc. Item
    BELNR           KTOSL          ZUONR              VBELN        WERKS       MENGE        EBELN           EBELP
    0490021080      AUM         0006201001         0010004205   6201            350.000  4900000337      00070
    0490021080      FR1         490000033700070    0010004205   6201            350.000  4900000337      00070
    0490021080      BSX         20071017           0010004205   2006             50.000  4900000337      00100
    0490021080      BSX         20071017           0010004205   6201             50.000  4900000337      00100
    0490021080      AUM         0006201001         0010004205   6201             50.000  4900000337      00100
    0490021080      FR1         490000033700100    0010004205   6201             50.000  4900000337      00100
    0490021081      BSX         20071017           0010004206   2006            500.000  4900000337      00010
    0490021081      BSX         20071017           0010004206   6201            500.000  4900000337      00010
    0490021081      AUM         20071017           0010004206   6201            500.000  4900000337      00010
    0490021081      FR1         490000033700010    0010004206   6201            500.000  4900000337      00010
    0490021081      BSX         20071017           0010004206   2006            300.000  4900000337      00020
    0490021081      AUM         0006201001         0010004206   6201            300.000  4900000337      00020
    0490021081      FR1         490000033700020    0010004206   6201            300.000  4900000337      00020
    0490021082      BSX         20071017           0010004207   2006            300.000  4900000337      00010
    0490021082      BSX         20071017           0010004207   6201            300.000  4900000337      00010
    0490021082      AUM         20071017           0010004207   6201            300.000  4900000337      00010
    0490021082      FR1         490000033700010    0010004207   6201            300.000  4900000337      00010
    0490021082      BSX         20071017           0010004207   2006            250.000  4900000337      00020
    0490021082      AUM         0006201001         0010004207   6201            250.000  4900000337      00020
    0490021082      FR1         490000033700020    0010004207   6201            250.000  4900000337      00020
    0490021101      BSX         20071025           0010004229   2006          1,000.000  4900000337      00010
    0490021101      BSX         20071025           0010004229   6201          1,000.000  4900000337      00010
    0490021101      AUM         20071025           0010004229   6201          1,000.000  4900000337      00010
    0490021101      FR1         490000033700010    0010004229   6201          1,000.000  4900000337      00010
    0490021101      BSX         20071025           0010004229   2006            250.000  4900000337      00020
    0490021101      AUM         0006201001         0010004229   6201            250.000  4900000337      00020
    0490021101      FR1         490000033700020    0010004229   6201            250.000  4900000337      00020
    0510000675      FR1         490000033700030                 6201            400.000  4900000337      00030
    0510000675      FR1         490000033700070                 6201            250.000  4900000337      00070
    0510000675      FR1         490000033700090                 6201             50.000  4900000337      00090
    0510000676      FR1         490000033700070                 6201            350.000  4900000337      00070
    0510000676      FR1         490000033700100                 6201             50.000  4900000337      00100
    0510000677      FR1         490000033700010                 6201            800.000  4900000337      00010
    0510000677      FR1         490000033700020                 6201            550.000  4900000337      00020
    Thanks. I have added you on GoogleTalk... if you use it, we can discuss there and update the thread...
    Regards
    Aabhas K Vishnoi

  • How to transfer reports from one environment to another

    Pls. is there a way to transfer reports from one environment to another (CTE to production f.example) ?
    I know that OBIEE has query export in XML, etc. I don´t think it exists in OD but I decided to try a question...
    Txs. for any help.
    ANtonio

    Hi Antonio,
    This is not possible, there is no such XML view for CRM On Demand.. I miss it dearly! I advise clients to prototype reports on their staging/CTE environment but actually fully develop these directly on production. Reports can be developed and changed in personal folders with no impact on the live environment, if a report is currently live it can be copied to a personal folder on tweaked in that personal folder.
    There is a whisper that R17 could bring us the ability to copy configuration/reports between environments but the Oracle guys would be better placed to update you on this one.
    Thanks
    Oli @ Innoveer

  • Asset Transfer Report with matching new asset number

    Hi,
    During the past week, our company transferred over 2000 assets from several companies to one company. As a result of the transfer, the tax depreciation keys and tax depreciation life weren't carried over to the new assets. I am wondering if anyone here know how can I generate a asset transfer report with one column listing all transferred out assets and another column listing matching transferred in assets? I used ZFI_INTERCOASTR- Intercompany Asset Transfer, it gave me a transfer report with all the transfer in and transfer out in one column.
    Edited by: Peggy Wang on Nov 24, 2009 3:40 PM

    Hi,
    you can create yourself an ABAP Query on logical database ADA. In node ANEK you have per each (transfer) transaction the information from which asset the transfer was done.  With the ABAP Query you can configure your output list completely flexible.
    Regards,
    Markus

  • Need an Info to transfer reports from Our PC to Clients PC?

    Hi,
    I developed oracle BI Reports. Now one of our client is asking to deploy the reports in their Environment. I know that to send the Report Folder from XMLP Folder in mail, but i dont want to do that because of security. so can we do any other report deployment in our client Environment, that to transfer reports from one Environment to another Environment? If yes could anyone please suggest me the process regarding this
    Regards
    Bhuvan

    But,
    anyway the xdo file is displaying queries, when i am opening in Notepad. can i encrypt those xdo files

  • Asset transfer report - for-each-group

    - <FAS430>
    - <LIST_G_SETUP>
    - <G_SETUP>
    <COMPANY_NAME>ABCD</COMPANY_NAME>
    <LOCATION_FLEX_STRUCTURE>101</LOCATION_FLEX_STRUCTURE>
    - <LIST_G_ASSET_TRANS>
    - <G_ASSET_TRANS>
    <ASSET_NUMBER>1321780</ASSET_NUMBER>
    <ASSET_DESCRIPTION>CABLES & CONNECTORS</ASSET_DESCRIPTION>
    <TAG_NUMBER>K-PM-B-HCB-3899</TAG_NUMBER>
    <TRANSNUM>3512926</TRANSNUM>
    - <LIST_G_TRANSFERS>
    - <G_TRANSFERS>
    <TO_FROM>0</TO_FROM>
    <GL_ACCOUNT>81216</GL_ACCOUNT>
    <COMP_CODE>118</COMP_CODE>
    <COST_CENTER>000</COST_CENTER>
    <LOCATION>KANNUR CHALODE NONE CHALODE NONE</LOCATION>
    <START_DATE>21-JUL-08</START_DATE>
    <UNITS>-200</UNITS>
    <ASSIGNED_TO />
    <CCID>6705</CCID>
    - <LIST_G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>0</DEPRN_RESERVE>
    <COST>-89983.26</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>-18.96</DEPRN_RESERVE>
    <COST>0</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    </LIST_G_SUB>
    <D_GL_ACCOUNT>81216</D_GL_ACCOUNT>
    <D_COMP_CODE>118</D_COMP_CODE>
    <D_COST_CENTER>000</D_COST_CENTER>
    <D_LOCATION>KANNUR.CHALODE.NONE.CHALODE.NONE</D_LOCATION>
    <D_AS_COST><89,983.26></D_AS_COST>
    <D_AS_DEPRN_RSV><18.96></D_AS_DEPRN_RSV>
    <AS_COST>-89983.26</AS_COST>
    <AS_RESERVE>-18.96</AS_RESERVE>
    </G_TRANSFERS>
    - <G_TRANSFERS>
    <TO_FROM>1</TO_FROM>
    <GL_ACCOUNT>81216</GL_ACCOUNT>
    <COMP_CODE>118</COMP_CODE>
    <COST_CENTER>000</COST_CENTER>
    <LOCATION>KANNUR CHALODE NONE CHALODE NONE</LOCATION>
    <START_DATE>21-JUL-08</START_DATE>
    <UNITS>199</UNITS>
    <ASSIGNED_TO />
    <CCID>6705</CCID>
    - <LIST_G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>18.87</DEPRN_RESERVE>
    <COST>0</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>0</DEPRN_RESERVE>
    <COST>89533.34</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    </LIST_G_SUB>
    <D_GL_ACCOUNT>81216</D_GL_ACCOUNT>
    <D_COMP_CODE>118</D_COMP_CODE>
    <D_COST_CENTER>000</D_COST_CENTER>
    <D_LOCATION>KANNUR.CHALODE.NONE.CHALODE.NONE</D_LOCATION>
    <D_AS_COST>89,533.34</D_AS_COST>
    <D_AS_DEPRN_RSV>18.87</D_AS_DEPRN_RSV>
    <AS_COST>89533.34</AS_COST>
    <AS_RESERVE>18.87</AS_RESERVE>
    </G_TRANSFERS>
    - <G_TRANSFERS>
    <TO_FROM>1</TO_FROM>
    <GL_ACCOUNT>81216</GL_ACCOUNT>
    <COMP_CODE>118</COMP_CODE>
    <COST_CENTER>000</COST_CENTER>
    <LOCATION>KANNUR CHALODE MW BB NONE CHALODE MW BB NONE</LOCATION>
    <START_DATE>21-JUL-08</START_DATE>
    <UNITS>1</UNITS>
    <ASSIGNED_TO />
    <CCID>6705</CCID>
    - <LIST_G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>.09</DEPRN_RESERVE>
    <COST>0</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    - <G_SUB>
    <DEPRN_RESERVE>0</DEPRN_RESERVE>
    <COST>449.92</COST>
    <YTD_DEP>702</YTD_DEP>
    </G_SUB>
    </LIST_G_SUB>
    <D_GL_ACCOUNT>81216</D_GL_ACCOUNT>
    <D_COMP_CODE>118</D_COMP_CODE>
    <D_COST_CENTER>000</D_COST_CENTER>
    <D_LOCATION>KANNUR.CHALODE MW BB.NONE.CHALODE MW BB.NONE</D_LOCATION>
    <D_AS_COST>449.92</D_AS_COST>
    <D_AS_DEPRN_RSV>0.09</D_AS_DEPRN_RSV>
    <AS_COST>449.92</AS_COST>
    <AS_RESERVE>.09</AS_RESERVE>
    </G_TRANSFERS>
    </LIST_G_TRANSFERS>
    <DPIS>30-JUN-08</DPIS>
    <ASSET_CATEGORY>BT</ASSET_CATEGORY>
    </G_ASSET_TRANS>
    We are trying to use XML Publisher to create an Asset transfer report. The element TO_FROM=0 denotes the From part of the asset transfer, the TO_FROM=1 denotes the To part of the asset transfer.. in this case we have a asset 200 units transfered 199 and 1 to two locations..in out rtf we are getting only the first line i.e.199..we have begin the group by <?for-each-group@section:G_ASSET_TRANS;ASSET_NUMBER?><?variable@incontext:G2;current-group()?>. In the units column we are giving <?$G2/LIST_G_TRANSFERS/G_TRANSFERS[./TO_FROM=1]/UNITS?>
    Edited by: user648077 on Nov 3, 2008 10:26 PM

    Hi Srini,
    Thanks for the help..we got it resolved at out end.. we added another group <?for-each-group:$G2/LIST_G_TRANSFERS/G_TRANSFERS[./TO_FROM=1];LIST_G_SUB?><?variable@incontext:G3;current-group()?> and then used it in the units column...<?$G3/UNITS?>
    Thanks
    Ramanathan

  • Inventory Transfer Report By WHS

    Hi,
    Can anybody help me to create a cutom Query for stock transfer report from one Warehouse to Another warehouse by range of dates with Value for each Inventory Transfer.
    Regards
    Sumanth

    Hello Sindhi,
    I would suggest you to use the stockprice field that contains the item cost of the item and multiply it by the qty.
    Please try this query and let me know if it helps you.
    SELECT sum (T0.[Quantity]*T0.[INMPrice]) FROM WTR1 T0  INNER JOIN OWTR T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[DocDate] between '01.01.10' and getdate()
    INMPrice is the item cost, quantity is the quantity on that row in the document. As you want the query to work for a date range I added the where.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • GR no & GR date in stock transfer report

    Hi, Team
    we have developed report for stock transfer (from plant to Depot) in that up to Dec-12 all the relevant information showing correctly but if i run the report for the period 01.01.2013 to 30.01.13 all the Excise details i.e. Excise invoice no,Ex inv date, BED, GR no & GR date data showing blank
    i inform this to our ABAP consultant for this error and he replied that due diff. in period in FI & MM this data showing blank and after April-12 this data showing correctly .
    so kindly advice me how to resolve this issue
    attaching report screen shot for ref.
    pl find below details
    Input :-
    Material
    Plant
    Receiving Plant
    Posting date (From- to)
    Thanks
    Paramanand Shinde

    Hi Sridhar,
    So, do you mean I need to take MSEG(BWART-Movement type field) first, and then MKPF(BUDAT-Posting dt) ?
    Thaks in advance,
    Irfan.

  • Stock in Transfer Report

    Dear All,
    I am doing 2 step stock transfer 303 & 305 mvt type.This is the Practise follow in my company to transfer stock from Plant to Plant
    Now when am going to mb52 it is showing  list of material with there receiving Plant and stock pending to received but i also want in the  report which give issuing Plant of the material and quantity issued.
    MB5T will not work bcoz it is not with STO..
    CaN ANY ONE ANSWER THIS
    REGARDS,
    SAGAR

    Hi Sagar,
    There is not any standard report for your requirements.
    You might want to try the use of MB51, adding into the selection criteria the movement types 303 and 305.
    Just in case you are thinking about building your own report, please, consider that postings made with these movement types 303/305 update MARC-UMLMC, but they are not the only ones. In addition to movement type 303/305 postings, posting of 603/605 also update this field MARC-UMLMC. Also consider the reversal movements (304, 604, etc.).
    I hope this information helps you.
    Best regards.
    Esther.

  • Multiple Stock transfer report

    1. I want a report which captures the issue of a material from a plant/storage loc,   its transit and delivery at a plant/storage loc. Then again it is stock transfered to another plant/storage loc. Means I want to capture the entire folw of stock transfer of a material on a particular date write from begining to the end.
    2. Can I capture like wise multiple transfer posting of a material from source to destination also in one report.
    Regards
    VS

    Hi vs,
           you will get reports through these transactions.
    To see the stock value for Sale order stock for a perticular period
    In MBBS we can see the stock value upto date.
    These transaction use for reports,
    MB51  Material Doc. List        
    MB5L  List of Stock Values: Balances     
    MBBS  Display valuated special stock     
    MC$G  PURCHIS: Material PurchVal Selection
    MC$I  PURCHIS: Material PurchQty Selection
    MC.1  INVCO: Plant Anal. Selection: Stock
    MC.2  INVCO: Plant Anal.Selection, Rec/Iss
    MC.5  INVCO: SLoc Anal. Selection, Stock 
    MC.9  INVCO: Material Anal.Selection,Stock
    MC.A  INVCO: Mat.Anal.Selection, Rec/Iss 
    MC.L  INVCO: Mat.Group Analysis Sel. Stock
    MC48  INVCO: Anal. of Current Stock Values
    MC50  INVCO: Analysis of Dead Stock      
    MCBA  INVCO: Plant Analysis Selection    
    MCBC  INVCO: Stor. Loc. Analysis Selection
    MCBE  INVCO: Material Analysis Selection 
    MCBK  INVCO: MatGrp Analysis Selection   
    MCBR  INVCO: Batch Analysis Selection    
    MCE1  PURCHIS: PurchGrp Analysis Selection
    MCE3  PURCHIS: Vendor Analysis Selection 
    MCE5  PURCHIS: MatGrp Analysis Selection 
    MCE7  PURCHIS: Material Analysis Selection
    MCW3  PURCHIS: Evaluate VBD Header       
    MCW4  PURCHIS: Evaluate VBD Item 
    ME2L  Purchase Orders by Vendor  
    ME2M  Purchase Orders by Material
    ME2N  Purchase Orders by PO Number
    MIR6  Invoice Overview  
    MMBE  Stock Overview    
    regards,
    Hareesha k

  • Transfer Reports from one user account to another

    Hi,
    We use oracle discoverer 4.1, due to HIPAA the dba had to create new userids for our current users and lock the old ones, how do I transfer the reports stored in database one user account to another ?
    for e.g user abc123 has a report <abc.dis> stored in database he now has to use a new userid xyz123, he doesnt see <abc.dis>, how do I transfer this?
    I know the work around.. to save all reports from database to a network and open in the new user account, but we don't want users to do that, is there any other way?
    Thanks,
    Latha

    To avoid permission issues log into the account where the files are. Then transfer them to an external drive or a flash drive or jump drive. Then log into the account where you want them. Then copy them to the account.

  • Stock in transit for Stock transfer report

    HI
       Do we have any standard reports for Stock in Transit for Stock transfers (like what we have MB5T for STO) ?
    When we do a transfer using 303 mvt type we see stock in transit in MARC-UMLMC do we have any other standard report which can provide a document number and the stock in transit qty
    Thanks
    K

    Hi,
    You can see through MBSU.
    & MB51 is Report.
    SAM
    Edited by: Saminathan Gopalan on Jul 2, 2010 9:33 AM

  • Transfer Report output to email body

    Hi,
    I have some problems in transferring my report output into the email body. As i know, there is a function to transfer the report output to the email as attachment. But for my current requirement, i would like to transfer the report output the the email body. My current report output is in table form and as i transfer the report output to the email body, it should be the same format as the report output in the email body. I am using write function to show this report. May i know how should i go about solving this problem?
    Appreciate if you could help.
    Thanks.
    Regards,
    Rachel

    Hi Rachel,
    Check this sample program which uses the standard FM for sending email .
    zdp_solisti1 is a structure having fields naming LINE of type LCHR and its length being 2500.
    *******Email declarations
    data : gv_delimit TYPE c,
    lv_lncnt1(5) TYPE c,
    tempread(10) TYPE c VALUE 0,
    objpack TYPE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    objhead TYPE zdp_solisti1 OCCURS 1 WITH HEADER LINE,
    objbin TYPE soli OCCURS 0 WITH HEADER LINE,
    objtxt TYPE zdp_solisti1 OCCURS 0 WITH HEADER LINE,
    reclist TYPE somlreci1 OCCURS 0 WITH HEADER LINE,
    doc_chng LIKE sodocchgi1,
    tab_lines LIKE sy-tabix.
    CLEAR GV_DELIMIT.
    GV_DELIMIT = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
    TEMPREAD = LV_LNCNT1.
    REFRESH OBJTXT.
    CONCATENATE 'The no. of error records are : ' TEMPREAD
    INTO OBJTXT-LINE.
    APPEND OBJTXT.
    CLEAR OBJPACK. REFRESH OBJPACK.
    CONCATENATE C_CODE
    C_CMMT
    C_COMMENT1
    INTO OBJTXT-LINE SEPARATED BY GV_DELIMIT.
    APPEND OBJTXT.
    LOOP AT IT_DATA INTO WA_DATA.
    CONCATENATE WA_DATA-ZCODE
    WA_DATA-ZCOMMENT
    WA_DATA-ZREASON
    INTO OBJTXT-LINE SEPARATED BY GV_DELIMIT.
    APPEND OBJTXT.
    ENDLOOP.
    CLEAR GV_DELIMIT.
    CLEAR OBJPACK. REFRESH OBJPACK.
    CLEAR DOC_CHNG.
    TAB_LINES = 0.
    OBJHEAD = REJFILE. APPEND OBJHEAD.
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHNG-OBJ_NAME = REJFILE.
    MOVE TEXT-006 TO
    DOC_CHNG-OBJ_DESCR.
    DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = 1. " 3.
    OBJPACK-DOC_TYPE = 'RAW'.
    APPEND OBJPACK.
    FOR ASCII TO BINARY OBJECT FUNCTION
    TOTLINEXFER = 0.
    TOTXFER = 0.
    BINMAXLEN = 255.
    REFRESH OBJBIN.
    LV_CR = CL_ABAP_CHAR_UTILITIES=>CR_LF.
    TGTMAXLEN = BINMAXLEN.
    TGTLEN = 0.
    LOOP AT OBJTXT FROM 2.
    IF NOT OBJTXT-LINE CP 'The no. of records are '." AND
    CONCATENATE OBJTXT-LINE LV_CR INTO BUFFER.
    SRCOBJLEN = STRLEN( BUFFER ).
    SRCOBJPTR = 0.
    WHILE SRCOBJLEN > 0 .
    XFERLEN = TGTMAXLEN - TGTLEN.
    IF XFERLEN > SRCOBJLEN.
    XFERLEN = SRCOBJLEN.
    MOVE BUFFERSRCOBJPTR TO OBJBIN-LINETGTLEN.
    TGTLEN = TGTLEN + SRCOBJLEN.
    SRCOBJLEN = 0.
    CLEAR BUFFER.
    ELSE.
    MOVE BUFFER+SRCOBJPTR(XFERLEN) TO
    OBJBIN-LINE+TGTLEN(XFERLEN).
    APPEND OBJBIN.
    CLEAR OBJBIN-LINE.
    TGTLEN = 0.
    SRCOBJLEN = SRCOBJLEN - XFERLEN.
    SRCOBJPTR = SRCOBJPTR + XFERLEN.
    TOTLINEXFER = TOTLINEXFER + 1.
    ENDIF.
    TOTXFER = TOTXFER + XFERLEN.
    ENDWHILE.
    ENDIF.
    ENDLOOP.
    IF TGTLEN > 0.
    APPEND OBJBIN.
    TOTLINEXFER = TOTLINEXFER + 1.
    ENDIF.
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-TRANSF_BIN = 'X'.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TOTLINEXFER.
    OBJPACK-DOC_TYPE = 'XLS'.
    OBJPACK-OBJ_NAME = REJFILE.
    OBJPACK-OBJ_DESCR = 'Rejected Entries File'.
    OBJPACK-DOC_SIZE = TOTXFER.
    APPEND OBJPACK.
    REFRESH RECLIST.
    MAIL1 = 'xxxxxxxx' " Email Address
    RECLIST-RECEIVER = MAIL1.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = 'X'
    TABLES
    PACKING_LIST = OBJPACK
    OBJECT_HEADER = OBJHEAD
    CONTENTS_BIN = OBJBIN
    CONTENTS_TXT = OBJTXT
    RECEIVERS = RECLIST.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
           As per your requirement, In  the above program you need to fill OBJTXT with the contents of your internal table as per your requirement. This is the data which is displayed as the body of your mail.
    Hope this is helpful to you. If you need further information, revert back.
    Reward all the helpful answers.
    Regards
    Nagaraj T

  • Inventory Transfer Report

    Hi experts,
       I want to retrieve data inventory transfer like
       Suppose Wh01 And Wh02
        I have done inventory transfer from Wh01 to Wh02 And Vice versa for I001
        I want in report like for subcontracting inventory transfer.....
    Regards,
    Sandy

    Hello Sir,
        Thanks for reply to me....
       But i want another result
    Scenario Like this-
       I am transferring I001 from wh01 to wh02 via inventory transfer Quantities suppose 10
       Now i transferring same item I001 from wh02 to wh01 via inventory transfer Quantities 8
    Then My report should shows following Fields
    DocNum  Series  CardCode    FromWhs    Towhs   InQuntities_In_Wh02  Out_QuntitiesIn_Wh02
    And Also 
    InQuntiies_In_Wh01     OutQuantitiesIn_Who2    Remaining_Qty
    I hope you guys will understand what i want ???
    like PurchaseVsSale report
    Regards,
    Sandy

  • Stock Transfer Report from Plants within company code

    Dear SAP Experts,
    We have posted nearly 50 MIGO of stock transfer from our different plants within the same co. code since last 45 days. Now we want to take report of all stock tranfer receipt in our plant. (Like MIGO No. date, material code qty supplying plant etc.)
    Is there any standard T-code like MB51 which can give us the desired information. As in T-code MB51 there is no option to select supplying plant.
    Full Points if helped.
    Thanks in Advance.
    Ishu

    Hi Ishu,
              Go to SE16 enter the table EKKO or EKPO press enter it will take you to selection screen there you click on settings --> Format list --> Chooge fields , system will take you to all the fields avail in EKKO or EKPO there you click on deselect icon then you select fields Purchase doc,date ,Material,Qty and supplying plant then click on copy, system will take you to the previous screen there you click on excute icon.
    I hope it will full fills your requirement
    Regards,
    Murali.

Maybe you are looking for

  • How to fix completely submerged iPad mini

    my iPad mini managed to get thrown in the washer with some laundry this morning. It wasn't in there very long, but long enough to be a problem. I took it out of its case and put it in a sealed container with rice. any other suggestions on how to fix

  • Trying to get a code walkthrough to work - Bing Ads Api C# Web App

    Hi, I'm trying to get the C# Web App code walkthrough to work.  I went through the steps written out, and pasted in the Client ID, Client Secret, RedirectionUri, and DeveloperToken values.  When I run the app, it sends me to the redirection URI, with

  • Resolution of pdf conversion

    i have reader xi. I purchased the $9.99 a month online to convert files to pdf. I have a 2.6 meg doc file, converted it and now the pdf is 268k. I need it to stay hi res

  • "The slowest" (the second name of X7)

    first of all. nokia should be ashamed of that phone. and i cant belive that i spend so much money to buy that phone. 1-you open opera mobile and you wait and wait. because its stuck. then a black screen and then a crash. 2-it is a very slow phone in

  • Fpga crio mysterious activity in program

    Hello, i have the following problem, my crio 9076 (Slot 1 9411, Slot 2 9474) does mysterious things when running the fpga code every ~108 seconds the hardwar givs an peak at DO 02 from the 9474, it look like the hardware reset the code maby someone h