CHVW_EXPLODE_ALL Batch where used

Dear All,
Now I am trying to get batch where used details by using FM 'CHVW_EXPLODE_ALL' samp0le code is givem below, while running  this i will get only one record in shadow, same time wile running the FM in SE37 with same parameters i get 68 records please explain is there any error in my coding
  DATA: shadow LIKE chvwshadow OCCURS 0 WITH HEADER LINE.
  Data : c_bottom_up(10) VALUE '90 X  B B',
         material like MCHA-MATNR,
         plant like MCHA-WERKS,
         batch like MCHA-CHARG.
wa_i_DFCHVW = c_bottom_up.
  material = ty_inv-MATERIAL.
  plant = ty_inv-PLANT.
  batch = ty_inv-BATCH.
  CALL FUNCTION 'CHVW_EXPLODE_ALL'
    EXPORTING
      I_MATNR            = material
      I_WERKS            = plant
      I_CHARG            = batch
      I_DFCHVW           = wa_i_DFCHVW
    TABLES
      T_SHADOW           = shadow
    EXCEPTIONS
      INVALID_INPUT_DATA = 1
      OTHERS             = 2.
Regards
Nausal

Try to use FM CHVW_BATCH_WHERE_USED_LIST with same DFCHVW  values an a dummy container refrence  before callin FM 'CHVW_EXPLODE_ALL' I had a similar problem & found that there is a global data pa_dfchvw in function group which doesnot get set some times & caues problem of no showing detailed level

