Regarding code over view

Hi  frinedz,
plz help me any one .
briefly explain how to select and how to link one table with another with loops and inner joins depending on below requirements
selection screen fields:company code
                          sales org
                         plant :from-to
                          invoice no:from-to
                         date range; from-to
1 take the plant code of the billing documents selected from VBRP-WERKS and refer table T001W, where VBRP-WERKS=T001W-WERKS.
GET adress number from T001W-ADRNR and refer table ADRC, WHERE:T001W-ADRNR=ADRC-ADDRNUMBER.
get the name of the plant from ADRC-NAME1.
get the T001W-LAND1 and T001W-REGIO, and get the satte code by refering table T005U.
2.FROM THE INVOICE NUMBERS GENERATED out of the selection parametres,take up the billing document numbers from table VBRK with the following parameters.
VBRK-FKDAT
VBRK-FKART=F2(BILLING TYPE)
THE BILLING DOCUMENT SHOULD BE OF THE EQUIPMENTS MATERILAS.
3.TAKE the billing document creation date from tableVBRP,for the given document number being populated in the report
4.the material level details are required ,goto table VBRP.the table would be referenced with the VBRK-vbelen field,where VBRK-VBELN=VBRP-VBELN.
5.TAKE THE value of the material from VBRP only
6.take the delivering plants region code from table VBRP.VBRP-WERKS-PLANT CODE.since the description of the region is required, goto table TOO1W.input the following:
VBRP-WERKS=T001W-WERKS
7.since the customer name is required. take from KNA1.table KNA1 is referenced from using the customer code from table VBRP-KUANG, where VBRP-KUNAG=KNA1-KUNNR
8. ship to customers region is required , we need to identify FROM kna1
9.LR number from VTTK
10.LR date , transporter no from VTTK table

selection screen fields:company code
sales org
plant :from-to
invoice no:from-to
date range; from-to
1 take the plant code of the billing documents selected from VBRP-WERKS and refer table T001W, where VBRP-WERKS=T001W-WERKS.
GET adress number from T001W-ADRNR and refer table ADRC, WHERE:T001W-ADRNR=ADRC-ADDRNUMBER.
get the name of the plant from ADRC-NAME1.
get the T001W-LAND1 and T001W-REGIO, and get the satte code by refering table T005U.
-->
SELECT VBRP-WERKS T001W-ADRNR T001W-LAND1 T001W-REGIO
into table itab
FROM VBRP inner join T001W on VBRP~WERKS = T001W-WERKS.
Loop at itab.
  SELECT NAME1 into ITAB-NAME1 FROM ADRC WHERE
  ADDRNUMBER = ADRNR.
  SELECT BEZEI into ITAB-BEZEI from T005U WHERE
  spras = sy-langu and land1 = itab-land1 and
  regio = itab-regio.
  modify itab.
endloop.
-->
Message was edited by: Anurag Bankley

