CS_BOM_EXPLOSION :Looking for a general concept of function modules

Dear friends,
As i am new to abap world,i have a few apprehensions regarding using a function module.I am being asked to use CS_BOM_EXPLOSION to explode BOM list.I searched at google,found some pretty links and this suited to my requirements as given under.However what is not clear to me is that up till now i believe EXPORTING is what result i get from function module and importing is what i pass to function module.In this and many other examples i found that values are itself assigned to EXPORTING  while importing are internal tables (probably) assigned to some structures standard used.
In short i am not clear how to use this function module.Could someone help ?
CALL FUNCTION 'CS_BOM_EXPLOSION'
EXPORTING
AUMNG = 0
CAPID = ' '
DATUV = DATVAL "valid-from date
EHNDL = '1'
MKTLS = 'X'
MEHRS = 'X'
MMORY = '1'
MTNRV = MATNR
STLAL = LAL "like mast-stlal default '1'
STLAN = LAN "like mast-stlan default '2'
SVWVO = 'X'
VRSVO = 'X'
WERKS = WERKS
mmaps = 'X'
IMPORTING
TOPMAT = STARTMAT "includes structure CSTMAT
TABLES
STBD = TBD "includes structure CSXDOC
STBE = TBE "includes structure CSXEQUI
STBK = TBK "includes structure CSXKLA
STBM = TBM "includes structure CSXMAT
STBP = TBP "includes structure CSXGEN
STBT = TBT "includes structure CSXTDL
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MISSING_AUTHORIZATION = 3
NO_BOM_FOUND = 4
NO_PLANT_DATA = 5
NO_SUITABLE_BOM_FOUND = 6
OBJECT_NOT_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.

Hi,
when you call the function module, EXPORTING is what you pass to the function module and IMPORTING is what the function module returns, TABLES again maybe returned by the function module.
You will need to define table types to get the tables data from the Function module.
ex : it_sTBD type table of tbd.
you will need to define variable to get the IMPORTING data from the FM.
CALL FUNCTION 'CS_BOM_EXPLOSION'
EXPORTING
AUMNG = 0
CAPID = ' '
DATUV = DATVAL "valid-from date
EHNDL = '1'
MKTLS = 'X'
MEHRS = 'X'
MMORY = '1'
MTNRV = MATNR
STLAL = LAL "like mast-stlal default '1'
STLAN = LAN "like mast-stlan default '2'
SVWVO = 'X'
VRSVO = 'X'
WERKS = WERKS
mmaps = 'X'
IMPORTING
TOPMAT = STARTMAT "includes structure CSTMAT
TABLES
STBD = TBD "includes structure CSXDOC
STBE = TBE "includes structure CSXEQUI
STBK = TBK "includes structure CSXKLA
STBM = TBM "includes structure CSXMAT
STBP = TBP "includes structure CSXGEN
STBT = TBT "includes structure CSXTDL
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MISSING_AUTHORIZATION = 3
NO_BOM_FOUND = 4
NO_PLANT_DATA = 5
NO_SUITABLE_BOM_FOUND = 6
OBJECT_NOT_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
Hope you are clear abt FM's.
Shruthi