Similar Messages

  • FM for Batch where used list

    Hi ,
    I want to link the Finished goods to Raw Material and vise versa. I want all the levels from the Raw Material to Finished goods . Do u have any FM where we can give the Material number and batch and get the where used list corresponding to MB56?
    Kindly help.
    Thanks in Advance.
    Paramita

    Hi,
    Use FM  'CHVW_EXPLODE_ALL'  to get the Batch where used list
    Regards
    Venu

  • Traceability with batch class characteristics in batch where used list.

    Hi,
    I have a process order which issues 5 pallets or material and produces 5 pallets of another material. Each pallet is a seperate batch in my scenario.
    All materials are assigned to a batch class and i will be using a class characteristic to enter the issued pallet number (includes material number and batch number)  to the produced pallet batch. This way i want to create a traceability system.
    the problem is i need a way to create a hierarchical view or integrate this scenario to batch where used list.
    there is a badi for where used list to read external data. but i guess that is for something called "external batches"
    can you please guide me for the best practice of doing this?
    Thanks,
    Alper,

    Hi!,
    I think you have to use the mix of two functionalities:
    1. Original batch function
    2. Batch derivation
    This way you can pull the characteristics of the source material batch in to raw material as well as finish material batches.
    In this you have to create a nonvaluated material which is used as original batch mateial. You have to assign this material in material master of the RM and FG alongwith other required entries.  Also you have to use batch derivation function to pull the charactristics of this original material batch in to the RM and FG.
    Please go through the SAP help regarding Original batch and Batch derivation function to have more clarity.
    Please revert back in case of any further issue.
    Regards,
    Uday

  • Batch where used List

    Hello,
    I had an issue. My batch Where used list does not show any usage details in BMBC. Are any special configurations required to activate the batch the Batch Where used list?
    Any help would be greatly appreciated.
    Sincerely,
    Aji

    Dear First check transaction MB56 also if it too doesn't work then check OMBB settings or  Enterprise Structure--> Logistics
    General--> Batch Management --> Make Settings for Batch Where-used list Transaction.
    Check and Revert.
    Cheers
    KK

  • Batch where-used

    What is the transaction to see the batch where-used list?

    Hi,
    First Check in OMBB, whether BaWU and BaWU Synchronization is activate?
    Then run MB57 - Compile Batch where-used file
    Purpose to run this transaction is;
    If provision has been made for synchronous posting of batch usage data in Customizing for Inventory Management, you only need to run this program when implementing the batch where-used list. In the case of synchronous posting, the system automatically creates new records for each goods movement.
    The program stores the batch usage data for the selected material documents in the file CHVW. it only takes into account the material document items for which the plant allows the compilation of a file (batch where-used list not deactivated).
    It issues a log of the new batch where-used records and a log of the existing records.
    And then MB56 - Display Batch Where-Used List

  • Cross system batch where used list

    Hi,
    We have a 6.0 and a 4.7 system and we want to run a batch where used list starting from 6.0 and going to 4.7 and vice versa. Has anyone done this before and what is the best possible way to do it. Can I use a BAPI to call the MB56 tcodes across systems? Or is there some other method ?
    Thanks

    bump

  • Function Module "where used list"

    I'm looking for a function module which does the same as the where used list: i want to have all tables conataining a special field e.g. mandt. Is there such a FM available?

    Hi,
    Use FM 'CHVW_EXPLODE_ALL' to get the Batch where used list.
    HTH
    Regards,
    Dhruv Shah

  • Running a Batch file Using Java

    hi All ,
    I am executing a DOS batch file using the Java .
    I am using it as
    Process P;
    Runtime rt = Runtime.getRuntime();
    P = rt.exec("C:\\X12TST\\BATCH1.BAT ");
    But in case BATCH1.bat have call to some other Batch File Say Bactch2.bat , i am not getting the output of BATCH2.BAT .
    My Java Program exits as soon as it enters to the point where BATCH1 is calling BATCH2 using (call BATCH2.bat).
    Any help is resolving the problem is highlt appreciated .
    Please advise me if you have any alternative to solve the problem .
    Thanx in advace

    The Runtime.exec() should'nt be used with a .bat or .cmd file since .bat and .cmd are not really executable. I think the expected behaviour you experimentred is a process hang at the last command line of the .bat file.
    Insert "echo XXX" or "net send mycomputer XXX" debug messages in your .bat, you'll see the .bat executes until last line. But the last one NEVER terminates, resulting in a hang in the Java thread doing a process.waitFor().
    The only workaround (or right use of exec) is to call the cmd.exe (with FULL PATH OF cmd.exe SPECIFIED in the exec() call). An exec() calling C:\WINNT\System32\cmd.exe /C mybatch.bat should return properly, cause cmd.exe is a standard Win32 program that will be launched to interpret mybatch.bat then terminate.
    PLEASE UNIX/LINUX USERS : report if the behaviour you get is the same on your plat-form, or if it is -one more- bug in win32 OS. Can you exec() a shell script direcly or do you have to exec() a "bash" or "ksh" or "csh" with you shell script as command line argument ?

  • Function Module or Program to get where used list

    Hi,
    I´ve been searching for Function Module or program to get where used list for an object.
    I try using the FM 'RS_TOOL_ACCESS' with parameters operation = 'CROSSREF', objectname = 'ZMYPROG', object_type = 'PROG'
    and in effect i get the list of object where the program is used, but the list is showed in standard screen.
    is there a function or program to obtain the used list for an object but in an internal table?
    I'm using version 4.6B.
    I checked the function module RS_INFOSYSTEM_CREATE_REQUEST, but i didn't obtain any result, is there a funcion or combination or FM to get the used list?
    thanks,
    Alejandro
    Message was edited by: Alejandro López

    Hi Alejandro,
    Please check this sample program.
    DATA: OBJTYPE TYPE  EUOBJ-ID.
    DATA: OBJECTS TYPE RINFOOBJ.
    APPEND P_OBJECT_NAME TO OBJECTS.
    OBJTYPE = P_OBJECT_TYPE.
    CALL FUNCTION 'RS_INFOSYSTEM_CREATE_REQUEST'
      EXPORTING
        OBJTYPE            = OBJTYPE
        ACTION             = SWBM_C_OP_WHERE_USED_LIST
      IMPORTING
        INFOSYSTEM_REQUEST = P_WB_REQUEST
      TABLES
        OBJLIST            = OBJECTS
        DEVCLASS           = p_scope_devclass
        OBJKEY             = p_scope_objkey
        I_SCOPE_OBJECT_CLS = P_SCOPE_OBJECT_TYPES
        I_SCOPE_OBJECTS    = P_SCOPE_OBJECTS
        EDITOR_SOURCE      = P_EDITOR_SOURCE
      EXCEPTIONS
        NOT_EXECUTED       = 1
        BATCH              = 2
        OTHERS             = 3.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Program to find the where used

    Hi All,
    I want to find out where the particular field is used that includes programs , function modules and user exits.
    Is there any function module for this.
    Please help me out.
    Thanks in Advance,
    Praveen

    Hello Praveen
    Most of the ABAP Workbench Infosystem Where-used list is implemented by function module RS_EU_CROSSREF.
    FU RS_EU_CROSSREF
    Short Text
         ABAP Workbench Infosystem Where-used list
       Functionality
         This function searches for other usages of an object. Both object
         classes are specified in the IMPORT parameters. If no object class is
         specified for the search area, a selection of possible object classes is
         offered to the user. If there is only one possible object class, this is
         used in the search. The result is placed in a table with the structure
         RSFINDLST. There, you can also find the possible object classes. The
         object classes refer to the classes used in the Workbench.
       Example
         Usage of domain 'EXAMPLE' in tables.
           Object type of domains in the Workbench is 'DD_'.
           Object type of tables in the Workbench is 'DT_'.
           The following IMPORT parameters are thus specified:
           IMPORTING
                 I_FIND_OBJ_CLS = 'DD_'
                 I_SCOPE_OBJ_CLS = 'DT_'
           TABLES
                 I_FINDSTRINGS = 'EXAMPLE'
         Although you can pass several domains, the result table O_FOUNDS does
         not make it clear which domain is used in which table. This
         functionality supports recursivity.
    Parameters
         I_FIND_OBJ_CLS
         I_SCOPE_OBJ_CLS
         REKURSIV
         I_ANSWER
         I_ACTUAL_INCLUDE
         NO_DIALOG
         EXPAND_SOURCE_IN_BATCH_MODE
         EXPAND_SOURCE_IN_ONLINE_MODE
         WITHOUT_TEXT
         WITH_GENERATED_OBJECTS
         O_SCOPE_OBJ_CLS
         O_ANSWER
         I_FINDSTRINGS
         O_FOUNDS
         O_FINDSTRINGS
         I_SCOPE_OBJECTS
         I_ACTUAL_SOURCE
         I_SCOPE_OBJECT_CLS
         I_SCOPE_DEVCLASS
         I_EXCLUDE_SCOPE_OBJECT_CLS
    Exceptions
         NOT_EXECUTED
         NOT_FOUND
         ILLEGAL_OBJECT
         NO_CROSS_FOR_THIS_OBJECT
         BATCH
         BATCHJOB_ERROR
         WRONG_TYPE
         OBJECT_NOT_EXIST
    Function Group
         SEUA
    Regards
      Uwe

  • Resultset from a batch select using prepared statement

    Hi,
    Is it possible to add results of batch execute of select statements and retrieve the result set ..
    I am running select statement in a batch mode setting in value for a column.I add this to a prepared batch.
    I would like to get the reults as a batch and spin through the result set like a r.next(). Is this possible ?
    I have given the code below
    sql = "select ordervalue , orderdate from discreet_orders "+
    "where order_no = ? ";
    dbObject.prepareStatement(sql);
    dbObject.prepareStatement(sql);
    for (int i=0; i < orderNoVect.size(); i++) {
    dbObject.setString(1,(String)scnV.elementAt(i));
    dbObject.addBatchPrepared();
    r = dbObject.execPrepared();
    dbObject.clearBatchPrepared();
    I would like to do a r.getNext() process the values form the resultset.
    Is this possible ? If not is there an other way to do it ?
    Thanks
    Arnold

    Olek wrote:
    hi
    Is there a way do a batch update using prepared statement?
    I don't want to insert every row in a single query...
    regards,
    OlekPossibly the confusion here stems from the existence of two addBatch methods in PreparedStatement.
    addBatch(String sql)inherited from Statement adds a new query to the batch of SQL statements for the statement. However you don't want to use this with PreparedStatements Instead you want
    addBatch()which adds the current set of parameters to the prepared statements batch of commands.
    In this scenario you prepare your query (insert statement) and then call setXXX(x,y) for each parameter and then addBatch for each tuple. Then call executeBatch to execute all the queries based on your batched parameters.
    If this didn't answer your question I don't know what your question is exactly. I would add that you probably want to set a "reasonable" size on your batches and break them into smaller batches as is reasonable. Mainly because the implementation of batched PreparedStatements widely varies depending on the database and driver, thus there are certainly scenarios where given enough batched parameters you could have various unpleasant things visited upon your program. Like terminal slowness, running out of memory, etc.

  • Where-Used using serial number only

    Hi experts...how can i track serial numbers and inspection lots from roh material without batch assign but with serial numbers ? these roh materials were used in PO without batch assign to FERT material yet. Is possible use where-used list only to manage serial number or only using batch administration over the serial numbers ?
    i will apreciatte any answer!
    Regards
    Marco Antonio Trois Endres

    sorry...i will try explain...i need to get results in inspection lots type 01 with serial numbers, results, especifications, etc. These roh material were used in production orders. If i use qc20, 21,22 to issue one certificate for orders or a single inspectin lot type 03 or 04, i think is impossible to get results from inspection lot 01 too, because chvw table used by where-used list was not updated, if roh and fert materials dont use batch management.

  • Business Address Services (BAS) and Where-Used ADRV/ADRVP

    Can someone point out any good sources of information on Business Address Services or possibly its predecessors either online or hard-print?  I've been through the help.sap.com information for BAS and all sorts of SAPNotes without finding what I'm looking for.
    In particular I'm trying to understand default SAP's usage of the Where-Used links in BAS that are stored in the tables ADRV and ADRVP.
    My Issue: If I create a Sales Document in SAP referencing a partner address stored in BAS there is no Where-Used ADRV record created.  So I cannot use the address number of the ADRC record to find which documents are referencing it via ADRV.
    steps to recreate:
    - Using existing Customer/Partners
    - Create Sales Document (Order) adding partners by selecting partner #'s and not manually overriding any address information.
    - Address of the partner is now linked in the Sales Document via VBPA-ADRDA=D and the ADDRNUMBER references the same ADRC address records that KNA1 points to.
    - There is no Where-Used record created in ADRV indicating that the Sales Document is linked to that address.
    - If I change or delete the ADRC record from KNA1 then I do not have the information available to take any special actions on linked Sales Documents.
    Note: If you manually override the address or use a one-time address when entering the Sales Document then the new address is linked via VBPA-ADRDA=E and a Where-Used record is created in ADRV.  Also any follow-on documents created with reference to the Sales Document will also have Where-Used records created in ADRV.  So in the case of changed or manually entered addresses ADRV does work as I would expect it to.
    I am observing this behavior in both R/3 4.6c and ECC 5.0.  Trying to understand why SAP is using or not using ADRV in these situations and whether the behavior can and should be changed.

    Can someone point out any good sources of information on Business Address Services or possibly its predecessors either online or hard-print?  I've been through the help.sap.com information for BAS and all sorts of SAPNotes without finding what I'm looking for.
    In particular I'm trying to understand default SAP's usage of the Where-Used links in BAS that are stored in the tables ADRV and ADRVP.
    My Issue: If I create a Sales Document in SAP referencing a partner address stored in BAS there is no Where-Used ADRV record created.  So I cannot use the address number of the ADRC record to find which documents are referencing it via ADRV.
    steps to recreate:
    - Using existing Customer/Partners
    - Create Sales Document (Order) adding partners by selecting partner #'s and not manually overriding any address information.
    - Address of the partner is now linked in the Sales Document via VBPA-ADRDA=D and the ADDRNUMBER references the same ADRC address records that KNA1 points to.
    - There is no Where-Used record created in ADRV indicating that the Sales Document is linked to that address.
    - If I change or delete the ADRC record from KNA1 then I do not have the information available to take any special actions on linked Sales Documents.
    Note: If you manually override the address or use a one-time address when entering the Sales Document then the new address is linked via VBPA-ADRDA=E and a Where-Used record is created in ADRV.  Also any follow-on documents created with reference to the Sales Document will also have Where-Used records created in ADRV.  So in the case of changed or manually entered addresses ADRV does work as I would expect it to.
    I am observing this behavior in both R/3 4.6c and ECC 5.0.  Trying to understand why SAP is using or not using ADRV in these situations and whether the behavior can and should be changed.

  • How to find out where used list of Table or T-code

    Dear ABAP gurus
    I know many of you have done this several times.
    wish to find out which Transaction code INSERTs the data into the table IHPA.
    I did the where  used list - SE11 ( for specific key work called INSERT ).
    Used the Table called D010TAB which has some information.
    Vise versa if I know a T-CODE , how to know which tables it read  & Modify...
    any better procedure than spending hours in research...
    I found similar custom program to find USER EXITS ...here..., looking soething similar...
    [http://wiki.sdn.sap.com/wiki/display/Snippets/FindUser-exits%2CBADIs%2CBTEs%2CEtcbyTCodeorProgram]
    thank you for your help
    Edited by: Raj Anvesh on Aug 3, 2011 9:58 PM

    Hi Anvesh,
    Maybe the data INSERTION is happening by BAPI,
    So just try to look for the concerned BAPIS.
    ECP_SRV_PARTNERS_IHPA
    IREP1_IHPA_ADRNR_PRE_FETCH
    IREP1_IHPA_ADRNR_READ
    MAP2E_DIIHPA_TO_PARTNER
    MAP2E_IHPAVB_BAPI2080_NOTPARTE
    MAP2E_IHPAVB_TO_BAPI_IHPA
    MAP2E_IHPA_BAPI2080_NOTPARTNRI
    MAP2E_IHPA_M_BAPI2080_NOTPNRI
    MAP2I_BAPI2080_NOTPARTNRI_IHPA
    MAP2I_BAPI_IHPA_TO_IHPA
    PM_DB_FILL_DIIHPA
    PM_PARTNERCOPY_FILL_XIHPA
    PM_PARTNER_DELETE_XIHPA
    PM_PARTNER_GET_XIHPA
    PM_PARTNER_PUT_XIHPA
    PM_PARTNER_REFRESH_XIHPA
    these are the bapis which are dealing with the IHPA table,
    Segregate them as needed and then go to the std program
    Revert for further clarification.
    Thanks
    Sri

  • Where used list of a function module

    hello ,
    i want to find out where used list of a function modules , but the problem when I try where used button with in a function module Im getting message saying 'Function Is Not An Include'  when it is used in other programs. Function AKB_WHERE_USED_LIST  does not exist.Function FUNC_GET_OBJECT  does not show the names of the programs.Im Stuck..Plz advise.
    Thanks in Advance

    Hello,
    This is working fine.
    i am getting the name of the programs where the Fm is used.
    In 
    OBJ_TYPE                        FUNC
    OBJ_NAME                        FUNC_GET_OBJECT
    Try this.........

Maybe you are looking for