Getlist function for material object

Hello,
I'm trying to download the material master data through the material object. I'm using a BAPI control in VBA.
I can get the object but don't know the exact parameters to pass nor can I find any sample of the parameters.
     Set material = .GetSAPObject("Material")
this is code that I found for JAVA, I noticed the parameters but can't seem to find a way to pass them through VB
            'codes.setValue("I", "SIGN");
            'codes.setValue("BT", "OPTION");
            'codes.setValue("P00000000", "MATNR_LOW")
            'codes.setValue("P99999999 ", "MATNR_HIGH")
            'material.exports ("MATNR_HIGH:= P99999999")
            material.getlist MATNRLIST:=matlst
the Getlist method fetches a table but there is no content inside.
Any help is appreciated.
Jason Verhaeghe

Try with this example:
Dim TheFunc As Object
Dim tdata As Object
Set TheFunc = UserForm1.SAPFunctions1.Add("Z_RCP_BTBC_BUSINESS")
Set tdata = TheFunc.Tables("ZDATA")
tdata.appendrow
tdata(1, "BANFN") = Range("A1").Text
tdata(1, "USER_PBT") = Range("B1").Text
tdata(1, "USER_BT") = Range("C1").Text
TheFunc.Call
where "tdata" is a function table named ZDATA; "banfn", "user.." the field of table tdata; "thefunc" is used to call the rfc fm.
Gianluca

