GOA replication problem- data missing during RFC-Urgent

Hi,
I have an issue with updating GOA from SRM to ECC. Standard GOA do not have any fields to update TAX code and ERS indicator to the back end.
This two fields are added to the structure   BBPS_CTR_ITEM through customization.
The GOA is transferred to the backend through the FM META_CTR_TRANSFER which in turn calls the FM      B46B_CTR_TRANSFER.
Inside the FM B46B_CTR_TRANSFER  the RFC call is made to FM BBPV_CONTRACT_TRANSFER which actually transfers the GOA to the backend. The GOA line  item details are passed to this FM through lt_be_items[].
The issue is, i can able to see the TAX code and ERS indicator in the itab lt_be_items in SRM side, but when it goes to the ECC through RFC  these two fields become blank,
I checked the structure of the same itab in ECC side the field names and the domains are same.
Thanks in advance,
Aravind.

The issue was due to improper structure mapping between two systems. Now its solved.
Regards,
Aravind.

Similar Messages

  • 0FIGL_O02 - Data missing during extraction

    Hi,
    I am trying to do an extraction from ECC to BI using the standard BI content - 0FIGL -> 0FIGL_O02.
    Although, it extracts most of the data from ECC, certain FI related transactions are missed out for that
    extraction period, which I cross validate the data with the F.01 report for the same period
    in ECC.
    Although, I did the following steps to cross check.
    t will be of great help to share your ideas / steps to check.
    1. Checked sing the extract checker using RSA3 for that period in ECC.
    2. Checked whether the account number is blocked using FS00 in ECC.
    Kindly, give your valuable inputs.
    Thanks
    Bala

    Hi Bala,
    You mean records count is not matching with ECC or key figure values are not matching with ECC values. As an example amount in BW is not matching ECC amount for a certain period.
    Some times due to filter criteria, business logic defined in routines all the data might not be loaded into BW. You need to check from top to bottom dataflow where you are seeing differences.
    Regards,
    Vengal.

  • Problem of Missing parts during the Process Order release

    Hi
    For a Make to Order strategy, I have run MRP for a sales order which resulted in planned order for the material. But when I try to convert the Planned Order to Process Order, I am getting error Parts are missing during the availabilty check even though the components are available in the stock.
    But when I create a Process Order manually, I am not facing the problem of missing parts as stock for components are available in stock.
    Please advice why I am facing the problem with Planned Orders which are created via MRP.
    Regards
    Brijesh

    Dear all,
    If we set the Individual requirement (1) in MRP4 view of the material master for the component, the system will not consider the plant stock and it will give the message like Parts are missing during the Process Order process even though the plant stock is exists for the component.
    So I would like to where in customization you define this?
    --> To not consider the plant stock if individual req is set (1)
    --> To consider the plant stock if collective req is set (2)
    Kindly advice,
    Regards,
    Brijesh

  • I have a 2nd iPhone, the same problem of missing Data in Notes Apps again. Please advise.

    I have a 2nd iPhone, the same problem of missing Data in Notes Apps again. Please advise.

    Did you purchase the music through the iTunes Store?
    The apps you have purchased can be downloaded for free from the App Store.
    http://support.apple.com/kb/HT2519

  • Some Condition types missing during extraction from 2LIS_11_VAKON

    Hi,
    I am extracting conditions data to BI from ECC through 2LIS_11_VAKON. This datasource uses the fields from table KOMV. The Field KSCHL (Condition type) is also being taken from KOMV structure.
    My problem is some condition types are missing during extraction. Say, for example, for a Document condition i have 22 Condition types in KONV table but when i extract the data to BI, nearly 7 conditions are missing, i am getting only 15 condition types for the same document condition in BI.
    Why is this happening? I dont have any filters set. Moreover, this is happening in the Datasource level itself.
    Please advice. Any help on this is highly appreciated.
    Regards,
    Murali

    Hi Murali,
    try to have the manual check with set of data..there must be some mistaken in And and OR logic.
    Thanks,
    Deepak

  • Session in-memory replication problem

    Hi,
              I am running into some cluster HttpSession replication problems. Here is
              the scenario where replication fails (all servers mentioned here are a
              part of a cluster).
              1a - 2 Weblogic servers (A&B) are running - no users logged in,
              2a - user logs in and a new session in server A is created.
              3a - after several interactions, server A is killed.
              4a - after user makes susequent request, Weblogic correctly fails over
              to server B
              Problem: Not entire session data is replicated. The authentication info
              seems to
              be replicated correctly but there are some collections in the session of
              server A
              that did not make it to the session in server B.
              The interesting part is this: If there is only one server A running to
              begin with and a user
              interacts with it for a while and only then server B is started, when
              after server B starts up
              server A dies - the entire session (which is exactly the same as in the
              failing scenario) is
              corretly replicated in B, including collections that were missing in the
              failing scenario.
              How can this be possible ????
              Thanks for any info on this one - it really puzzles me.
              Andrew
              

    Yes, you are on the right track. Everytime you modify the object you should call
              putValue. We will make it more clear in the docs.
              - Prasad
              Andrzej Porebski wrote:
              > Everything is Serilizable. I get no exceptions. I did however read some old
              > posts regarding
              > session replication and I hope I found an answer. It basically seems to boil
              > down to what
              > triggers session sync-up between servers. In my case , I store an object into
              > session and
              > later on manipulate that object directly wihotu session involvment and the
              > results of those manipulations
              > are not replicated - no wonder if HttpSession's putValue method is the only
              > trigger.
              > Am i on the right track here?
              >
              > -Andrew
              >
              > Prasad Peddada wrote:
              >
              > > Do you have non serializable data by any chance?
              > >
              > > - Prasad
              > >
              > > Andrzej Porebski wrote:
              > >
              > > > Hi,
              > > > I am running into some cluster HttpSession replication problems. Here is
              > > > the scenario where replication fails (all servers mentioned here are a
              > > > part of a cluster).
              > > > 1a - 2 Weblogic servers (A&B) are running - no users logged in,
              > > > 2a - user logs in and a new session in server A is created.
              > > > 3a - after several interactions, server A is killed.
              > > > 4a - after user makes susequent request, Weblogic correctly fails over
              > > > to server B
              > > >
              > > > Problem: Not entire session data is replicated. The authentication info
              > > > seems to
              > > > be replicated correctly but there are some collections in the session of
              > > > server A
              > > > that did not make it to the session in server B.
              > > >
              > > > The interesting part is this: If there is only one server A running to
              > > > begin with and a user
              > > > interacts with it for a while and only then server B is started, when
              > > > after server B starts up
              > > > server A dies - the entire session (which is exactly the same as in the
              > > > failing scenario) is
              > > > corretly replicated in B, including collections that were missing in the
              > > > failing scenario.
              > > >
              > > > How can this be possible ????
              > > >
              > > > Thanks for any info on this one - it really puzzles me.
              > > >
              > > > Andrew
              > >
              > > --
              > > Cheers
              > >
              > > - Prasad
              >
              > --
              > -------------------------------------------------------------
              > Andrzej Porebski
              > Sailfish Systems, Ltd. Phone 1 + (212) 607-3061
              > 44 Wall Street, 17th floor Fax: 1 + (212) 607-3075
              > New York, NY 10005
              > -------------------------------------------------------------
              

  • Libjil.iso missing during run time?

    Hi all,
             I am new one to jes. I setup jes in Raspbian on Raspberry machine. libjil.iso is missing during run time. Please help me how to resolve the issue.
    Thanks a lot.

    try to adjust ur repeating fram which prints ur data in ur report.
    some of ur data overlaping that's y it cannot display . most of the time character mode reports generate this error. simply adjust ur repeating fram up and down where it fits u problem will solve.
    tnx.

  • Error " Data missing for the entry check while creating a new waste code

    Hi all, While setting a new Waste code I get the error " Data missing for the entry check, correction:". while filling the NAM- WASTECOCAT - LER item.
    This sould look for the catalog's name included in the phrase set but for some reason it doesn't find it giving me this error.
    I am changing original Characteristics, phrase set, classes, and value assignment type. Just to have my own estructure with Znames for all of them.
    I have also change the enviroment parameter "WAM_PHRSET_WACATLG" with the name of my phrase set.
    I have checked everything several times watching for typos or looking for a missing step.
    I have even tried including my new Z's characteristics in the classe and living the original SAP_EHS_1024_001_WASTE_CATALOG. (changing the enviroment parameter WAM_PHRSET_WACATLG to SAP_EHS_1024_001_WASTE_CATALOG) and it works.
    I will like to change this characteristic by Z_EHS_WA_WASTE_CATALOG
    Phrase set to Z_EHS_WA_WASTE_CATALOG.
    enviroment parameter WAM_PHRSET_WACATLG= Z_EHS_WA_WASTE_CATALOG
    After matching up the master data It should work fine but I might be missing something to get it running ok.
    ¿Any idea?
    Regards,
    Alvaro

    Hello Juan Carlos, the value and class that I want to duplicate and doesn't work is for Waste Code, I have also duplicated the one you have displayed (waste pproperties) without any problem.
    1.I have duplicated and changed class SAP_EHS_1024_001. to Z_EHS_WA
    2. Create a copy of the 5 characteristics included in this class.
    SAP_EHS_1024_001_WASTE_CATALOG
    SAP_EHS_1024_001_WASTE_CODE
    SAP_EHS_1024_001_WA_SUBCATEG
    SAP_EHS_1024_001_WA_CATEGORY
    SAP_EHS_1024_001_REMARK
    change the name by
    Z_EHS_WA_WASTE_CATALOG
    Z_EHS_WA_WASTE_CODE
    Z_EHS_WA_SUBCATEG
    Z_EHS_WA_CATEGORY
    Z_EHS_WA_REMARK.
    I checked the funcion C14K_WASTECATLG_CHECK is in the value of the Z_EHS_WA_WASTE_CODE characteristic
    I checked the funcion C14K_WASTECODE_CHECK is in the value of the Z_EHS_WA_WASTE_CATALOG characteristic
    3. Create phrase sets for each new category. with same name.
    4. Match up the master data.
    5. Change the enviroment parameter.to Z_EHS_WA_WASTE_CATALOG
    I think I have followed all the steps, but for some reason it doesn't find the catalog
    The phrase for the catalog is EWC in english and LER in spanish.
    Regards
    Alvaro.

  • Problem while calling an RFC Function Module in Background

    Hello,
    I have created a RFC function module for reading data from an external DB system. The FM calls an external RFC program (coded in C++ using RFC SDK), which delivers the required data. This external program is maintainged as an TCP RFC Connection in SM59.
    Further I have created a report, that calls the RFC function module to get the data from the external RFC programm.
    My problem is, when I call the report in foreground, everything works OK, the RFC connection works and data can be read from the external program.
    However, when I schedule the report to run in background as a job, the report is stating in the protocoll that there was a problem calling the defined RFC connection (although the connection is working properly at that time).
    More funny is, this particular problem with running in background occurs only in the productive system, in test and development system the report works correctly also while running as a job in background.
    Can you suggest the solution to this problem? Could it be something with authorisations or server settings?
    I will be on holiday for the next 6 weeks, so take your time to answer .
    Regards,
    Dusan.
    Edited by: Julius Bussche on Jan 22, 2009 7:19 PM
    Please read the forum rules about u r g e n t ...

    This is an external RFC server program, not a remote enabled ABAP RFC function module as the others seem to be assuming, right?
    Is it possible that your DEV and QAS systems only have one application server, but the PROD has many and dedicated one(s) for processing low priority background jobs?
    It might be that the target server of your TCP connection is not this BTC instance, and your RFC server is returning the data "locally" - so, into nirvana...
    Just guessing, but might be worth checking.
    Cheers,
    Julius

  • DB connect no data found is rfc connection required

    Hi Gurus,
    I want to retrieve data from oracle database, i have all the table with data in it, but through the source system i.e db connect it does not display any contents of the table, it says no data found, the installation was all done perfecttly fine, i can read the table fields but i am not able to read the data from the table. what could be the problem.
      Is an RFC connection required for this db connect to retrieve the data from oracle. or else what is the issue. Can anyone please help me out on this, I already posted long back on this still no reply on it. From the osss notes it allgives information about the intallation but it there is no data found then it does not give any information onthis. Can anyone please help me out on this.
    Thanks,
    Hem

    Hi Hem,
    You want to retrieve data from Oracle Database using BW and you are having a problem?
    Try isolation technique to solve your problem.
    Try to use third party softwares e.g. MS Excel. Retrieve data from Oracle using MSExcel. If MSExcel can retrieve data then you can conclude:
        a.) The network connection to Oracle is fine.
        b.) Oracle is up and running and is able to serve data from your specified table.
    RFC Connection is not required. RFC is only useful for SAP to SAP communication. This connection uses a different technique and uses a different driver to communicate. SAP provided DB Connect Engine. A similar approach as what Microsoft's OLEDB is doing. This to make a transparent connection between various database systems. (whether MSSQL, Oracle, MSACCESS, SYBASE etc.)
    As part of isolation technique, are you sure you are accessing the correct table? Try to access other tables. If you can access data of different tables then something is wrong with the table you want to access.
    Have you check authorization issues? Are you allowed to extract data?
    Hope I have helped. If I did, please grant points...
    --Jkyle

  • Error in Data Transfer Process (DTP) Urgent!

    Hi,
    ive encountered an error in uploading data from R3 using DTP in a specific cube and it says "Exceptions in Subset: Load and Generation" and "Dump: ABAP/4 processor: MESSAGE_TYPE_X", how can i fix this problem? is there any problem with the upgrade process of our system or in KERNEL? and what is KERNEL? Please help me guys.....
    Thanks,
    nips

    Please do not post the same question twice.
    Error in Data Transfer Process (DTP) Urgent!

  • Problems were encountered during repair of the partition map.

    I had too much time on my hands yesterday and I decided to try to remove an unused kernel extension that I saw in my EtreCheck report. The kext was for the PACE iLok, for Pro Tools, which I no longer use. I found the item that was installing the kext and removed it, and EtreCheck reported that the kext was gone.
    Some time after that I was troubleshooting another issue I have with Mavericks (shutdown time: my shutdown time with ML was almost instantaneous; with Mavericks, it takes about 12 seconds.), and I used the recovery partition and Disk Utility to repair my HD and permissions.
    DU reported that my usual boot volume was OK, and permissions repaired on it without problems.
    When I have DU look at the drive itself, it reported: Problems were encountered during repair of the partition map.
    And then, in ominous red text: error: live file system repair is not supported.
    I tried repairing again, and also got this message: The partition map needs to be repaired because there's a problem with the EFI system partition 's file system.
    I tried a few things to get these error messages to go away. I booted with a DiskWarrior disk and it was unable to do the repair.
    I did a little reading about the EFI partition, and in Macs it appears to be a partition related to firmware updates.
    My mac has not had any symptoms at all during this, aside from the slower shutdown.
    Even so, I did not like the idea of a partition that could not be repaired on my HD, so I did a clean install. Seemed to work, DU reported a healthy drive and volume.
    This morning, as I was preparing for a TM backup, I ran DU again, and the error messages were back. Not good.
    This time I tried TechTool, and it was able to repair the HD from the TechTool eDrive (TechTool's version of the recovery partition).
    I've looked in these discussions and there are some mentions of these error messages, but usually in the context of failing hard drives or drives that must be erased and the OS reinstalled.
    I'm wondering if anyone can shed some light on this for me, what these error messages mean, why they are occurring, and if I can just ignore them. My internal HD is not a stock Apple drive, but a Samsung SSD that I installed some time ago, and which otherwise works fine. My current suspicions are that either:
    there is something inherent in Mavericks that creates some problem with the EFI partition map over time, which then shows up in the error messages in DU
    or there is some incompatibility with this SSD and Mavericks that creates the same error messages.
    Here's my EtreCheck report:
    Hardware Information:
              MacBook Pro (15-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,2
              1 2 GHz Intel Core i7 CPU: 4 cores
              8 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 512 MB
              AMD Radeon HD 6490M - VRAM: 256 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0
              AirPlay: Version: 1.9
              AppleAVBAudio: Version: 2.0.0
              iSightAudio: Version: 7.7.3
    System Software:
              OS X 10.9 (13A603) - Uptime: 0 days 0:51:29
    Disk Information:
              Samsung SSD 840 PRO Series disk0 : (512.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Untitled (disk0s2) /: 499.12 GB (418.57 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
                        eDrive (disk0s4) /Volumes/eDrive: 12 GB (4.65 GB free)
              HL-DT-ST DVDRW  GS31N 
    USB Information:
              MICRONET FANTOM DRIVE     1 TB
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        Fantom (disk1s2) /Volumes/Fantom: 999.86 GB (941.3 GB free)
              Apple Computer, Inc. IR Receiver
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              at.obdev.nke.LittleSnitch          (4052)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] at.obdev.littlesnitchd.plist
              [loaded] com.adobe.fpsaud.plist
              [loaded] com.raynersw.nshctldo.plist
              [loaded] org.cindori.AuthHelper.plist
    Launch Agents:
              [loaded] at.obdev.LittleSnitchUIAgent.plist
    User Launch Agents:
    User Login Items:
              iTunesHelper
              Dropbox
    3rd Party Preference Panes:
              Flash Player
    Internet Plug-ins:
              Default Browser.plugin
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              QuickTime Plugin.plugin
    User Internet Plug-ins:
    Bad Fonts:
              None
    Time Machine:
              Auto backup: YES
              Volumes being backed up:
                        Untitled: Disk size: 499.12 GB Disk used: 80.55 GB
              Destinations:
                        Fantom [Local] (Last used)
                        Total size: Zero KB
                        Total number of backups: (null)
                        Size of backup disk: Too small
                                  Backup size Zero KB < (Disk used 80.55 GB X 3)
    Top Processes by CPU:
                  13%          WindowServer
                   2%          hidd
                   2%          EtreCheck
                   2%          backupd
                   1%          com.apple.prefs.backup.remoteservice
                   1%          fontd
                   1%          com.apple.WebKit.Networking
                   0%          Safari
                   0%          cookied
                   0%          coreservicesd
    Top Processes by Memory:
              131 MB             backupd
              131 MB             Safari
              115 MB             com.apple.IconServicesAgent
              74 MB              Dropbox
              66 MB              WindowServer
              56 MB              com.apple.WebKit.WebContent
              49 MB              TechTool Pro 7
              49 MB              Messages
              41 MB              App Store
              41 MB              mds
    Virtual Memory Statistics:
              4.65 GB            Free RAM
              1.84 GB            Active RAM
              370 MB             Inactive RAM
              1.13 GB            Wired RAM
              415 MB             Page-ins
              0 B                Page-outs
    thanks

    this is the list it gives, hope it helps
    Verifying and repairing partition map for “ST9160314ASG Media”
    Checking prerequisites
    Checking the partition list
    Checking for an EFI system partition
    Checking the EFI system partition’s size
    Checking the EFI system partition’s file system
    Checking all HFS data partition loader spaces
    Reviewing boot support loaders
    Checking Core Storage Physical Volume partitions
    Checking storage system
    Problems were encountered during repair of the partition map
    Error: Storage system verify or repair failed.

  • Posting Document not created (export data missing)

    We are working on ECC 6.0 and during creation of Cancellation Billing document type IVS for the Intercompany billing, the document did not create Accounting document giving the Posting status as G - Posting document not created (export data missing). However checked the Foreign trade data and the system states that Foreign trade is complete.
    Can any one suggest the solution for this?
    Thanks.

    Hello Mohammad,
    About this issue, the incompletion of this cancellation document
    arises might because the reference delivery has been archived/deleted.
    This is likely due to your current copy control settings (VTFL).
    If you have set ' ', in the export determination field this means that
    there is a common 'exnum' key between the delivery and billing documents
    LIKP-EXNUM & VBRK-EXNUM are the same.
    The result of deleting the delivery is that you also delete the FT data
    for the delivery, Because the billing document and delivery share the
    same foreign trade table entries, you have in effect deleted the FT data
    of the billing document too. This would most likely go unnoticed but if
    you then cancel the invoice the system has no FT to copy into the new
    cancellation billing document, which leads to this issue.
    Firstly you should set the export determination flag in the copy control
    of the delivery & billing documents. This will avoid this issue in the
    future. Set it to to 'A' or 'B' depending on your requirements.
    For the incomplete cancellation billing document, you could use userexit to
    set it as complete:
    You can use transaction CMOD.
    Create a project for example FT project button create short text: ....
    drop button Enhancement assignment & save use for example local object.
    Use the F4-help for Enhancement and look for V50EPROP.
    Drop button Components:
    here you will find EXIT_SAPLV50E_005 and EXIT_SAPLV50E_006
    In the userexits doubleclick on the includes ZXV50U05 and ZXV50U06
    The coding in the userexits should be: C_COMPLETE = 'X'.
    Afterwards activate generate ... and save.
    The development class is VEI.
    Please also check note 118573 which explains the FT user exits.
    Regards,
    Alex

  • Problem in code.it is urgent.

    problem in code.it is urgent.
    i want to display all po,s with all grs from requistion up to inspection. if for a po gr not happend or inspection not happend it must also display leaving blank for that po. actual flow is pur.reqpur.ordergoods receipt---quality inspection. once u copy this code and execute it. u will get better idea.
    regards!
    prasad.
    REPORT Z_MM_REQDETAILS1.
    TABLES: EKKO, EKPO, MSEG, QALS, EBAN, MKPF, MAKT.
    TYPE-POOLS: SLIS.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    SELECT-OPTIONS: SBADAT FOR EBAN-BADAT,
    SLIFNR FOR EKKO-LIFNR,
    SEBELN FOR EKKO-EBELN,
    SBEDAT FOR EKKO-BEDAT,
    SBSART FOR EKKO-BSART,
    SMATNR FOR EKPO-MATNR,
    SBUDAT FOR MKPF-BUDAT.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA: BEGIN OF EBAN_TAB OCCURS 0,
    BANFN LIKE EBAN-BANFN,
    BADAT LIKE EBAN-BADAT,
    MENGE LIKE EBAN-MENGE,
    EBELN LIKE EBAN-EBELN,
    AFNAM LIKE EBAN-AFNAM,
    END OF EBAN_TAB.
    DATA: BEGIN OF EKKO_TAB OCCURS 0,
    BSART LIKE EKKO-BSART,
    EBELN LIKE EKKO-EBELN,
    LIFNR LIKE EKKO-LIFNR,
    BEDAT LIKE EKKO-BEDAT,
    END OF EKKO_TAB.
    DATA: BEGIN OF EKPO_TAB OCCURS 0,
    EBELN LIKE EKPO-EBELN,
    MENGE LIKE EKPO-MENGE,
    MATNR LIKE EKPO-MATNR,
    BANFN LIKE EKPO-BANFN,
    EBELP LIKE EKPO-EBELP,
    END OF EKPO_TAB.
    DATA: BEGIN OF MSEG_TAB OCCURS 0,
    EBELN LIKE MSEG-EBELN,
    MBLNR LIKE MSEG-MBLNR,
    MATNR LIKE MSEG-MATNR,
    MENGE LIKE MSEG-MENGE,
    EBELP LIKE MSEG-EBELP,
    END OF MSEG_TAB.
    DATA: BEGIN OF MSEG_TAB1 OCCURS 0,
    MBLNR LIKE MSEG-MBLNR,
    EBELN LIKE MSEG-EBELN,
    END OF MSEG_TAB1.
    DATA: BEGIN OF QALS_TAB OCCURS 0,
    LMENGE01 LIKE QALS-LMENGE01,
    LMENGE07 LIKE QALS-LMENGE07,
    MATNR LIKE QALS-MATNR,
    MBLNR LIKE QALS-MBLNR,
    EBELN LIKE QALS-EBELN,
    EBELP LIKE QALS-EBELP,
    END OF QALS_TAB.
    DATA: BEGIN OF MKPF_TAB OCCURS 0,
    MBLNR LIKE MKPF-MBLNR,
    BUDAT LIKE MKPF-BUDAT,
    END OF MKPF_TAB.
    DATA: BEGIN OF MAKT_TAB OCCURS 0,
    MATNR LIKE MAKT-MATNR,
    MAKTX LIKE MAKT-MAKTX,
    END OF MAKT_TAB.
    DATA: BEGIN OF SELTAB OCCURS 0,
    EBELN LIKE EKKO-EBELN,
    BLDAT LIKE MKPF-BLDAT,
    END OF SELTAB.
    *DATA: BEGIN OF SELTAB1 OCCURS 0,
    BUDAT LIKE MKPF-BUDAT,
    END OF SELTAB1.
    DATA: REPID LIKE SY-REPID.
    DATA: F_OUTPUT1 TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
    DATA: IT_SORT TYPE SLIS_T_SORTINFO_ALV WITH HEADER LINE.
    DATA: REMARKS(40) TYPE C.
    DATA: BEGIN OF OUTPUT OCCURS 0,
    BANFN LIKE EBAN-BANFN,
    BADAT LIKE EBAN-BADAT,
    RMENGE LIKE EBAN-MENGE,
    AFNAM LIKE EBAN-AFNAM,
    BSART LIKE EKKO-BSART,
    EBELN LIKE EKKO-EBELN,
    LIFNR LIKE EKKO-LIFNR,
    BEDAT LIKE EKKO-BEDAT,
    PMENGE LIKE EKPO-MENGE,
    MATNR LIKE EKPO-MATNR,
    EBELP LIKE EKPO-EBELP,
    MBLNR LIKE MSEG-MBLNR,
    GMENGE LIKE MSEG-MENGE,
    LMENGE01 LIKE QALS-LMENGE01,
    LMENGE07 LIKE QALS-LMENGE07,
    BUDAT LIKE MKPF-BUDAT,
    MAKTX LIKE MAKT-MAKTX,
    REMARKS(40) TYPE C,
    SL_NO LIKE SY-TABIX,
    END OF OUTPUT.
    START-OF-SELECTION.
    IF SEBELN IS NOT INITIAL OR SLIFNR IS NOT INITIAL OR SBEDAT IS NOT INITIAL OR SBSART IS NOT INITIAL.
    SELECT EBELN
    BSART
    LIFNR
    BEDAT FROM EKKO INTO CORRESPONDING FIELDS OF TABLE EKKO_TAB WHERE EBELN IN SEBELN AND LIFNR IN SLIFNR AND BEDAT IN SBEDAT AND
    BSART IN SBSART.
    ELSEIF SBADAT IS NOT INITIAL.
    SELECT EBELN
    BANFN
    BADAT
    MENGE
    AFNAM FROM EBAN INTO CORRESPONDING FIELDS OF TABLE EBAN_TAB where BADAT IN SBADAT.
    SORT EBAN_TAB BY BADAT ASCENDING.
    select ebeln lifnr bedat bsart from ekko into corresponding fields of table ekko_tab for all entries in eban_tab where ebeln = eban_tab-ebeln.
    ELSEIF SMATNR IS NOT INITIAL.
    SELECT EBELN
    EBELP
    FROM EKPO INTO CORRESPONDING FIELDS OF TABLE SELTAB
    WHERE MATNR IN SMATNR.
    SORT SELTAB BY EBELN ASCENDING.
    DELETE ADJACENT DUPLICATES FROM SELTAB COMPARING EBELN.
    SELECT EBELN
    BSART
    BEDAT
    LIFNR FROM EKKO INTO CORRESPONDING FIELDS OF TABLE EKKO_TAB
    FOR ALL ENTRIES IN SELTAB WHERE EBELN = SELTAB-EBELN.
    ELSEIF SBUDAT IS NOT INITIAL.
    SELECT BUDAT
    MBLNR FROM MKPF INTO CORRESPONDING FIELDS OF TABLE MKPF_TAB WHERE
    BUDAT IN SBUDAT.
    sort mkpf_tab by budat ascending.
    SELECT EBELN FROM MSEG INTO CORRESPONDING FIELDS OF TABLE SELTAB FOR ALL ENTRIES IN
    MKPF_TAB WHERE MBLNR = MKPF_TAB-MBLNR.
    *SELECT EBELN
    FROM QALS INTO CORRESPONDING FIELDS OF TABLE SELTAB FOR ALL ENTRIES IN SELTAB WHERE EBELN = SELTAB-EBELN.
    SORT SELTAB BY EBELN ASCENDING.
    DELETE ADJACENT DUPLICATES FROM SELTAB COMPARING EBELN.
    SELECT EBELN
    BEDAT
    LIFNR
    BSART FROM EKKO INTO CORRESPONDING FIELDS OF TABLE EKKO_TAB
    FOR ALL ENTRIES IN SELTAB WHERE EBELN = SELTAB-EBELN.
    ENDIF.
    SELECT EBELN
    MENGE
    MATNR
    EBELP FROM EKPO INTO CORRESPONDING FIELDS OF TABLE EKPO_TAB FOR ALL ENTRIES IN EKKO_TAB WHERE EBELN = EKKO_TAB-EBELN AND
    MATNR IN SMATNR.
    SELECT EBELN
    BANFN
    BADAT
    MENGE
    AFNAM FROM EBAN INTO CORRESPONDING FIELDS OF TABLE EBAN_TAB FOR ALL ENTRIES IN EKKO_TAB WHERE EBELN = EKKO_TAB-EBELN AND
    BADAT IN SBADAT.
    SELECT EBELN
    MBLNR
    MATNR
    MENGE
    EBELP
    FROM MSEG INTO CORRESPONDING FIELDS OF TABLE MSEG_TAB FOR ALL ENTRIES IN EKPO_TAB WHERE EBELN = EKPO_TAB-EBELN AND
    MATNR = EKPO_TAB-MATNR AND
    EBELP = EKPO_TAB-EBELP AND
    BWART IN ('101','105').
    SELECT LMENGE01
    LMENGE07
    MATNR
    MBLNR
    EBELN FROM QALS INTO CORRESPONDING FIELDS OF TABLE QALS_TAB FOR ALL ENTRIES IN MSEG_TAB WHERE MBLNR = MSEG_TAB-MBLNR AND
    MATNR = MSEG_TAB-MATNR AND
    EBELN = MSEG_TAB-EBELN AND
    EBELP = MSEG_TAB-EBELP.
    SELECT MBLNR
    BUDAT FROM MKPF INTO CORRESPONDING FIELDS OF TABLE MKPF_TAB FOR ALL ENTRIES IN MSEG_TAB WHERE MBLNR = MSEG_TAB-MBLNR AND BUDAT
    IN SBUDAT.
    SELECT MATNR
    MAKTX FROM MAKT INTO CORRESPONDING FIELDS OF TABLE MAKT_TAB FOR ALL ENTRIES IN EKPO_TAB WHERE MATNR = EKPO_TAB-MATNR.
    *LOOP AT OUTPUT.
    **LOOP AT EKKO_TAB.
    **read table EKKO_TAB with key ebeln = output-ebeln.
    **if sy-subrc = 0.
    *READ TABLE EKPO_TAB WITH KEY EBELN = EKKO_TAB-EBELN.
    *IF SY-SUBRC = 0.
    *READ TABLE MSEG_TAB WITH KEY EBELN = EKPO_TAB-EBELN MATNR = EKPO_TAB-MATNR.
    *IF SY-SUBRC = 0.
    **READ TABLE QALS_TAB WITH KEY MBLNR = MSEG_TAB-MBLNR MATNR = MSEG_TAB-MATNR EBELN = MSEG_TAB-EBELN.
    **IF SY-SUBRC = 0.
              o OUTPUT-EBELN = EKKO_TAB-EBELN.
              o OUTPUT-BSART = EKKO_TAB-BSART.
              o OUTPUT-LIFNR = EKKO_TAB-LIFNR.
              o OUTPUT-BEDAT = EKKO_TAB-BEDAT.
    OUTPUT-PMENGE = EKPO_TAB-MENGE.
    OUTPUT-MATNR = EKPO_TAB-MATNR.
    OUTPUT-MBLNR = MSEG_TAB-MBLNR.
    OUTPUT-GMENGE = MSEG_TAB-MENGE.
              o OUTPUT-LMENGE01 = QALS_TAB-LMENGE01.
              o OUTPUT-LMENGE07 = QALS_TAB-LMENGE07.
    modify OUTPUT transporting pmenge matnr MBLNR GMENGE.
    **APPEND OUTPUT.
    *ENDIF.
    *ENDIF.
    *ENDLOOP.
    LOOP AT EKKO_TAB.
    LOOP AT EKPO_TAB WHERE EBELN = EKKO_TAB-EBELN.
    LOOP AT MSEG_TAB WHERE EBELN = OUTPUT-EBELN AND MATNR = output-MATNR AND EBELP = OUTPUT-EBELP.
    OUTPUT-EBELN = EKKO_TAB-EBELN.
    OUTPUT-BSART = EKKO_TAB-BSART.
    OUTPUT-LIFNR = EKKO_TAB-LIFNR.
    OUTPUT-BEDAT = EKKO_TAB-BEDAT.
    OUTPUT-PMENGE = EKPO_TAB-MENGE.
    OUTPUT-MATNR = EKPO_TAB-MATNR.
    OUTPUT-EBELP = EKPO_TAB-EBELP.
    APPEND OUTPUT.
    CLEAR OUTPUT.
    ENDLOOP.
    ENDLOOP.
    *LOOP AT OUTPUT.
    *LOOP AT EKPO_TAB WHERE EBELN = OUTPUT-EBELN.
    OUTPUT-PMENGE = EKPO_TAB-MENGE.
    OUTPUT-MATNR = EKPO_TAB-MATNR.
    OUTPUT-EBELP = EKPO_TAB-EBELP.
    *MODIFY OUTPUT TRANSPORTING PMENGE MATNR EBELP.
    *ENDLOOP.
    *ENDLOOP.
    LOOP AT OUTPUT.
    LOOP AT MSEG_TAB WHERE EBELN = OUTPUT-EBELN AND MATNR = OUTPUT-MATNR AND EBELP = OUTPUT-EBELP.
    *LOOP AT QALS_TAB WHERE MBLNR = MSEG_TAB-MBLNR AND MATNR = OUTPUT-MATNR AND EBELN = OUTPUT-EBELN AND EBELP = OUTPUT-EBELP.
    OUTPUT-MBLNR = MSEG_TAB-MBLNR.
    OUTPUT-GMENGE = MSEG_TAB-MENGE.
    OUTPUT-LMENGE01 = QALS_TAB-LMENGE01.
    OUTPUT-LMENGE07 = QALS_TAB-LMENGE07.
    OUTPUT-EBELP = QALS_TAB-EBELP.
    *APPEND OUTPUT.
    MODIFY OUTPUT TRANSPORTING MBLNR GMENGE.
    *CLEAR OUTPUT.
    *CLEAR MSEG_TAB.
    ENDLOOP.
    ENDLOOP.
    *ENDLOOP.
    LOOP AT OUTPUT.
    LOOP AT QALS_TAB WHERE MBLNR = OUTPUT-MBLNR AND MATNR = OUTPUT-MATNR AND EBELN = OUTPUT-EBELN.
    OUTPUT-LMENGE01 = QALS_TAB-LMENGE01.
    OUTPUT-LMENGE07 = QALS_TAB-LMENGE07.
    OUTPUT-EBELP = QALS_TAB-EBELP.
    MODIFY OUTPUT TRANSPORTING LMENGE01 LMENGE07.
    ENDLOOP.
    ENDLOOP.
    LOOP AT OUTPUT.
    LOOP AT EBAN_TAB WHERE EBELN = OUTPUT-EBELN.
    OUTPUT-BANFN = EBAN_TAB-BANFN.
    OUTPUT-BADAT = EBAN_TAB-BADAT.
    OUTPUT-RMENGE = EBAN_TAB-MENGE.
    OUTPUT-AFNAM = EBAN_TAB-AFNAM.
    MODIFY OUTPUT TRANSPORTING BANFN BADAT RMENGE AFNAM.
    ENDLOOP.
    ENDLOOP.
    LOOP AT OUTPUT.
    LOOP AT MKPF_TAB WHERE MBLNR = OUTPUT-MBLNR.
    OUTPUT-BUDAT = MKPF_TAB-BUDAT.
    MODIFY OUTPUT TRANSPORTING BUDAT.
    ENDLOOP.
    ENDLOOP.
    *LOOP AT OUTPUT.
    *SELECT SINGLE MATNR FROM EKPO INTO OUTPUT-MATNR WHERE EBELN = OUTPUT-EBELN.
    *MODIFY OUTPUT TRANSPORTING MATNR.
    *SELECT SINGLE MBLNR FROM MSEG INTO OUTPUT-MBLNR WHERE MATNR = OUTPUT-MATNR.
    *MODIFY OUTPUT TRANSPORTING MBLNR.
    *ENDLOOP.
    LOOP AT OUTPUT.
    LOOP AT MAKT_TAB WHERE MATNR = OUTPUT-MATNR.
    OUTPUT-MAKTX = MAKT_TAB-MAKTX.
    MODIFY OUTPUT TRANSPORTING MAKTX.
    ENDLOOP.
    ENDLOOP.
    *LOOP AT EKKO_TAB.
    LOOP AT EKPO_TAB WHERE EBELN = EKKO_TAB-EBELN.
              o LOOP AT MSEG_TAB WHERE EBELN = EKPO_TAB-EBELN AND MATNR = EKPO_TAB-MATNR.
              o LOOP AT QALS_TAB WHERE MBLNR = MSEG_TAB-MBLNR AND MATNR = MSEG_TAB-MATNR AND EBELN = MSEG_TAB-EBELN.
              o LOOP AT MKPF_TAB WHERE MBLNR = MSEG_TAB-MBLNR.
    OUTPUT-EBELN = EKKO_TAB-EBELN.
    OUTPUT-BSART = EKKO_TAB-BSART.
    OUTPUT-LIFNR = EKKO_TAB-LIFNR.
    OUTPUT-BEDAT = EKKO_TAB-BEDAT.
    OUTPUT-PMENGE = EKPO_TAB-MENGE.
    OUTPUT-MATNR = EKPO_TAB-MATNR.
    OUTPUT-EBELP = EKPO_TAB-EBELP.
              o OUTPUT-MBLNR = MSEG_TAB-MBLNR.
              o OUTPUT-GMENGE = MSEG_TAB-MENGE.
              o OUTPUT-BUDAT = MKPF_TAB-BUDAT.
              o OUTPUT-LMENGE01 = QALS_TAB-LMENGE01.
              o OUTPUT-LMENGE07 = QALS_TAB-LMENGE07.
              o MODIFY OUTPUT TRANSPORTING BSART LIFNR BEDAT PMENGE MATNR.
    APPEND OUTPUT.
    CLEAR OUTPUT.
              o CLEAR QALS_TAB.
              o ENDLOOP.
              o CLEAR MKPF_TAB.
              o ENDLOOP.
              o CLEAR MSEG_TAB.
              o ENDLOOP.
    CLEAR EKPO_TAB.
    ENDLOOP.
    CLEAR EKKO_TAB.
    ENDLOOP.
    **SELECT MBLNR EBELN FROM MSEG INTO TABLE MSEG_TAB1 FOR ALL ENTRIES IN EKKO_TAB WHERE EBELN = EKKO_TAB-EBELN.
              o LOOP AT OUTPUT.
              o MOVE-CORRESPONDING MSEG_TAB1 TO OUTPUT.
              o OUTPUT-MBLNR = MSEG_TAB1-MBLNR.
              o MODIFY OUTPUT TRANSPORTING MBLNR.
              o ENDLOOP.
    *LOOP AT OUTPUT.
    LOOP AT MSEG_TAB WHERE EBELN = output-EBELN AND MATNR = output-MATNR AND EBELP = OUTPUT-EBELP.
    **READ TABLE MSEG_TAB WITH KEY EBELN = OUTPUT-EBELN MATNR = OUTPUT-MATNR.
    *IF SY-SUBRC = 0.
    OUTPUT-MBLNR = MSEG_TAB-MBLNR.
    OUTPUT-GMENGE = MSEG_TAB-MENGE.
    *MODIFY OUTPUT TRANSPORTING MBLNR GMENGE.
    *ENDIF.
    *clear output.
    *ENDLOOP.
    *endloop.
    *LOOP AT OUTPUT.
    READ TABLE QALS_TAB WITH KEY MBLNR = OUTPUT-MBLNR MATNR = OUTPUT-MATNR EBELN = OUTPUT-EBELN.
    *IF SY-SUBRC = 0.
    *OUTPUT-LMENGE01 = QALS_TAB-LMENGE01.
    *OUTPUT-LMENGE07 = QALS_TAB-LMENGE07.
    *MODIFY OUTPUT TRANSPORTING LMENGE01 LMENGE07.
    *ENDIF.
    *ENDLOOP.
    LOOP AT OUTPUT.
    READ TABLE EBAN_TAB WITH KEY EBELN = OUTPUT-EBELN.
    IF SY-SUBRC = 0.
    OUTPUT-BANFN = EBAN_TAB-BANFN.
    OUTPUT-BADAT = EBAN_TAB-BADAT.
    OUTPUT-RMENGE = EBAN_TAB-MENGE.
    OUTPUT-AFNAM = EBAN_TAB-AFNAM.
    MODIFY OUTPUT TRANSPORTING BANFN BADAT RMENGE AFNAM.
    ENDIF.
    ENDLOOP.
    *LOOP AT OUTPUT.
    READ TABLE MKPF_TAB WITH KEY MBLNR = OUTPUT-MBLNR.
    IF SY-SUBRC = 0.
    OUTPUT-BUDAT = MKPF_TAB-BUDAT.
    MODIFY OUTPUT TRANSPORTING BUDAT.
    ENDIF.
    ENDLOOP.
    *LOOP AT OUTPUT.
    *READ TABLE MAKT_TAB WITH KEY MATNR = OUTPUT-MATNR.
    *IF SY-SUBRC = 0.
    *OUTPUT-MAKTX = MAKT_TAB-MAKTX.
    *MODIFY OUTPUT TRANSPORTING MAKTX.
    *ENDIF.
    *ENDLOOP.
    PERFORM F_OUTPUT.
    PERFORM SORT.
    PERFORM GRID.
    FORM F_OUTPUT.
    F_OUTPUT1-FIELDNAME = 'MATNR'.
    F_OUTPUT1-REF_TABNAME = 'EKPO'.
    F_OUTPUT1-REF_FIELDNAME = 'MATNR'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME ='MAKTX'.
    F_OUTPUT1-SELTEXT_M = 'DESCRIPTION.'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'LIFNR'.
    F_OUTPUT1-REF_TABNAME = 'EKKO'.
    F_OUTPUT1-REF_FIELDNAME = 'LIFNR'.
    F_OUTPUT1-SELTEXT_M = 'SUPPLIER'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'AFNAM'.
    F_OUTPUT1-REF_TABNAME = 'EBAN'.
    F_OUTPUT1-REF_FIELDNAME = 'AFNAM'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'BANFN'.
    F_OUTPUT1-REF_TABNAME = 'EBAN'.
    F_OUTPUT1-REF_FIELDNAME = 'BANFN'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'BADAT'.
    F_OUTPUT1-SELTEXT_M = 'PRS DATE'.
    F_OUTPUT1-REF_TABNAME = 'EBAN'.
    F_OUTPUT1-REF_FIELDNAME = 'BADAT'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME ='RMENGE'.
    *F_OUTPUT1-REF_TABNAME = 'MSEG'.
    *F_OUTPUT1-REF_FIELDNAME = 'MBLNR'.
    F_OUTPUT1-SELTEXT_M = 'PRS QTY'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'EBELN'.
    F_OUTPUT1-REF_TABNAME = 'EKKO'.
    F_OUTPUT1-REF_FIELDNAME = 'EBELN'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'BSART'.
    F_OUTPUT1-REF_TABNAME = 'EKKO'.
    F_OUTPUT1-REF_FIELDNAME = 'BSART'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'BEDAT'.
    F_OUTPUT1-REF_TABNAME = 'EKKO'.
    F_OUTPUT1-REF_FIELDNAME = 'BEDAT'.
    F_OUTPUT1-SELTEXT_M = 'PO DATE'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME ='PMENGE'.
    F_OUTPUT1-SELTEXT_M = 'PO QTY'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'MBLNR'.
    F_OUTPUT1-REF_TABNAME = 'MSEG'.
    F_OUTPUT1-REF_FIELDNAME = 'MBLNR'.
    F_OUTPUT1-SELTEXT_M = 'GR NUMBER'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME ='BUDAT'.
    F_OUTPUT1-SELTEXT_M = 'GR DATE'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME ='GMENGE'.
    *F_OUTPUT1-REF_TABNAME = 'MSEG'.
    *F_OUTPUT1-REF_FIELDNAME = 'MBLNR'.
    F_OUTPUT1-SELTEXT_M = 'RECEIVED QTY'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'LMENGE01'.
    F_OUTPUT1-REF_TABNAME = 'QALS'.
    F_OUTPUT1-REF_FIELDNAME = 'LMENGE01'.
    F_OUTPUT1-SELTEXT_M = 'ACCEPTED QTY'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME = 'LMENGE07'.
    F_OUTPUT1-REF_TABNAME = 'QALS'.
    F_OUTPUT1-REF_FIELDNAME = 'LMENGE07'.
    F_OUTPUT1-SELTEXT_M = 'REJECTED QTY'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    F_OUTPUT1-FIELDNAME ='REMARKS'.
    **F_OUTPUT1-REF_TABNAME = 'MSEG'.
    **F_OUTPUT1-REF_FIELDNAME = 'MBLNR'.
    F_OUTPUT1-SELTEXT_M = 'REMARKS'.
    APPEND F_OUTPUT1.
    CLEAR F_OUTPUT1.
    ENDFORM.
    FORM SORT.
    IT_SORT-FIELDNAME = 'MATNR'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'MAKTX'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'LIFNR'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'AFNAM'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'BANFN'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'BADAT'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'RMENGE'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'EBELN'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'BSART'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'BEDAT'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'PMENGE'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'MBLNR'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'BUDAT'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'GMENGE'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'LMENGE01'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    IT_SORT-FIELDNAME = 'LMENGE07'.
    IT_SORT-UP = 'X'.
    APPEND IT_SORT.
    CLEAR IT_SORT.
    ENDFORM.
    FORM GRID.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER = ' '
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = 'REPID'
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    I_CALLBACK_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_END_OF_LIST = ' '
    I_STRUCTURE_NAME =
    I_BACKGROUND_ID = ' '
    I_GRID_TITLE =
    I_GRID_SETTINGS =
    IS_LAYOUT =
    IT_FIELDCAT = F_OUTPUT1[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS =
    IT_EVENT_EXIT =
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    I_HTML_HEIGHT_TOP = 0
    I_HTML_HEIGHT_END = 0
    IT_ALV_GRAPHICS =
    IT_HYPERLINK =
    IT_ADD_FIELDCAT =
    IT_EXCEPT_QINFO =
    IR_SALV_FULLSCREEN_ADAPTER =
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = OUTPUT[].
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.

    Hi prasad,
    Whats the problem exactly. Is it not displaying any records ?
    Thanks,
    bsv.

  • How can i solve this replication problem between TT and ORACLE

    Hi
    I have an application that using AWT cashgroup implement the replication between TT (7.0.6.7) and ORACLE(10g);
    but i encounter this problem:
    16:16:50.01 Err : REP: 2302682: ABM_BAL_WH:meta.c(4588): TT5259: Failed to store Awt runtime information for datastore /abm_wh/abm_bal_ttdata/abm_bal_wh on Oracle.
    16:16:50.02 Err : REP: 2302682: ABM_BAL_WH:meta.c(4588): TT5107: TT5107: Oracle(OCI) error in OCIStmtExecute(): ORA-08177: can't serialize access for this transaction rc = -1 -- file "bdbStmt.c", lineno 3726, procedure "ttBDbStmtExecute()"
    16:16:50.02 Err : REP: 2302682: ABM_BAL_WH:receiver.c(5612): TT16187: Transaction 1316077016/357692526; Error: transient 0, permanent 1
    the isolation level of my date store is read-committed ,and the sys.ODBC.INI file is also set Isolation=1(readcommitted mode)
    so ,I still wonder how the error ORA-08177!
    how can i solve this replication problem?
    thank you.

    I suspect this is failing on an UPDATE to the tt_03_reppeers table on Oracle. I would guess the TT repagent has to temporarily use serializable isolation when updating this table. Do you have any other datastores with AWT cachegroups propagating into the same Oracle database? Or can you identify if some other process is preventing the repagent from using serializable isolation? If you google ORA-08177 there seem to be ways out there to narrow down what's causing the contention.

Maybe you are looking for