Quantity conversion from one unit to another

Hello Experts,
I need to convert quantity from one unit to another For eg: 1000kg to Grams.
Is there any standard Function Module which can do so.
Thanks.

Hi,
Try any of these.
PRC_CNV_UNIT_CONV_ALT_TO_BASE - Convert Alternative to Base Product Unit
PRC_CNV_UNIT_CONV_BASE_TO_ALT - Convert Base to Alternative Product Unit
PRC_CNV_UNIT_CONV_ISO     -     Convert ISO Quantity Unit
PRC_CNV_UNIT_CONV_SIMPLE  -     Convert Simple Unit (Without Product)

Similar Messages

  • Move text conversation from one iPhone to another?

    Kind of a bizarre problem. The other day, my boyfriend accidentally deleted our entire text message conversation off of his iPhone. (He meant to delete one text, and accidentally cleared all.) These text messages span basically our entire relationship and he would like to recover those messages on his phone. Unfortunately, he did not have them backed up to iCloud. However, I do. I have all of our conversation Backed up on both my macbook and iPhone. I am wondering if there is any way I can transfer our specific text conversation from iPhone or MacBook to his iPhone. if anyone knows of this is possible please lete know! Thanks!
    -Queanbee

    Libby101a wrote:
    Did you back up your old phone to itunes? That would put your messages on... restore from back up...
    I was backing up to iCloud rather than iTunes and restored from there when I first got the new phone. This brought everytning over except these text messages. Subsequentrly I tried backing up the old phone to iTunes but this backup is not available to the new one.
    Are these text messages perhaps different from the ones sent using iMessage, which might be backed up?

  • Is it possible to transfer sms conversations from one iphone to another?

    Hey Guys,
    I accidentally cleared the sms conversation between my girlfriend and I on her iphone, she doesn't use itunes so I cant just restore it from her last sync. I still have the conversation on my iphone tho, is there any way I can transfer it from my phone to hers. Any help would be great
    Cheers.

    I doubt it.
    You could investigate PhoneView or MobileSyncBrowser (or maybe TouchCopy), which could let you get the SMS messages as a text file and then she could save it on her computer. I'm guessing it has sentimental value?
    But I don't think there is any feasible way to get it onto her phone. Oh wait, you could also take screenshots of the conversation and then email them from your camera roll to her. Probably easiest.

  • Transfer of Org Unit from one loc to another Loc

    Hi ALL,
    I have issue regarding transfer of organizational unit from one loc to another loc
    is it possible to shift total org unit from one loc to another loc.
    what r all prerequisties required for changing.
    With Best,
    Shaik

    Hi,
    Depends on how you have your structure set up.  Location is usually defined by the Personnel Area.  In this case, you should create a new Personnel Area with the new address information for Bangalore.  You may also retain some individuals in Mumbai and you want to maintain history so that Personnel Area should remain in the system. 
    As for the Organization Units and the reporting relationships, these do not have to change if they have not, only the Account Assignment (IT1008) must be changed to the new Bangalore Personnel Area.  Also, of course, any employees transferred to the new location must have their Organizational Assignment infotypes ((IT0001) changed to the new Personnel Area. 
    This can be a straight-forward change.
    Paul

  • Unable to transfer Unit 892376 from one to Branch another

    Trying to transfer unit from one branch to another n vehicle is FIXED ASSET but giving problem
    Vehicle primary Status is P500 n secondary status is S700
    Error message is Message incomplete (seriousness, area, number, or exception missing)
    Message no. BL203
    Thanks
    Vishal

    Hi Vishal,
    looks like one of the actions has  a problem but do not provide all the necessary error message information for the application log.
    Maybe you can check where message BL203 is used and provide then more information.
    Kind regards
    Robert

  • ABAP Function Module Example to move data from one Cube into Another

    Hi experts,
    Can any please help out in this ..?
    A Simple ABAP Function Module Example to move data from one Cube into Another Cube
    (How do i send the data from one client to another client using Function moduel).
    Thanks
    -Upen.
    Moderator message: too vague, help not possible, please describe problems in all technical detail when posting again, BI related? ("cube"), also search for information before asking.
    Edited by: Thomas Zloch on Oct 29, 2010 1:19 PM

    This is the start routine to duplicate records in two currencies.
    DATA: datew   TYPE /bi0/oidateto,
          datew2  TYPE rsgeneral-chavl,
          fweek   TYPE rsgeneral-chavl,
          prodhier TYPE /bi0/oiprod_hier,
          market  TYPE /bic/oima_seg,
          segment TYPE /bic/oizsegment.
    DATA: BEGIN OF S_DATA_PACK OCCURS 0.
            INCLUDE STRUCTURE /BIC/CS8ZSDREV.
    DATA: END OF S_DATA_PACK.
    S_DATA_PACK[] = DATA_PACKAGE[].
      REFRESH DATA_PACKAGE.
      LOOP AT S_DATA_PACK.
        move-corresponding s_data_pack to DATA_PACKAGE.
        if DATA_PACKAGE-loc_currcy = 'EUR'.
          DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalgrc.
          DATA_PACKAGE-CURRENCY = 'USD'.
          APPEND DATA_PACKAGE.
          DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalloc.
          DATA_PACKAGE-CURRENCY = 'EUR'.
          APPEND DATA_PACKAGE.
        else.
          DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalgrc.
          DATA_PACKAGE-CURRENCY = 'USD'.
          APPEND DATA_PACKAGE.
        endif.
      ENDLOOP.
    This is to load Quantity field
    RESULT = COMM_STRUCTURE-BILL_QTY.
    This is to load Value field
    RESULT = COMM_STRUCTURE-NETVAL_INV.
    UNIT = COMM_STRUCTURE-currency.

  • Unit conversion from Sales unit to Base unit

    HI,
          I am working on 2lis_11_vaitm and 2lis_11_v_ssl sources.
    Both these sources have quantities in Sales unit.
    In BW how do i convert these quantities to Base unit.
    Both sales unit and base units are available in the sources. But value avialable only in Sales unit.
    I am using delivery quantity from 2lis_11_v_ssl and Cumulative order quantity in 2lis_11_vaitm.
    Kindly suggest a way.
    Regards,
    Adarsh
    Edited by: adarsha a on Sep 6, 2008 3:27 PM

    Hi...
    You can use the function module CF_UT_UNIT_CONVERSION to convert from one
    unit to the another.
    Hope this helps you...
    Regards,
    Debjani...

  • How do I move my itunes account from one country to another?

    How do I move my itunes account from one country to another?  I set up my itunes account in the United States and now I live in England.  I would like to transfer my purchases from my US account to my British account and then download them onto my new ipod.  I have uninstalled and reinstalled Itunes and I have updated my Windows 7 operating system.  I have tried to get in touch with apple and the advisor said he could not help me.  Ideas? 

    Before you change the country, note the following:
    - you must use any remaining store credit on your account
    - download all purchased content
    - ensure you have no current rentals(if you do, you'll have to wait for them to expire)
    - provide a new payment(such as a credit or debit card) associated with a valid billing address in the UK or an iTunes Gift Card purchased in the UK
    - content purchased from the iTunes Store is country-specific. If you wish to upgrade any of your iTunes Store content to iTunes Plus, you'll need to do this before you change countries. The content you purchased while your account was set to the previous country will not be eligible for upgrade once you've changed countries.
    - after you change countries, you will no longer receive application update notifications in iTunes for the apps you purchased in your original country. However, you'll still receive update notifications on your iOS device for any applications installed on it. In addition, you'll be able to download previously purchased applications again for free if they are available on your new country's store. You will not be charged and the download will not appear on your Purchased page. If a previously purchased application is not available in your new country, you will not be able to download it again for free.
    - If you have an iTunes Match subscription, you can't change countries until the subscription has expired.
    - If you have purchased a Season Pass, you cannot change the country associated with your account until that season is done airing and the last episode of the season has been added to the iTunes Store.
    Taking the above into consideration, here's how to change your country:
    1. Open iTunes and click Sign In.
    2. Enter your iTunes Store account name and password, then click Account Info.
    3. On the Apple Account Information page, click Change Country or Region.
    4. Enter the updated information and save your changes.

  • Loading data from one table to another table

    I need to load the data (data conversion) from one table to 3 different table.
    I have to load the data from Source table to following 3 target tables.
    So Consumer table has email pk and it has relationship with CONSUMER_RCV table and CONSUMER_RCV
    table has relationship with CONSUMER_ATTR table. I am doing right now with pl/sql but I am looking
    to use MULTI INSERT or SQL*LOADER or another efficient way.
    I tried with MultiInsert but it getting failed as it's violating Unique Constraints as source table might contains
    Duplicate emails.
    Could you please show me how I can load the data efficiently?
    Also I need to load in CONSUMER_ATTR table from CONTACT table which has ATTR1, ATTR2 columns.
    so My mapping will be ...
    Contact.email, first_name, last_name will go into Consumer table
    then in CONSUMER_RCV, I generate the id column value by sequence, load email and DATE_CREATEd from contact table
    And rest of the value is hard coded
    Then in CONSUMER_ATTR table I will generate the CONSUMER_ATTR_id through sequence, for ID, will use the same
    id column value which I have generated by sequence in CONSUMER_RCV, then put the attr_type = 'ATTR1' and for
    attr_value column I will insert the value from contact table's ATTR1 value,
    Then generate another CONSUMER_ATTR_ID, will use the same id column value which I have generated by sequence
    in CONSUMER_RCV, then put the attr_type = 'ATTR2' and for
    attr_value column I will insert the value from contact table's ATTR2 value,
    Please let me know if you need further explanation.
    I am using Oracle 9i R2.
    Please consider CONTACT is Source table, CONSUMER is a Target1, CONSUMER_RCV is a Target2 and CONSUMER_ATTR is a Target3
    to simplify the problem.
    Following is the Table structure
    =========================
    CREATE TABLE CONTACT (
    ID VARCHAR2 (40) NOT NULL, -- will go into Target1
    EMAIL VARCHAR2 (100) ,      -- might be duplicate and will go into Target1 and Target2
    FIRST_NAME VARCHAR2 (100) NOT NULL, -- will go into Target1
    LAST_NAME VARCHAR2 (100) NOT NULL, -- will go into Target1
    COUNTRY VARCHAR2 (40) NOT NULL, -- will go into Target1
    PHONE VARCHAR2 (100), -- will go into Target1
    NOTIFY VARCHAR2 (3), -- will go into Target2 table's RECEIVE_EMAIL column
    CREATE_DATE DATE ,               -- will go into Target1 and target2
    ATTR1 VARCHAR2 (400),           -- will go into Target3 as attr_type= ATTR1 and will load actual value in ATTR_VALUE
    ATTR2 VARCHAR2(100),          -- will go into Target3 as attr_type= ATTR2 and will load actual value in ATTR_VALUE
    ATTR2 VARCHAR2(100),          -- will go into Target3 as attr_type= ATTR1 and will load actual value in ATTR_VALUE
    CONSTRAINT CONTACT_PK
    PRIMARY KEY ( USER_ID ) ) ;
    CREATE TABLE CONSUMER(
    EMAIL VARCHAR2 (100) NOT NULL, -- PK
    TITLE VARCHAR2 (40),
    FIRST_NAME VARCHAR2 (40),
    LAST_NAME VARCHAR2 (40),
    ADDRESS1 VARCHAR2 (40),
    ADDRESS2 VARCHAR2 (40),
    CITY VARCHAR2 (30),
    STATE          VARCHAR2 (30),
    ZIP          VARCHAR2 (10),
    COUNTRY VARCHAR2 (40),
    PHONE VARCHAR2 (15),
    DATE_CREATED DATE NOT NULL,
    CONSTRAINT CONSUMER_PK
    PRIMARY KEY ( EMAIL ) ) ;
    CREATE TABLE CONSUMER_RCV (
    ID                VARCHAR2 (40) NOT NULL,-- PK
    EMAIL VARCHAR2 (100) NOT NULL,-- FK reference to Consumer
    SITE VARCHAR2 (100) NOT NULL, -- default website
    RECEIVE_EMAIL VARCHAR2 (1),
    CREATE_DATE DATE NOT NULL,
    CONSTRAINT CONSUMER_RCV_PK
    PRIMARY KEY (ID) ) ;
    ALTER TABLE CONSUMER_RCV ADD CONSTRAINT CONSUMER_RCV_FK
    FOREIGN KEY (EMAIL)
    REFERENCES CONSUMER (EMAIL) ;
    CREATE TABLE CONSUMER_ATTR (
    CONSUMER_ATTR_ID           VARCHAR2 (40) NOT NULL, -- PK
    ID                     VARCHAR2 (40) NOT NULL, -- FK reference to COnsumer_RCV
    ATTR_TYPE           VARCHAR2 (100) NOT NULL,
    ATTR_VALUE           VARCHAR2 (4000) NOT NULL,
    CONSTRAINT CONSUMER_ATTR_PK
    PRIMARY KEY ( CONSUMER_ATTR_ID ) ) ;
    ALTER TABLE CONSUMER_ATTR ADD CONSTRAINT CONSUMER_ATTR_FK
    FOREIGN KEY (CONSUMER_ATTR_ID)
    REFERENCES CONSUMER_RCV (ID) ;

    HI Hema,
      How are the entries related.. is it like for one entry in y table there are more than one entry in x table then you have to use loop with in loop , here are the both the conditions.
    1) For each entry in Y there are more than one entries in X
      sort y by quota trpid.
      sort x by quota trpid.
      loop at y.
      loop at x where quota eq y-quota
                            and trpid eq y-trpid.
      z-value = x-value.
      append z.
      endloop.
      endloop.
    2) For each y there is one entry in x table.
    sort y by quota trpid.
      sort x by quota trpid.
      loop at y.
      read table x with key quota = y-quota
                                trpid = y-trpid binary search.
    if sy-subrc eq 0.
      z-value = x-value.
      append z.
    Endif.
      endloop.
    Mahesh

  • Can I move photos from one computer to another using Vault?

    Can I move photos from one computer to another using Vault?  I use an external hard drive as a vault for my Imac and I want to import photos to my Macbook pro.  I have aperture 3 on both units.  Can I just plug the ext. drive into the laptop and import from the vault?

    You can't import from the vault but you can restore that vault onto the MBP. This will restore the complete library that is contained in the vault.

  • Error while copying GL Accounts from One Client to another client

    Hi,
    We are trying to copy GL accounts created in one client to another client (Company Code is same in both the clients). First we executed FS15 (send) and a file was created on the server. With the help of BASIS team we checked that file and it contained the required values. However, when we are doing FS16 (receive) we are getting following OK messages:
    File /usr/sap/DEV/SYS/global/FBISABC is being checked
    Session 1 session name RFBISA20 : No terminations have been found
    However, at the same time we are getting following error message:
    File name FI_COPY_COMPANY_CODE_DATA_FOR_GENERAL_LEDGER_0X is unknown
    Message no. SG001
    Diagnosis
    No entry was found in the conversion table for the logical file name FI_COPY_COMPANY_CODE_DATA_FOR_GENERAL_LEDGER_0X.
    Procedure
    Add an entry to the conversion table for the logical file name. Maintain the conversion table with the transaction SM30.
    Can someone please advice is there something wrong that we are doing for copying GL accounts from one client to another client.
    Thanks,
    Sanjay

    Dear Sanjay,
    Did you check the batch-input? SM35
    It could have happend that there was a mistake in the batch-input data and that the destination file has not been written. If this has not been written it could not be found.  (I.E. you tried to transport G/L Accounts with deletion flags but did activate the checkbox "Transfer deletion ****").
    There is another point: Did you activate the box "Datei nur prüfen" (English: Check file only)? If this box is activated the programm will check if the batch-input-file will be written without mistakes but it will not write the file. Only if the checkbox is not activated the batch-input-file will be written. (the same with FS16).
    Kind regards
    Maike
    Edited by: Maike Nemeyer on Dec 1, 2011 8:52 AM
    Edited by: Maike Nemeyer on Dec 1, 2011 11:45 AM

  • How to Add Sales order from one database to another database

    Hi All,
    I am trying to add sales order with sales order object.
    I have completed connectivity from one database to another database.
    but i am unable to post sales order with orders object.
    My code is
    ObjSales = objMain.objUtilities.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                ObjSales.DocDate = Date.Parse(System.DateTime.Now().ToString("d"))
                ObjSales.DocDueDate = Date.Parse(System.DateTime.Now().ToString("d"))
                ObjSales.TaxDate = Date.Parse(System.DateTime.Now().ToString("d"))
                ObjSales.CardCode = "C0006"
               ObjSales.Series = 92
                ObjSales.PaymentGroupCode = 3
                ObjSales.Comments = "vivek"
               ObjSales.Lines.Add()
               ObjSales.Lines.SetCurrentLine(1)
               ObjSales.Lines.ItemCode = "5127"
               ObjSales.Lines.Quantity = 100
               ObjSales.Lines.UnitPrice = 10
               ObjSales.Lines.WarehouseCode = "01"
                ObjSales.Lines.TaxCode = "0"
                ObjSales.Lines.DiscountPercent = "0.00"
                ObjSales.DocTotal = 1000
                 If ObjSales.Add <> 0 Then
                   objMain.objApplication.SetStatusBarMessage("Sales or Not Posted", SAPbouiCOM.BoMessageTime.bmt_Short, True)
                   Exit Sub
                else
                  objMain.objUtilities.ShowSuccessMessage("Sales Order Posted successfully")
                End If
    The above code is executing successfully.But the Sales order is not getting added.
    Thanks in advance.

    Hi Vivek,
    If the code you posted is not throwing any errors, then the order really does get created. Apparently just not to both databases, am I correct ?
    vivek.Y wrote:
    > I have completed connectivity from one database to another database.
    That means that apparently you have not gotten this bit right.
    Generally speaking if you want to create an order into two databases, you first need to connect to both databases and create separate order objects for each database. So you need to do this bit twice; once for each database. Something like this:
    ObjSales1 = objMain.objUtilities1.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
    ObjSales2 = objMain.objUtilities2.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
    Then at the end you also need to add both objects separately:
    If ObjSales1.Add <> 0 Then
    etc.
    If ObjSales2.Add <> 0 Then
    etc
    Good luck,
    Johan

  • [CS3 JS]  Move pages from one document to another?

    First, a brief explanation of what I am trying to do. I have several individual chapters that I am including in an INDD book. However, I also want to be able to allow those individual chapters to stand alone, meaning that I want to add a cover/title page to each chapter file (these two pages would be placed before the current page 1 of each chapter).
    My preference would be to write a script that would open the cover/tp file and open the first chapter file; this part is no problem. Where I am running into trouble however, is the second step: moving the cover/tp pages (2 pages) over into the chapter file.
    Manually, I would open Cover.indd, activate the "move pages" menu, "Move pages: 1-2", "Destination: Before_Page 1", "Move to: Chapter1.indd".
    With over 100 chapters in the book, however, I would prefer to automate the process. I have looked into the Page.move and PageItem.move elements, but both look like they would require a location in the current document (either in (x,y) form or using "AT_BEGINNING".
    If I cannot get this to work, I will likely try to insert two blank pages, then cut/paste with a script, but I would prefer the "move" functionality, if it is possible.
    A couple of answers to potential questions:
    I can't simply place the INDD cover file b/c it uses a text variable to pull the chapter name; this personalizes each stand-alone chapter.
    Same answer to why I can't just slap the 2-page .pdf on the front of each. I need the text variable to still be active.
    Has anyone tried to move pages from one document to another using scripting? I tried to explain what I am trying to do, but if it doesn't make sense, I can try again. :)
    thanks!
    Matt

    ok here we are
    I get a raw skeleton that you will have to adjust but it's functional.
    Use a PDF for placement as you can specify the page that you want to place.
    I don't know if you can do the same for indesign files.
    So basically, it starts adding 2 pages and placeing the pdf in the same time.
    After that, it creates the textVariable and the frame that will receive it.
    Here you are:
    //If a document is open
    if(app.documents.length!=0)
    var ad = app.activeDocument;
    //Pages placement
    for(i=0; i<2; i++)
    //Add 2 pages on top of the document;
    var tmpPg = ad.pages.add(LocationOptions.BEFORE, ad.pages[0]);
    //Here you place your pdf
    app.pdfPlacePreferences.pageNumber = i;
    tmpPg.place(File(cover.pdf), false)
    //You should specify page x and page y but ain't found yet the way to go.
    //Text variable creation
    //Check if the textVariable named "txtVar" does not already exist...
    if(ad.textVariables.item("txtVar")==null)
    //if not found, create the text variable named "txtVar"
    var txtVar = ad.textVariables.add();
    txtVar.variableType =VariableTypes.CUSTOM_TEXT_TYPE;
    txtVar.name = "txtVar";
    //Set the contents of the text variables to the string "test"
    ad.textVariables.item("txtVar").variableOptions.contents = "test";
    //these coordinates don't care aboutyour units but you may adjust them to your needs
    var y1 = ad.marginPreferences.left;
    var x1 = ad.marginPreferences.top;
    var y2 = y1+5;
    var x2 = x1+25;
    var myFrame = ad.pages[0].textFrames.add({geometricBounds:[y1,x1,y2,x2]});
    //Set the contents of the frame to the text variables "txtVar"
    myFrame.contents=ad.textVariables.item("txtVar").variableOptions.contents;
    //You may want to stylize the txtVar
    //In this case, either you use a existing characterStyle or you create one in the script
    Bye Loic

  • Transfer Items from one warehouse to another

    hi,
        i have to transfer Items from one warehouse to another warehouse.
    i have a item which has 3 quantity in warehouse1 now i find that this item belongs to warehouse2  ,i want to shift all it's quantity in 2nd warehouse as well as sets  warehouse2 as default warehouse for that item.
    Regards

    Hi,
    Check this, it will help your query :
    http://help.sap.com/saphelp_sbo2005asp1/helpdata/en/0c/87353e7a069028e10000000a114084/content.htm
    Regards,
    Jitin

  • Move column from one place to another..

    Hi
    I need to  arrange the order in which the columns are displayed in my ALV Grid displayed so that i can move the columns from one position to another but its not been allowed in the program so could u pls suggest which field needs to be set for this?
    Regards
    Gunjan

    Hi
    You can use the following statement
    ls_fcat-col_pos           =  01.
    By using this you can fix your column position
    or else to sort the column try like this
    sort-spos = '10'.
    SORT-FIELDNAME = 'Years'.
    SORT-TABNAME = 'DATA_TAB2'.
    sort-UP = 'X'.
    sort-subtot = 'X'.
    SORT-GROUP = '* '.
    APPEND SORT. CLEAR SORT.
    In the It_SOET internal table write:
    IT_SORT-Group = 'X'.
    REPORT  ZSDN                                    .
    TABLES : ekkn,ekko,EKPO,EKET,VBEP,LFA1.
    TYPE-POOLS : slis, ICON.
    DATA : DATE1 TYPE SY-DATUM.
    data : begin of itab occurs 0,
          VBELN like ekkn-VBELN, "SALE ORDER
          VBELP LIKE EKKN-VBELP, "LINE ITEM
          BEDAT LIKE EKKO-BEDAT, "DOCUMENT DATE
          KUNNR LIKE VBAK-KUNNR, "SOLD TO PARTY
          VBELN1 like VBEP-VBELN, "SALE ORDER1
          POSNR1 LIKE VBEP-POSNR, "LINE ITEM
          EDATU LIKE VBEP-EDATU, "END DATE
          EMATN LIKE EKPO-EMATN, "STATUS
          BMENG LIKE VBEP-BMENG, "DAYS
          TDDAT LIKE VBEP-TDDAT, "START DATE
          LMENG LIKE VBEP-LMENG, "DAYS -START DATE
          LABNR LIKE EKPO-LABNR, "STATUS
          PLNUM LIKE VBEP-PLNUM, "OVERALL STATUS
          EKGRP like ekko-EKGRP, "PURCHASING GROUP
          EBELN LIKE EKKN-EBELN, "PO NO
          EBELP like ekkn-EBELP, "LINE ITEM
          EINDT LIKE EKET-EINDT, "DELIVERY DATE
          MATNR LIKE EKPO-MATNR, "MATERIAL NUMBER
          TXZ01 LIKE EKPO-TXZ01, "MATERIAL TEXT
          LIFNR LIKE EKKO-LIFNR, "VENDOR
          MENGE LIKE EKPO-MENGE, "QUANTITY
          WEMNG LIKE EKET-WEMNG, "GR QTY
          WAMNG LIKE EKET-WAMNG, "BAL QTY
          MEINS LIKE EKPO-MEINS, "OUn
          NETPR LIKE EKPO-NETPR, "PRICE
          LOEKZ LIKE EKPO-LOEKZ, "DELETED
          LIFNR1 LIKE LFA1-LIFNR, "VENDOR
          NAME1 LIKE LFA1-NAME1, "VENDOR NAME
          WERKS LIKE EKPO-WERKS, "PLANT
          end of itab.
    DATA : BEGIN OF it_final OCCURS 0,
          KUNNR LIKE VBAK-KUNNR, "SOLD TO PARTY
          LABNR LIKE EKPO-LABNR, "STATUS
          EMATN LIKE EKPO-EMATN, "STATUS
          VBELN like ekkn-VBELN, "SALE ORDER
          VBELP LIKE EKKN-VBELP, "LINE ITEM
          BEDAT LIKE EKKO-BEDAT, "DOCUMENT DATE
          EDATU LIKE VBEP-EDATU, "END DATE
          TDDAT LIKE VBEP-TDDAT, "START DATE
          PLNUM LIKE VBEP-PLNUM, "OVERALL STATUS
          EKGRP like ekko-EKGRP, "PURCHASING GROUP
          EBELN LIKE EKKN-EBELN, "PO NO
          EBELP like ekkn-EBELP, "LINE ITEM
          EINDT LIKE EKET-EINDT, "DELIVERY DATE
          MATNR LIKE EKPO-MATNR, "MATERIAL NUMBER
          TXZ01 LIKE EKPO-TXZ01, "MATERIAL TEXT
          NAME1 LIKE LFA1-NAME1, "VENDOR NAME
          MENGE LIKE EKPO-MENGE, "QUANTITY
          WEMNG LIKE EKET-WEMNG, "GR QTY
          WAMNG LIKE EKET-WAMNG, "BAL QTY
          MEINS LIKE EKPO-MEINS, "OUn
          NETPR LIKE EKPO-NETPR, "PRICE
          WERKS LIKE EKPO-WERKS, "PLANT
    END OF it_final.
    DATA: color TYPE TABLE OF lvc_s_scol WITH HEADER LINE,
          st_layout TYPE slis_layout_alv.
    DATA : fcat TYPE slis_t_fieldcat_alv,
          ls_fcat LIKE LINE OF fcat,
          fheader TYPE TABLE OF slis_listheader WITH NON-UNIQUE DEFAULT KEY
          WITH HEADER LINE INITIAL SIZE 0.
    DATA :i_repid LIKE sy-repid,
         gs_layout   TYPE slis_layout_alv,
         week type n.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: zso FOR ekkn-vbeln.
    SELECT-OPTIONS: zpgr FOR ekko-EKGRP.
    SELECT-OPTIONS: ZPL FOR EKPO-WERKS.
    SELECTION-SCREEN END OF BLOCK bk1.
    gs_layout-colwidth_optimize = 'X'.
    select A~VBELN
          A~VBELP
          A~EBELN
          A~EBELP
          B~MATNR
          B~TXZ01
          B~MENGE
          B~MEINS
          B~NETPR
          B~WERKS
          B~LOEKZ
          C~EINDT
          C~WEMNG
          D~EKGRP
          D~LIFNR
          D~BEDAT
          INTO CORRESPONDING FIELDS OF TABLE ITAB
          FROM EKKN AS A
          INNER JOIN EKPO AS B ON A~EBELN = B~EBELN
          AND A~EBELP = B~EBELP
          INNER JOIN EKET AS C ON A~EBELN = C~EBELN
          AND A~EBELP = C~EBELP
          INNER JOIN EKKO AS D ON A~EBELN = D~EBELN
          WHERE A~VBELN IN ZSO
          AND D~EKGRP IN ZPGR
          AND B~WERKS IN ZPL.
    LOOP AT ITAB.
    ITAB-WAMNG = ITAB-MENGE - ITAB-WEMNG.
    SELECT SINGLE VBELN KUNNR
    FROM VBAK INTO (ITAB-VBELN , ITAB-KUNNR )
    WHERE VBELN = ITAB-VBELN.
    SELECT SINGLE VBELN EDATU
    FROM VBEP INTO (ITAB-VBELN , ITAB-EDATU)
    WHERE VBELN = ITAB-VBELN.
    DATE1 =  SY-DATUM.
    ITAB-BMENG = ITAB-EDATU - DATE1.
    if itab-BMENG  < 0.
       ITAB-EMATN = 'OVER DUE'.
    elseif itab-BMENG ge 0 AND itab-BMENG le 10.
       ITAB-EMATN = 'CRITICAL'.
    elseif itab-BMENG > 10.
       ITAB-EMATN = 'UNDER FOLLOW-UP'.
    endif.
    SELECT SINGLE VBELN POSNR TDDAT
    FROM VBEP INTO (ITAB-VBELN1 , ITAB-POSNR1 , ITAB-TDDAT)
    WHERE VBELN = ITAB-VBELN AND
    POSNR = ITAB-VBELP.
    ITAB-LMENG = ITAB-TDDAT - DATE1.
    if itab-LMENG  < 0.
       ITAB-LABNR = 'OVER DUE'.
    elseif itab-LMENG ge 0 AND itab-LMENG le 10.
       ITAB-LABNR = 'CRITICAL'.
    elseif itab-LMENG > 10.
       ITAB-LABNR = 'UNDER FOLLOW-UP'.
    endif.
    IF ITAB-WAMNG LE 0 OR
        ITAB-LOEKZ = 'L' OR
        ITAB-LOEKZ = 'S'.
        ITAB-PLNUM = 'CLOSED'.
    ELSE.
        ITAB-PLNUM = 'OPEN'.
    ENDIF.
    SELECT SINGLE LIFNR NAME1
    FROM LFA1 INTO (ITAB-LIFNR1 , ITAB-NAME1)
    WHERE LIFNR = ITAB-LIFNR.
    MODIFY ITAB.
    ENDLOOP.
    loop at itab.
       move-corresponding itab to it_final.
       append it_final.
    endloop.
    perform edit_mask.
    i_repid = sy-repid.
    PERFORM fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program      = i_repid
         i_callback_user_command = 'USER_COMMAND'
         it_fieldcat             = fcat
         i_save                  = 'A'
       TABLES
         t_outtab                = it_final
       EXCEPTIONS
         program_error           = 1
         OTHERS                  = 2.
    *&      Form  fieldcat
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fieldcat .
    MOVE sy-repid TO i_repid.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-decimals_out = 2.
    ls_fcat-col_pos = 1.
    ls_fcat-fieldname = 'KUNNR'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Sold to Party'.
    ls_fcat-emphasize = 'C310'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  6.
    ls_fcat-fieldname = 'LABNR'.
    ls_fcat-outputlen = 20.
    ls_fcat-seltext_m = 'Window Start Status'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C510'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  5.
    ls_fcat-fieldname = 'EMATN'.
    ls_fcat-outputlen = 15.
    ls_fcat-seltext_m = 'Window End Status'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C410'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  2.
    ls_fcat-fieldname = 'VBELN'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Sale Order'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C710'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  3.
    ls_fcat-fieldname = 'VBELP'.
    ls_fcat-outputlen = 5.
    ls_fcat-seltext_m = 'Item'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C710'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  4.
    ls_fcat-fieldname = 'EBELN'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Number'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C710'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  7.
    ls_fcat-fieldname = 'EBELP'.
    ls_fcat-outputlen = 5.
    ls_fcat-seltext_m = 'PO Item'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  8.
    ls_fcat-fieldname = 'EKGRP'.
    ls_fcat-outputlen = 3.
    ls_fcat-seltext_m = 'Pur.Group'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  9.
    ls_fcat-fieldname = 'BEDAT'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Doc.Date'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  10.
    ls_fcat-fieldname = 'EINDT'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Delivery Date'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  11.
    ls_fcat-fieldname = 'MATNR'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Material Number'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  12.
    ls_fcat-fieldname = 'TXZ01'.
    ls_fcat-outputlen = 15.
    ls_fcat-seltext_m = 'Description'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  13.
    ls_fcat-fieldname = 'NAME1'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Vendor'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C110'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  14.
    ls_fcat-fieldname = 'MENGE'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Quantity'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  15.
    ls_fcat-fieldname = 'WEMNG'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Quantity Recvd'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  16.
    ls_fcat-fieldname = 'WAMNG'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Bal Qty'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  17.
    ls_fcat-fieldname = 'MEINS'.
    ls_fcat-outputlen = 2.
    ls_fcat-seltext_m = 'OUn'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  18.
    ls_fcat-fieldname = 'NETPR'.
    ls_fcat-outputlen = 8.
    ls_fcat-seltext_m = 'NetPrice'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  19.
    ls_fcat-fieldname = 'TDDAT'.
    ls_fcat-outputlen = 15.
    ls_fcat-seltext_m = 'Window Start date'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  20.
    ls_fcat-fieldname = 'EDATU'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Window End date'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  21.
    ls_fcat-fieldname = 'PLNUM'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Status'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C610'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  22.
    ls_fcat-fieldname = 'WERKS'.
    ls_fcat-outputlen = 5.
    ls_fcat-seltext_m = 'Plant'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ENDFORM.                    " fieldcat
    *&      Form  edit_mask
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM edit_mask .
    loop at it_final.
       CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
         EXPORTING
           INPUT  = it_final-vbeln
         IMPORTING
           OUTPUT = it_final-vbeln.
    Read table it_final.
    *  modify it_final.
    endloop.
    ENDFORM.                    " edit_mask
    Reward all helpfull answers
    Regards
    Pavan

Maybe you are looking for

  • HT2729 syncing new ipad mini with itunes

    trying to sync my new ipad mini to my older macbook with itunes 10.6 it says i need 10.7. When I check for upgrades it says mine is the latest version. Help?

  • Terminal: does not display a prompt, login in titlebar after web dev setup

    Hey, i did a fresh install on my macbook, and i reinstalled all my dev environment. I had some trouble with this and i may have messed something up in the process, but basically the no prompt problem happened after i installed mysql, set up apache th

  • HT4623 person contact image does not appear while on a call,why?

    person contact image does not appear while on a call,why?

  • STO's INTER / INTRA & THIRD PARTY SALES

    Dear friends!! plz clear my doubts in the following : - 1) in STO cross comp, internal customer required and doc flow is like NBNLCCF2 and my doubt is whether pricing comes to F2 from NB with MM pricing procedure? Does Doc.PP should be assigned to F2

  • Do I need PLM?

    Greetings all! Have a question in regards to PLM.  Everything I have been reading on the threads refers to quality, project, engineering and change management.  I think this may be overkill for what we are looking to do.  I will describe the type of