Similar Messages

  • How the transactional replication work for simple recovery database (looking for some internal concept)

    How the transactional replication work for simple recovery database (looking for some internal concept)
    Rahul

    There seems to be a new myth going around recently. I’ve had at least three people tell me, in the last month, that SQL’s transactional replication requires the database to be in full recovery.
    This is complete fabrication. Replication (SQL native replication, that is) can work with the databases in any of the recovery models.
    Transactional replication does involve the transaction log, as that’s where it picks up changes from. The log reader scans over the transaction log looking for log records marked for replication, copies those to the distribution database and then marks them
    as replicated. When the checkpoint (for simple recovery) or log backup (for full or bulk logged) occur, the log will only be truncated up to the oldest inactive, replicated transaction.
    Because transactional replication has its own way of ensuring log records aren’t discarded before been picked up by the log reader, there’s no requirement for a specific recovery model.
    Refer this link
    http://sqlinthewild.co.za/index.php/2008/12/05/a-new-sql-myth/
    --Prashanth

  • Steps for creating a new BAPI function module

    Hello experts,
    Can any one send me steps for creating a new BAPI function module , I got a requirement to do like this,but I dont have any clue about how to create.
    Please help !!!

    BAPI stands for Business Application Programming Interface.
    There are 5 different steps in BAPI.
    - Create BAPI Structure  
    - Create BAPI Function Module or API Method.  
    - Create BAPI object  
    - Release BAPI Function Module.  
    - Release BAPI object.
    Step1. Creating BAPI Structure:  
    - Go to <SE11>. 
    - Select Data Type & Enter a name. 
    - Click on Create.
    - Note: Always BAPI should be in a development class with request number (Not Local Object).
    - Select Structure & hit ENTER.
    - Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    - Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module: 
    - Enter TR.CODE <SE37>.
    - Before entering any thing, from the present screen that you are in, select the menu
       Goto -> Function Groups -> Create Group.
       Enter a name (Note: This name Must start with ZBAPI)
       Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
       Click on the Third ICON that says Inactive Objects. 
       Select the group that you just created and click on Activate. 
       Notice that the group you created will disappear from the list of inactive objects.
    - Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says [IMPORT].
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says [EXPORT].
    Enter the following as is in the first three fields 
      RETURN        TYPE        BAPIRETURN (These 3 field values are always same)
      Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object: 
    - Enter Tr.Code <SWO1>   (Note. It is letter ‘O’ and not Zero).
    - Enter a name and then click on create. Enter details. 
    NOTE: Make sure that that Object Type and Program name are SAME.   
    - Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom. 
    - Then hit <ENTER>. 
    - Now we have to add ‘Methods’. High light METHODS and then select the following from the menu: 
    Goto Utilities -> API Methods -> Add Methods.
    - Enter function Module name and hit <ENTER>.
    - Select the second FORWARD ARROW button (>)to go to next step. 
    - Check if every thing looks ok and again click on FORWARD ARROW button (>).
    - Then select ‘YES’ and click on <SAVE>.
    -  Now on a different screen goto TR.CODE <SE37>.  Enter Function Module name and select from the top menu  Function Module -> Release -> Release.
    - Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    - Edit -> Change Release Status -> Object Type Component -> To Implemented.
    - Edit -> Change Release Status -> Object Type Component -> To Released.
    - Edit -> Change Release Status -> Object Type -> To Implemented.
    - Edit -> Change Release Status -> Object Type -> To Released.
    - Then click on <SAVE>.
    - Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    - Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>. 
    Here it shows business object repository.
    - First click on the middle button and then select “ALL” and hit ENTER.
    - Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully.
    regards,
    aswin

  • Documentation for RS_EU_CROSSREF (where-used list function module)

    Hi,
    I'm trying to understand how to use the "RS_EU_CROSSREF" function module.
    It corresponds to the where-used list function you find in so many SAP screens.
    I need to use it in a program, but I can't find any good documentation about it.
    I'd like something that tells me what values I have to fill in parameters.
    For example, how to search form "TEST_FORM" in all programs ? or even in a given program, I didn't get how to restrict the search to a program...
    Thank you for any help,
    Quentin

    Hi Gurpreet Singh,
    table cross does not find any function modules although I know for sure that there are function modules calling the function module.
    Please post an example of how to find function modules calling a function module with RS_EU_CROSSREF.
    /Elvez

  • Best practice to upload data for Appraisals: BDC, LSMW or functional module

    Hi,
    I have heard that BDC and LSMW do not work for data upload in appraisals. Is it true?
    Can we use ECATT or SECATT to upload data in appraisals?
    I somewhere got the information that functional modules
    HRHAP_DOCUMENT_PREPARE
    HRHAP_DOC_UPDATE_BODY_AND_SAVE
    HRHAP_DOCUMENT_CREATE
    are used to upload the data for appraisals?
    Many of my earlier clients found it very hectic to create appraisal templates every year (PHAP_CREATE). They needed something automated for this.  I managed to suggest them manual upload or SECATT, but I am not sure if BDC/LSMW work for this.
    Can somebody throw some light on this?
    Best regards,
    Veera Sasidhar Jangam

    Hi,
    You need to write a code for same and use function modules available as those does direct updates to database.
    If client is not bothered about look and feel during dataload or do not care about display infotypes during data updates then use above method otherwise BDC needs to be written with screen control programming in it.
    Thanks,
    Ameet

  • Outbound IDOC for sales order: message type, function module ?

    Hi all,
    is there a possibility to send out sales order data with an outbound IDOC (like sending an purchase order out with ORDERS.ORDERS05)
    I've looked in WE20, for application V1 there are process codes like SD01, SD04, ... but the function modules behind are no existing on our system (release 500)
    can anybody give me an little hint?
    Thank you very much
    best regards Hans

    Hi George,
    for every process code there is a function module attached you can see in WE41(t-code)..
    double click on the Process code you will able to see the Function Module attached to Process code..
    and also you can check it out in WE57 (t-code) link between the Function module and Message type and Idoc type..
    Process code      SD01                                               
    Description       ORDRSP: Order acknowledgment, ORD_ID01 (SD_ORDRSP) 
    Function module   SD_EDI_ORDRSP_ORD_ID01                             
    Process code      SD04                                               
    Description       DESADV: Shipping notif. with DES_ID01 (SD_DESADV)  
    Function module   SD_EDI_DESADV_DES_ID01    
    regards,
    Prabhudas

  • How to search for a string in ALL Function Modules source code

    Hello,
    I want to search for the string "HELLO" in all FUNCTION MODULES source code(FM, no reports/programs).
    Is this possible? How?
    Cheers,
    Andy

    hi,
    Execute RPR_ABAP_SOURCE_SCAN to search for a string in the code ... Press where-used-list button on the program which takes to the function group or the function module where it is used ..
    Regards,
    Santosh

  • Creating the bussiness roles for the bussiness partner using Function modul

    Hi
             How to create the business roles using the function modules for the Business partner.

    You can also assign the role at the time of creation of the business partner itself. Use the function module BAPI_BUPA_FS_CREATE_FROM_DATA to achieve the same.
    If your business partner is already there then you can use the function module BAPI_BUPA_ROLE_ADD.
    <b>Reward points if it helps.</b>

  • Create new settlement rule for an order with a function module

    Hi,
    I would like to create a settlement rule for an order. I searched for existing function modules and found K_ORDER_SETTLEMENT_RULE, which seems to be the correct one.
    The problem: The settlement rules, which I create with this function module are not saved.
    Do I have to call another function module to save my new rules?
    Thanks in advance,
    Fabian

    Hi,
    Settlement rules are first of all defined in customizing how the should be behave and secondly lies the question how to update a CO cost object with this settlement rule.
    My first advice would be to use the "automatic settlement derivation feature" that can be setup in customizing alike. <b>SPRO -> Controlling -> Internal Orders -> Actual Postings -> Settlement -> Automatic generation of Settlement Rule</b>. Read the docu for this node (right click and choose Display documentation) to understand what possibilities and limitations this functionality has. Below this node you have the possibility to define a "settlement strategy" and allocate this to a order type. You can also define a Enhamcement (COOM0003
    ) where you can somewhat influence the automatic generation of settlement rules.
    Execute transaction KO8G (collective processing) or KO88 (indicidual processing) to create a settlement rule for internal orders.
    The other option you have is to create a custom program based on BDC to create settlement rule for internal orders.
    I think the BDC program would be a better idea for you.
    Let me know if you have any question.
    Regards,
    RS

  • Search for Top GTS BADIs/BAPIs/Function Modules

    Hi All,
    Reaching out to collect list of the most common BADIs/BAPIs/Function Modules in GTS.
    Been searching the web and I can find lists for other SAP areas, but not ours.
    Thanks, Jeff

    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=190743879
    RH_GET_MANAGER_ASSIGNMENT

  • Insert new Master Data Record for an InfoObject using a Function Module

    Hi @ all,
    is there any Function Module for creating a new master data record for an InfoObject? Implementing a FM for inserting a master data record into a master data table is done quickly. I think there will be problems with inconsistency implementing a FM using a simple "Insert" Statement. Isn´t it?
    I know it is possible to maintain an InfoObject in RSA1 (Master data IO> right click>Maintain Master data>execute(F8)> ...) but I have another requirement for using a FM.
    Thanks!
    Regards,
    Johannes

    use this
    RSNDI_MD_ATTRIBUTES_UPDATE

  • Looking for most Mac-compatible Multi-function

    I've been using an HP OfficeJet 7410 as my multi-function, and while it worked fine with a PC, it has one large flaw when used with a Mac: scanning to a .pdf from the document feeder results in cutting off text at the bottom of the page. (Note: it doesn't do this when scanning from the glass - only from the feeder.)
    I've tried all sorts of remedies, but none works, and I've started seeing posts on various forums in which Mac users complain about this, so it seems to be some sort of incompatibility.
    Which leads me to seek advice in finding the best multi-function (print, copy, scan and fax) with document feeder, and duplex printing ... for use with a Mac. I don't do much photo printing - mostly text - but good photo quality would be nice to have.
    Any advice?
    MacBookPro (Intel)   Mac OS X (10.4.10)  

    What do you want it to be able to do with your mac? At this time there isn't really anything else. Motorolla has 2 that it worked with apple on but they are extremely limited. Other than that most phones will support music and such via simple drag and drop with USB connection.

  • Looking for struts bean:write   Equivalent function/ tag in jsf??

    Hi to all,
    I am quite new to jsf. Soi might be asking a stupid question.
    I just wanna to know is there an equivalent tag or simple scriplet that can provide the same function as strut <bean:write>?
    Thanks and regards,
    Chin Tat

    ok i am not a struts programmer but from a quick search i am assuming <bean:write> outputs in html the value of a property in your java bean?
    if this is the case then you simply use
    #{beanName.propertyName}
    i.e
    <h:outputText value="#{beanName.propertyName}"/>
    note your bean will have to be registered in you facesContext as a managed bean to do this (where beanName is the name of your managedBean)
    if bean:write doesn't do this sorry :) forget my answer

  • RDBMS Realm Schema Properties - newbie looking for some general info

    I am new to the world of WL Security Realms. I am trying to better
    understand what is involved in setting up a RDBMS Security Realm and
    speficially the Schema Properties within that security realm.
    The situation that I am trying to solve right now is that I want to
    provide authentication for a given application using a "user list"
    from another DB that our application will have access to via JDBC.
    First off, would using the RDBMS security realm allow me to do
    something along these lines - ie access a "user list" from another DB?
    If YES, then what sort of things would have to be done from the
    schema properties standpoint in order to make this possible?
    Note that the other DB will also be an Oracle instance managed by
    WebLogic, the same as with our application, if it makes a difference
    in any way.
    Thanks for the help.
    Chris Baglieri

    You need to configure the schema so that it fits in with your database
    getGroupMembers=SELECT GM_GROUP, GM_MEMBER from groupmembers WHERE GM_GROUP
    = ?
    deleteGroup2=DELETE FROM aclentries WHERE A_PRINCIPAL = ?
    deleteGroup1=DELETE FROM groupmembers WHERE GM_GROUP = ?
    addGroupMember=INSERT INTO groupmembers VALUES ( ? , ? )
    getUser=SELECT U_NAME, U_PASSWORD FROM users WHERE U_NAME = ?
    getPermission=SELECT DISTINCT A_PERMISSION FROM aclentries WHERE
    A_PERMISSION = ?
    deleteUser3=DELETE FROM aclentries WHERE A_PRINCIPAL = ?
    deleteUser2=DELETE FROM groupmembers WHERE GM_MEMBER = ?
    getGroupNewStatement=true
    deleteUser1=DELETE FROM users WHERE U_NAME = ?
    getAcls=SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentries ORDER BY
    A_NAME, A_PRINCIPAL
    getUsers=SELECT U_NAME, U_PASSWORD FROM users
    getGroups=SELECT GM_GROUP, GM_MEMBER FROM groupmembers
    getPermissions=SELECT DISTINCT A_PERMISSION FROM aclentries
    getAclEntries=SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentries WHERE
    A_NAME = ? ORDER BY A_PRINCIPAL
    newUser=INSERT INTO users VALUES ( ? , ? )
    removeGroupMember=DELETE FROM groupmembers WHERE GM_GROUP = ? AND GM_MEMBER
    = ?
    (Taken from bea's example RDBMS Realm)
    Modify this to fit in with your schema
    "Chris Baglieri" <[email protected]> wrote in message
    news:[email protected]...
    I am new to the world of WL Security Realms. I am trying to better
    understand what is involved in setting up a RDBMS Security Realm and
    speficially the Schema Properties within that security realm.
    The situation that I am trying to solve right now is that I want to
    provide authentication for a given application using a "user list"
    from another DB that our application will have access to via JDBC.
    First off, would using the RDBMS security realm allow me to do
    something along these lines - ie access a "user list" from another DB?
    If YES, then what sort of things would have to be done from the
    schema properties standpoint in order to make this possible?
    Note that the other DB will also be an Oracle instance managed by
    WebLogic, the same as with our application, if it makes a difference
    in any way.
    Thanks for the help.
    Chris Baglieri

  • Who is responsible for integration of the different function modules?

    Hi All,
    Please tell me who would do rather who is responsible for doing the following kinds of integrations SD-MM-FICO, SD-MM, SD-FICO and so on? What would be the role of ABAPers in these kind of integrations?
    Regards,
    MD

    Hi MD,
    The functional team (from each module that is implemented) from the Implementation team along with the CORE team from the client end, together are responsible for carrying out the integration (testing).
    Any defects identified are to be fixed by the implementation team consultants. ABAP consultants are required to carry out any investigation/debugging required to fix the issues identified (if they are ABAP code related).
    Hope this clarifies.
    Best Regards,
    Shyam

Maybe you are looking for

  • What the Initial value for sy-tabix & sy-index

    Hi Folks    I have a small doubt. What the Initial value for sy-tabix & sy-index? Can anyone please clarify me? Regards, Sree

  • System Preferences freezes in 10.9

    Hi, I am running a mid-2012, 13" Macbook Pro with 8Gb of RAM, and have installed Mavericks. Mostly everything is running fine (some strange occasional scrolling weirdness with Safari notwithstanding) - but I am continually encountering a problem with

  • Releasing Order Holds in Multi Org Env. with oe_holds_pub.release_hold

    Hi All, I am fairly new to Oracle Apps. My program needs me to create a custom order hold using oe_holds_pub.apply_holds. This piece is working fine. Now i need to release the holds using oe_holds_pub.release_hold. I have 2 instances of Oracle, and m

  • Proxy service disable problem in OSB

    Hi All, I have two proxy services in a OSB project (one with OWSM policy and other without OWSM policy applied to it). Apart from this the two proxy services are implemented in the exactly same way. When I disable the proxy service to which OWSM poli

  • How to install FTP

    I have to write an XML message from PI to a remote file system using file receiver adapter. As i understand , i have to use FTP for doing this. Can anybody give me details about where to download this and how to install FTP? And on which box it has t