Similar Messages

  • Over view on Types of  Enhancements

    Please give an over view on Types of Enhancements,
    How many types of enhancements are there,what are the defferences.
    Regards
    Sreenivas

    HI sreenivasula reddy kota,
    Enhancements --> is just to enhance/add/modify the performance of the standard SAP according to their own companies business needs ....
    Standard has given some provisions at various points for the customers to include their own business logic ....
    The enhancements are classified broadly  ...
    <b>1. Customer Exits</b>
    Function module exits, Menu exit, Screen Exit --> All in classic ABAP code
    Only one implementation is possible (no resuablity)
    <b>2. BADIs</b>
    Multiple implementation is possible
    Its OOPs based (has classes and methods)
    <b>3. BTEs</b>
    This has evolved basically for the enhancement in FI module ...
    Normal ABAP code is followed here
    <b>4. User Exits ......</b>
    This is nothing but... calling a customer logic from the standard "includes"  .....  (example as given by the previous post)
    Hope this helps a bit ....
    Cheers
    Kripa Rangachari ......

  • Transaction code to view process orders set for deletion

    Hi PP Gurus
    We are trying to search for transaction code to view the process orders which have status as DLFL i.e deletion flag  set for the orders. In cooispi, the deleted orders are not shown in the report output.
    I request you to let me know if there is any other code through which we can view deleted process orders.
    Thanks & Regards
    Harleen Kaur

    Dear,
    In COOISPI  put DLT in system status field and execute the report this will give you the list of all order with deletion flags
    Also refer this thread,
    COOIS Report for Production orders with status DLFL
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on May 6, 2009 11:16 AM

  • T-Code to view SAP Document no.

    Dear,
    Need a T-code to view SAP Document number created while SAP Stock Creation.
    After creation through MB1C a number is generated & i need to know what is the process to get this Document Number.
    Thanks in Advance.

    hi,
    You can check MSEG table to get numbers..
    Or USe MB51 to get list of material document as per your selections on the initial screen...
    Regards
    Priyanka.P

  • T-Code to view stock report

    Dear Frndz,
    What is the T-code to view the system in-stock report.
    Regards,
    Srini

    Hi,
    In MMBE, enter material name, plant & storage location and click execute.
    Double click on the storage location, you will get a complete list with the different categories in which the stock is available (unrestricted stock/ blocked stock/ sales order stock, etc...)
    Regards,
    Ashok

  • T.Code for viewing list of customers of particular account group - Reg

    Hi,
    Can anyone suggest me T.code to view list of customer of particular account group?
    IS there any other method to view the list of customers in a particular account group?
    Please, it is an urgent requirement.
    Rewards sure
    Regards,
    SP.Balaji
    Message was edited by:
            balaji soundarapandian

    Hi Sai Srinivas,
    Already solved it and thanx for your help
    Regards,
    S.P.Balaji

  • I am new to Service module,can anybody give the over view of service module

    I am new to Service module,can anybody give the over view of service module including base table and Relation ship with other Oracle Application module.

    Hello Les,
    Think that you want to buy television or computer and how will you proceed for that.
    1. Material Requirement : Your family will ask you that they need television so that is material requirement from the users (family), they will also give additional information like what is the size of TV, which brand etc
    2. Quotation (Inquiry) : now you have requirement that you need one TV so you will looking for different vendors i.e. Phillips, Sharp, AIWA, Deawood and ask them to give the prices and other terms (free shipping, service after sales ) for TV
    3. Quotation comparision : Once you get the price from all your supplier, you will make comparision on price and other terms also you can negotiate the price with vendor asking for discounts, free door delivery
    4. Vendor Selection: Based on your negotiation you will identify the best deal and place order to that vendor.
    5. Purchase order : You will place order to vendor asking for material (TV), for certain price on particular date at particular location (you home).
    6. Goods Receipt : Once vendor delivers TV then you will receive the material at your location
    7. Invoice receipt: Vendor will send the invoice with that delivery and you will check the price and make the payment to vendor,
    I hope this will help you to under stand the concept of Procurment cylce.
    More details you can get it from the link which I provided.
    Regards
    Arif Mansuri

  • What is the T-code for Viewing the Payment Advices....

    Hi,
    What is the T-code for Viewing the Payment Advices....
    Regards
    Sap Guru

    Hi,
    Payment advice creation - FBE1
    Payment advice Change - FBE2
    Payment advice Display - FBE3
    Payment advice Delete - FBE6.
    Assign points if helpful.
    Thanks,
    Vasu..

  • T-code to view the variant

    Hello all,
    We have created an variant for the warehouse activity monitor and would like tok know the t-code to view the variant that has been created. pl. advise.
    Thanks,
    Maxx

    Hi,
    You will see "Select Layout/Variant" icon in the application toolbar of the transaction screen if you have saved it for a particular transaction.
    Refer following document:
    http://www.olemiss.edu/projects/sap/Display_Variants_10_03.pdf
    Regards,
    Srilatha.

  • T.codes to view the list of persons that are assigned to "activity"

    Hi Guru's
    Are there any transaction codes to view the list of persons that are assigned to u201Cactivity - personal assignment tabu201D in the project?
    Regards,
    Bha

    the same you can view from CJ20n , by clicking perticular activity--> click on person assignment tab.
    This can be true for all the netwrok maintenance txn.
    Regards
    Nitin

  • Over view

    Hi
    i am creating a technical design for a Multi provider.
    multi provider is getting the data from one cube.
    cube is getting the data from one dso
    source system is ISU.
    i have to write over view of this DFD.
    can any body tell me what are the points i have to mention in over view?
    Thanks & Regards
    Krishna

    Hi Krishna,
    For the DFD (BottomUp Approach) you've to mention all these things,
    1) Mention Source System (ISU at the Bottom)
    2) Extract Structure and Transfer Structure
    3) Transfer Rule
    4) Info Source
    5) Update Rule
    6) ODS
    7) Update Rule
    8) Info Cube
    9) Multiprovider
    Note:Assign Pts if it Helps
    -Arun.M.D

  • Over view of Business intelligence

    Hi,
    I would like to have an over view on the Business intelligence.
    i will be thankful if any can body can share a document on the same.
    I will definetly award the points
    thanks in advance
    venkat
    email:[email protected]

    Hi ,
       Check these links
       <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5ee3725b-0401-0010-e381-ac323362ce91">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5ee3725b-0401-0010-e381-ac323362ce91</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/84/497e4ec079584ca36b8edba0ea9495/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/84/497e4ec079584ca36b8edba0ea9495/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/1be541f321c717e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/1be541f321c717e10000000a155106/frameset.htm</a>
    Regards
    Renjith Kumar
    (Assign Points if useful)

  • Re : T-code for viewing SD document

    Hai
         I created sales order delivery billing documents. Let me know the t-code for viewing these document.
    Thanks
    mani

    hi,
    To View,
    For Sales Order : VA03
    For Delivery      :  VL03N
    For Billing        :   VF03
    To Change/Edit,
    For Sales Order : VA02
    For Delivery      :  VL02N
    For Billing        :   VF02
    Regards,
    Raghav

  • Custom code in view

    Hi,
    I want to write custom code in view to validate business logic before
    saving the data. Kindly suggest.
    Regards,
    Gopal.

    Hi,
    Generate 1 maintenance view goto SE54 -> Type in the veiw name and select the radio button 'Generated objects' -> Change
    Now choose Environment  -> Modification -> Events -> New entries
    Add event '01' for Before saving the data into database assign a form name 'F_CHECK_B4_SAVE' and click on editor button
    that will open up the FORM write the code in this routine as per the requirement and even set break points to validate the logic.
    Hope this helps you.
    Thanks & Regards
    Ranjith Nambiar

  • SAP Trans.Code-To view the previous month's OSP Report

    Pl.mention the SAP trans.code for view the OSP status as on previous month.For an example,I want to see the status of OSP stocks as on 30.11.2010.How can I see?From MBLB,we can see the current OSP stock status.Is there any trans.Code for view the previous month OSP stock status?
    Regards

    hi,
        there is no t code specific to your requirement, but you can get the details through MB51, by metioning repective date and movement types like 541,543 etc..
         hope this will help..
    Regards
    Manohar

Maybe you are looking for