Similar Messages

  • SPAU-like functionality for custom objects - Z* or Y* Objects?

    Hello Experts,
    My scenario is like below:
    Assume that my SAP System is DEV1 and it is of SAP 4.6X version. I have imported Program ZPGMA from foreign system DEV2. And are moved to the Production system PROD1. Now there are some corrections did in program ZPGMA in DEV1 system either by using modification assistant or by turning Modifications Assistant Off. And then moved to PROD1.
    Now we are going for Upgradation from 4.6X system to ECC 6.0.
    Now, i need to get the list of programs that have original system as DEV2 but are modified in DEV1.
    In brief, i am looking for some functionality similar to SPAU which would work for Custom objects (Z* or Y* Objects).
    Thanks and Best Regards,
    Suresh

    Hi Suresh,
    There is not any functionality like SPAU to find these kind of program.But if you want to find your DEV2 programs moved and modified in DEV1, just go in table TADIR and find source system field ( SRCSYSTEM ) as DEV2 .
    You will get list of program moved in DEV1.
    Regards
    NImesh S. Patel

  • ABAP Function for Material Unit of measure check

    Hi Gurus,
    i need to find a FM, a sequence of FM or anything else that return the same list (in internal tables whould be great!) like when i try to change the UM on a material but there are some open items  and i got "DISPLAY ERRORS".
    i need this because using BAPI_MATERIAL_SAVEREPLICA i got only the message "The base unit of measure cannot be changed; choose "Display errors".
    BT

    This was my 1st try before coming here and found the function, but it retrieves informations from memory and the memory area is not filled when i use the BAPI.
    Anyway i solved otherwise.

  • WCM, New Functions for WCM Objects - Logistics - SAP Library

    To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
    You can also go back to the SAP help page.

    Hi,
    WCM topics can be covered in the [Enterprise Asset Management (EAM)|Enterprise Asset Management (SAP EAM); forum at the moment.
    If there were sufficient volume of WCM threads then a seperate forum could be requested.
    -Paul

  • Can't activate the COMPARE function for object DNL_CUST_TVAST for Adapter

    Hello
    I've applier OSS note 866824 to enable the exchange of the sales area flag deletion. I had to do the initial download for the customizing object DNL_CUST_TVAST but it failed because the no intial load was permitted as the data distribution was active. So I've applied note 887696 to enable the intial load for this object : I've deleted the COMPARE function for this object with transaction R3AC3. I've done the initial load for this object and now I can't add the COMPARE function : the error message is enter linked bdoc type for synchronisation load. and I don't know what to do...
    if somebody can help me...
    thanks a lot

    Thanks for your tip but it does not work, I need to fill this field.
    I just have an answer from SAP support, this value COMPARE is relevant for loading data in CDB.
    there no sense to add the compare value for this object : the compare load can never be used for this object. It was a delivery error
    Edited by: Jerome Munier on Dec 5, 2008 7:13 PM

  • Duplicate check for Connection Objects in CRM

    Hi,
    I want to implement a duplicate check for connection objects in CRM. The duplicate check shall use the address of the connection object and perhaps additonal attributes. I have found a duplicate check for business partners using the basis address service and TREX as index pool. However, I couldn't find a similar functionality for connection objects. Does somebody know:
    1) How to implement a duplicate check for connection objects which is based on the address of the connection object?
    2) Is there a way to use the TREX-based duplicate check which is integrated into the basis address service for connection objects?
    Thanks in advance!
    Best regards,
    Frank

    I also have a requirement to check for duplicate address at connection object level and we are using SAP data servies to validate the address. Can anyone share their experience.

  • PLM WEB UI - Personal Object Worklist for Material BOMs dumps in Portal

    We installed business package for PLM WEB User interface and we start playiong around with the POWL functionality. For some reason teh system ends in an error calling ....../sap/bc/webdynpro/PLMU/wda_wcc_myobj/
    This is section Personal Object Worklist for Material BOMs within Material BOMS
    Below is what I get
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Error when processing your request
    What has happened?
    The URL ......../sap/bc/webdynpro/PLMU/wda_wcc_myobj/ was not called due to an error.
    Note
    The following error text was processed in the system ... : The ASSERT condition was violated.
    The error occurred on the application server sapdl1_DL1_00 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: /PLMB/IF_SPI_METADATA_BASE~GET_NODE_DEFINITION of program /PLMB/CL_SEA_SELOPT_MP========CP
    Method: GET_NODE_DEFINITION of program /PLMB/CL_SPI_METADATA=========CP
    Method: GET_INSTANCE of program /PLMB/CL_SPI_METADATA=========CP
    Method: GET_PROVIDERS of program /PLMB/CL_SPI_FACTORY==========CP
    Method: CONSTRUCTOR of program /PLMB/CL_SPI_CONNECTOR========CP
    Method: GET_SEA_CONFIG of program /PLMU/CL_WCC_PWL_FEEDER_ABS===CP
    Method: CREATEPOWLDEF of program /PLMU/CL_WCC_PWL_FEEDER_ABS===CP
    Method: IF_POWL_FEEDER~GET_SEL_CRITERIA of program CL_POWL_EASY_FEEDER===========CP
    Method: IF_POWL_FEEDER~GET_SEL_CRITERIA of program /PLMU/CL_WCC_PWL_FEEDER_ABS===CP
    Method: GET_UPDATED_SELCRIT of program CL_POWL_UTIL==================CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system ... in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server sapdl1_DL1_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 2 in transaction ST11 on the application server sapdl1_DL1_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 020 -u: AXH7220 -l: E -s: DL1 -i: sapdl1_DL1_00 -w: 2 -d: 20100603 -t: 060408 -v: RABAX_STATE -e: ASSERTION_FAILED
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    However , if I run this service as a standalone URL I get a screen where I can fill in an application, business object and/or system. If I select one, it works perfectly
    What step do I miss?
    Thanks for any input on this
    kind regards
    Angelique Heutinck
    IFF

    Hi,
    I would reconmend to open an OSS message about this error.
    Martin

  • Text ID  for text object MATERIAL does not exist - MM01

    Hi All,
    I am getting below error message when trying to save Material Master in MM01.
    Text ID  for text object MATERIAL does not exist
    Message no. TD603
    Diagnosis
    You want to edit a text. However, the text ID (text type) of the specified text object does not exist.
    Procedure
    You can display a list of valid text IDs (text types) using F4=Possible entries. You can select the required text ID from this list with F2 or a double click.
    The valid text objects are listed in table TTXOB. The valid text IDs (text types) for an object are specified in table TTXID.
    I have searched the forums but couldn't get relevant message.
    Please assist.
    Thanks,
    Raj

    Hi Jurgen,
    This is the complete message i am getting.
    Text ID for text object MATERIAL does not exist
    Message no. TD603
    Diagnosis
    You want to edit a text. However, the text ID (text type) of the specified text object does not exist.
    Procedure
    You can display a list of valid text IDs (text types) using F4=Possible entries. You can select the required text ID from this list with F2 or a double click.
    The valid text objects are listed in table TTXOB. The valid text IDs (text types) for an object are specified in table TTXID.
    If I enter MM02 and without changing anything if i save still i get this error message.
    Thanks & Regards,
    Raj

  • How to create the change document functionality for a dependent objects?

    May I please know how to create the change document functionality for a dependent objects?
    I have done it follow the same process as for business process objects. But when i try to test it in BOBT, there is no records under "FIELD_CHANGE_WITH_FILTER". It seems the change hasn't been recorded.
    If the way I did to create change document for dependent object is correct, please also kindly advise the possibilities for why there is no record during testing.
    thanks in advance.

    I also have some doubts about the business object.In this case,one abstract BO hase a subnode wihich is root extended.I added the change document for this node under the category "root_extended" and then tested the function in BOBT.I got some error message "can't find the root key".Shall i redefine the method /BOFU/IF_CDO_CREATION~IS_CDO_CREATION_ACTIVE so as to solve the problem?
    Thx.

  • Function modules for material and description

    Hi,
    Pls let me know the function module for material and description.
    Regards,
    Bala

    Hi,
    Please use FM: MD_MATERIAL_GET_TEXT
    Reagrds
    Raju

  • Object Class and Object Id for material Determination tables.

    I want to know what is the Object Class and Object Id for material Determination records to verify tables CDHDR and CDPOS.
    The purpose is to know the changes done by the different users for material determination records.
    Can any one help.

    Hi ZZZSUNNY,
    Similar question is answered recently.Please find the below link which will helps you
    Material determination: how to see the creater of a record?
    Thanks
    Dasaradha

  • Business object  for material , template workflow for materials ?

    Hi,
    I need to create a workflow for material master , creating material basic data, create plant views etc
    Which is the appropriate workflow and is there a standard one as a template?
    Thanks
    Antonis

    Hello,
    I feel it is better that you use the standard business object BUS1001006 for your requirement related to the material management as some of the events which are obsolete in the business object BUS1001 have been redefined in BUS1001006.
    Events like "Material created" and "New View for the material Created" are redefined which I think you need for your requirement.
    Hope this will help.
    Regards,
    Samson

  • C++ STL library error: Non-const function ... called for const object

    Hello,
    I'm using the Forte Developer 6 Update 2 C++ compiler and standard library on Solaris 9 SPARC. I've installed the recommended patch set for C++ (both the workshop and platform patches).
    In my code, I have a STL set with some elements that I want to modify, say:
    typedef set<SomeClass> MySet;
    typedef MySet::iterator MySetIter;
    I'm trying to look for an element, then update some of its fields:
    MySet theSet;
    SomeClass sci;
    MySetIter it = theSet.find(sci);
    if (it != theSet.end()) {
    it->update_some_fields();
    The above code fails with the following error (some details scrapped):
    Error: Non-const function SomeClass::update_some_fields() called for const object
    Which is weird, since set::find() seems to return a set<...>::iterator, not a set<...>::const_iterator!
    If I try a workaround, like this:
    if (it != theSet.end()) {
    SomeClass &tmp = *it;
    tmp->update_some_fields();
    I get this other error:
    Initializing SomeClass& requires an lvalue.
    Is there some way to convince the Forte compiler to work around this situation (most likely a compiler / library bug)?

    This was fixed, too, by replacing the set with a map. It seems that the issue was related to the fact that any change made to a set member is supposed to not modify the elements that make up the key (the elements that are used in the comparison function to determine the ordering). The Windows (dinkumware) implementation of the STL allows set modifications, though I don't know how they check that the key fields are not modified. The Solaris implementation (and the GNU implementation, too) disallows any modifications made to set members. At least that's what a person more knowledgeable of C++ in our office found out. So I don't think the issue was related to template constructors or any unimplemented features after all.

  • Object for Material Master in SNRO

    Hi Friends,
                                 My material and vendor master numbers are missing. So i want to make the buffer 0 in SNRO. can anybody convey object for material and vendor master in SNRO. please reply...
    REgards,

    Below is the object name in SNRO
    Material :  MATERIALNR
    Vendor  :  KREDITOR
    Edited by: w1n on Jan 30, 2009 9:52 AM

  • Downloading the Customizing Objects for Material replicationfrom ECC to CRM

    Hi Experts,
        I am trying to download the three customizings objects for Material Download:
    1) DNL_CUST_PROD0
    2) DNL_CUST_PROD1
    3) DNL_CUST_PROD3
    After Initial Load,The Status of all three are coming as Running in R3AM1.
    What could be the possible reasons for this? How do I rectify this.
    Its very urgent.Please reply fast.
    Regards
    Puneet

    Hi,
    You can check for dumps(txn. ST22) on CRM and ECC both. Or see if the SMQ1/SMQ2 queues are in error state in either of these systems. If this doesn't help check if the table CRMATAB on the ECC is filled properly by the report SMOF_FILL_CRMATAB.
    Regards,
    Rohit

Maybe you are looking for