Caching of BAPI/RFC metadata

When calling an RFC from VC, the meta data seem to be cached somewhere. When I change the RFC interface, this is not reflected in VC. How can I delete this cache?

Hi Hartmut,
If you are using EP6 or later, there is a way of clearing the PCD cache (which includes cached metadata from RFC, JDBC or web service connections).
If you navigate to System Administration > Support > Portal Content Directory > PCD Administration, you will see a screen which allows you to either remove specific objects from the cache, or to flush the entire PCD cache.
This is also mentioned in SAP Note 868887.
Regards,
Sascha

Similar Messages

  • Invalidating rfc metadata cache

    hi all,
    i want to invalidate rfc metada cache through adaptive rfc metada cache invalidation tool in webdynpro console..
    can any one plz suggest me the path to find that.
    thanks in advane
    seshagiri

    hi juan,
    it was very helpful solution to our problem that is invalidating rfc metadata.
    after i gone through the pdf,i found it is for NW04S or 7.0 SP12
    but v r using SP09
    so i beleive upgraing is the only solution.right
    or can u suggest any other solution.
    thanks in advance
    seshagiri

  • Logical systems for modeldata and RFC metadata

    Hi All,
    I want to know how I can display the my own created logical system names under the drop-down menu when i have to select the logical system names for modeldata and rfc metadata. I don't want to them to be written instead i want them to be one of the options in the drop down menu, as we have them in the FLIGHT_LIST_INIT example found in the sample applications and examples.
    Thanks in advance
    Srikant

    Hi,
       While creating SLD for your R/3 systems give the desired name of wht u want instead of logical name.
    For configuring the same refer the link below :-
    http://help.sap.com/saphelp_erp2004/helpdata/en/29/e0b75c2b7d40c5bfbda82e905b701c/frameset.htm
    Regards,
    guru

  • BAPI/RFC for Service Complaints Creation in CRM 5.0

    Hi,
    We are working on the Complaints and Returns module in CRM 5.0. We have found the Transaction Code for the same. (CRMD_BUS2000120).
    Not able to find the BAPI/RFC for the same.Let us know if any. Appreciate your comments on the same.
    Thanks,
    Moorthy

    Hi,
    Thanks for the response
    I am not talking about Service Order. I have requirement to create a Service Complaint. For that the transaction is CRMD_BUS2000120. Now I need to find the function modules/RFC available for this requirement.
    Hope it clarifies .
    Even I have found function module called -CRM_COMPLAINT_API_CREATE but not sure right one
    Thanks,
    Moorthy

  • SOA Suite Business Rules: Error caching the Decision Services metadata

    hi ofm users
    im currentntly trying
    SOA Suite 11.1.1.1.0
    on Oracle XE
    on Windows XP Pro
    what im trying is a simple use case of business rule component,
    my service is getWorkStatusByDay, that i implement using
    business rules component using decision table.
    my rule model is (conceptually):
    Day{
         String id;
         String code;//mon,tue,wed,...,sat,sun
    WorkStatus{
         String id;
         String code;//holiday, work
    WorkStatus getWorkStatusByDay(Day):
    is rule service that decides WorkStatus code by Day code,
    eg:
    if Day.code=mon,tue,wed,...,fri then we got WorkStatus.code=work
    if Day.code=sat,sun then we got WorkStatus.code=holiday
    i've successfully created the composite project, using
    rule component, mediator, and exposed it as a webservice
    compiled and deployed ok.
    but when i try to run the service using soapUI WS tester,
    i'm getting error in the console, see stacktrace below.
    im able to reproduce the error by deploying the project
    to another computer with a same spec as above.
    So is there any solution to this ? how to fix this issue,
    as this is a very basic sample scenario.
    Any information will be appreciated,
    as im looking forward to evaluating Oracle Business for a client project :)
    [2010-08-11T14:07:14.593+07:00] [soa_server1] [ERROR] [] [oracle.soa.services.rules] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000IdVyLm30nnWFLzmJOA1CO^J500000D,0] [WEBSERVICE_PORT.name: getWorkStatusByDayPT_pt] [APP: soa-infra] [composite_name: TestRule] [component_name: mapWorkStatusByDay] [component_instance_id: c984b23f-0370-478b-99e1-83b651e2e35c] [J2EE_MODULE.name: fabric] [WEBSERVICE.name: getWorkStatusByDay] [J2EE_APP.name: soa-infra] [composite_instance_id: 40001] <.> Error caching the Decision Services metadata.[[
    Error caching the decision services metadata for path default/TestRule!1.0*91126208-425e-4d35-bca3-d2585ec941ea/mapWorkStatusByDay.
    Check the underlying exception and correct the error. This is most likely due to a rule modeling isssue. Validate the rule dictionary in rule designer and fix any errors and warnings. If the error persists, contact Oracle Support Services.
    ORABPEL-36109
    Error caching the Decision Services metadata.
    Error caching the decision services metadata for path default/TestRule!1.0*91126208-425e-4d35-bca3-d2585ec941ea/mapWorkStatusByDay.
    Check the underlying exception and correct the error. This is most likely due to a rule modeling isssue. Validate the rule dictionary in rule designer and fix any errors and warnings. If the error persists, contact Oracle Support Services.
         at oracle.bpel.services.rules.impl.DecisionServiceCache.cacheDecisionServiceMetadata(DecisionServiceCache.java:1211)
         at oracle.bpel.services.rules.impl.DecisionServiceCache.prepare(DecisionServiceCache.java:359)
         at oracle.bpel.services.rules.impl.DecisionServiceImpl.preProcess(DecisionServiceImpl.java:1164)
         at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.request(BusinessRulesServiceEngine.java:570)
         at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
         at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
         at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:144)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.rules.rl.exceptions.ParseException: encountered 'rule' when expecting one of:
    <XML_IDENTIFIER> ...<IDENTIFIER> ...
    at line 10 column 49 in main
         at oracle.rules.rl.exceptions.ExceptionFactory.createParseException(ExceptionFactory.java:577)
         at oracle.rules.rl.analyze.RulesetParser.generateParseException(RulesetParser.java:25)
         at oracle.rules.rl.parse.RLParser.jj_consume_token(RLParser.java:5430)
         at oracle.rules.rl.parse.RLParser.Symbol(RLParser.java:697)
         at oracle.rules.rl.parse.RLParser.Qname(RLParser.java:672)
         at oracle.rules.rl.parse.RLParser.ClassName(RLParser.java:795)
         at oracle.rules.rl.parse.RLParser.Type(RLParser.java:729)
         at oracle.rules.rl.parse.RLParser.Parameter(RLParser.java:886)
         at oracle.rules.rl.parse.RLParser.Parameters(RLParser.java:860)
         at oracle.rules.rl.parse.RLParser.Function(RLParser.java:1005)
    [2010-08-11T14:07:14.718+07:00] [soa_server1] [ERROR] [] [oracle.soa.services.rules] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000IdVyLm30nnWFLzmJOA1CO^J500000D,0] [WEBSERVICE_PORT.name: getWorkStatusByDayPT_pt] [APP: soa-infra] [composite_name: TestRule] [component_name: mapWorkStatusByDay] [component_instance_id: c984b23f-0370-478b-99e1-83b651e2e35c] [J2EE_MODULE.name: fabric] [WEBSERVICE.name: getWorkStatusByDay] [J2EE_APP.name: soa-infra] [composite_instance_id: 40001] <.> [[
    oracle.fabric.common.BusinessFaultException
         at oracle.bpel.services.rules.impl.DecisionServiceCache.cacheDecisionServiceMetadata(DecisionServiceCache.java:1211)
         at oracle.bpel.services.rules.impl.DecisionServiceCache.prepare(DecisionServiceCache.java:359)
         at oracle.bpel.services.rules.impl.DecisionServiceImpl.preProcess(DecisionServiceImpl.java:1164)
         at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.request(BusinessRulesServiceEngine.java:570)
         at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
         at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
         at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:144)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    -----

    hi ofm users
    im currentntly trying
    SOA Suite 11.1.1.1.0
    on Oracle XE
    on Windows XP Pro
    what im trying is a simple use case of business rule component,
    my service is getWorkStatusByDay, that i implement using
    business rules component using decision table.
    my rule model is (conceptually):
    Day{
         String id;
         String code;//mon,tue,wed,...,sat,sun
    WorkStatus{
         String id;
         String code;//holiday, work
    WorkStatus getWorkStatusByDay(Day):
    is rule service that decides WorkStatus code by Day code,
    eg:
    if Day.code=mon,tue,wed,...,fri then we got WorkStatus.code=work
    if Day.code=sat,sun then we got WorkStatus.code=holiday
    i've successfully created the composite project, using
    rule component, mediator, and exposed it as a webservice
    compiled and deployed ok.
    but when i try to run the service using soapUI WS tester,
    i'm getting error in the console, see stacktrace below.
    im able to reproduce the error by deploying the project
    to another computer with a same spec as above.
    So is there any solution to this ? how to fix this issue,
    as this is a very basic sample scenario.
    Any information will be appreciated,
    as im looking forward to evaluating Oracle Business for a client project :)
    [2010-08-11T14:07:14.593+07:00] [soa_server1] [ERROR] [] [oracle.soa.services.rules] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000IdVyLm30nnWFLzmJOA1CO^J500000D,0] [WEBSERVICE_PORT.name: getWorkStatusByDayPT_pt] [APP: soa-infra] [composite_name: TestRule] [component_name: mapWorkStatusByDay] [component_instance_id: c984b23f-0370-478b-99e1-83b651e2e35c] [J2EE_MODULE.name: fabric] [WEBSERVICE.name: getWorkStatusByDay] [J2EE_APP.name: soa-infra] [composite_instance_id: 40001] <.> Error caching the Decision Services metadata.[[
    Error caching the decision services metadata for path default/TestRule!1.0*91126208-425e-4d35-bca3-d2585ec941ea/mapWorkStatusByDay.
    Check the underlying exception and correct the error. This is most likely due to a rule modeling isssue. Validate the rule dictionary in rule designer and fix any errors and warnings. If the error persists, contact Oracle Support Services.
    ORABPEL-36109
    Error caching the Decision Services metadata.
    Error caching the decision services metadata for path default/TestRule!1.0*91126208-425e-4d35-bca3-d2585ec941ea/mapWorkStatusByDay.
    Check the underlying exception and correct the error. This is most likely due to a rule modeling isssue. Validate the rule dictionary in rule designer and fix any errors and warnings. If the error persists, contact Oracle Support Services.
         at oracle.bpel.services.rules.impl.DecisionServiceCache.cacheDecisionServiceMetadata(DecisionServiceCache.java:1211)
         at oracle.bpel.services.rules.impl.DecisionServiceCache.prepare(DecisionServiceCache.java:359)
         at oracle.bpel.services.rules.impl.DecisionServiceImpl.preProcess(DecisionServiceImpl.java:1164)
         at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.request(BusinessRulesServiceEngine.java:570)
         at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
         at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
         at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:144)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.rules.rl.exceptions.ParseException: encountered 'rule' when expecting one of:
    <XML_IDENTIFIER> ...<IDENTIFIER> ...
    at line 10 column 49 in main
         at oracle.rules.rl.exceptions.ExceptionFactory.createParseException(ExceptionFactory.java:577)
         at oracle.rules.rl.analyze.RulesetParser.generateParseException(RulesetParser.java:25)
         at oracle.rules.rl.parse.RLParser.jj_consume_token(RLParser.java:5430)
         at oracle.rules.rl.parse.RLParser.Symbol(RLParser.java:697)
         at oracle.rules.rl.parse.RLParser.Qname(RLParser.java:672)
         at oracle.rules.rl.parse.RLParser.ClassName(RLParser.java:795)
         at oracle.rules.rl.parse.RLParser.Type(RLParser.java:729)
         at oracle.rules.rl.parse.RLParser.Parameter(RLParser.java:886)
         at oracle.rules.rl.parse.RLParser.Parameters(RLParser.java:860)
         at oracle.rules.rl.parse.RLParser.Function(RLParser.java:1005)
    [2010-08-11T14:07:14.718+07:00] [soa_server1] [ERROR] [] [oracle.soa.services.rules] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000IdVyLm30nnWFLzmJOA1CO^J500000D,0] [WEBSERVICE_PORT.name: getWorkStatusByDayPT_pt] [APP: soa-infra] [composite_name: TestRule] [component_name: mapWorkStatusByDay] [component_instance_id: c984b23f-0370-478b-99e1-83b651e2e35c] [J2EE_MODULE.name: fabric] [WEBSERVICE.name: getWorkStatusByDay] [J2EE_APP.name: soa-infra] [composite_instance_id: 40001] <.> [[
    oracle.fabric.common.BusinessFaultException
         at oracle.bpel.services.rules.impl.DecisionServiceCache.cacheDecisionServiceMetadata(DecisionServiceCache.java:1211)
         at oracle.bpel.services.rules.impl.DecisionServiceCache.prepare(DecisionServiceCache.java:359)
         at oracle.bpel.services.rules.impl.DecisionServiceImpl.preProcess(DecisionServiceImpl.java:1164)
         at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.request(BusinessRulesServiceEngine.java:570)
         at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
         at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
         at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:144)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    -----

  • Serialize BAPI/RFC executions to avoid locking issue

    We have an XI interface that calls and executes a BAPI/RFC to create an invoice receipt against a purchase order in R/3. 
    While the BAPI/RFC is running, it locks the purchase order.  If another XI call to the BAPI/RFC is initiated to create an invoice receipt against the same purchase order, the second BAPI/RFC call will fail in R/3 due to locking. 
    I have the following questions:
    In XI, can we serialize the execution of the BAPI/RFC so the second call will start only after the execution of the first one is complete in R/3?

    Hi,
    no and yes
    no: not in standard
    yes: there are workarounds - you can wrap the
    BAPI in a RFC in which you can control it
    (I used this solution and it works)
    Regards,
    michal

  • Standard BAPI/RFC for Search Knowledge Article in Knowledge Management-Interaction Center

    Hi All,
    I am not from SAP CRM, but I am using CRM Web UI to maintain Knowledge articles. Now I want to know where in the backend this data is getting saved. Which table ?
    Also as this is a standard process introduced in CRM 7.0 . I want to know, if standard bapi/ rfc is available for the same. If yes what is the name .
    Regards,
    Tejas Chouhan

    Hi Tejas Chouhan,
    In CRM Technically, Knowledge article is designed based on one order framework with business object category as BUS2000106  - CRM Knowledge Article.CRMD_ORDERADM_H table will give header details of KA (OBJECT_ID field would equal KA number).
    Knowledge Articles in SAP CRM
    Refer 
    1 CL_CRM_QKNOART_RUN_BTIL  & SEARCH method to see code how it is written (standard search for knowledge article) consider all scenario. you can keep external debugger in this method and perform search from Web UI.
    2. CL_CRM_KNOWLEDGE_ARTICLE_UTIL & SEARCH_REPORTING_FRAMEWORK method.
    Hope this is helpful.
    Regards,
    Arjun

  • Standard BAPI/RFC for in-transit shipments

    All experts, I am new to SAP functional area. I am looking for a standard BAPI/RFC that will get me all in-transit shipments. Is it available and if so what is the name of the BAPI ? Or a custom one needs to be written?
    Thanks in advance for you help

    can u give us the transaction for that
    cheers
    s.janagar

  • Difference among  IDOCS,BAPI,RFC?

    what is the difference among  IDOCS,BAPI,RFC? and what is the real need to use them and again where exactly these are used in real time applications?

    Hi,
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    IDOC type and IDOC. An Intermediate Document (IDOC) type represents the structure of the data associated with a message type (DEBMAS02 for message type DEBMAS — Customer Master, and WMMBID02 for message type WMMBXY— Goods Movements), while an IDOC is an object containing the data of a particular message type. IDOCs are data containers with intelligence built in. Each IDOC contains one and only one business object. For example, an IDOC of type SHPMNT01, message type SHPMNT, will contain data only of one Shipment Document. Generally, the architecture of an IDOC is independent of the message type by virtue of ALE’s ability to redefine it for any message type.
    Regards,
    Bhaskar

  • FI-FM : BAPI/RFC for Funds reservation Creation ?

    Hi,
    I was asked to web enable the creation of funds reservation (= web enable what transaction FMX1 does). I have searched for available BAPI's/RFC's for this but I didn't found one. Since I'm not familiar with FI and FI-FM I maybe didn't search well.
    Do BAPI/RFC's exist for creating Funds Reservations ?
    (My only other option is to create a BAPI myself which does a call transaction to FMX1).
    Best Regards,
    Igor Vernelen.

    the problem was an oss note for no BL on GR for EF

  • Reg:BAPI RFC

    How to create BAPI-RFC?wht is the purpose of bapi rfc?
    plz send me urgently.........

    Hi,
    Programming a BAPI consists of some tasks like: •Defining BAPI Data structures ( using SE11 )
    •Creating BAPI Function Modules (For each method)
    •Defining BAPI Methods in the BOR
    •Documentation of the BAPI
    •Generate ALE interface for asynchronous BAPIs
    •Generate and release
    NOTE:
    Here we will not be covering the two points – Documentation of BAPI and Generating ALE Interface for asynchronous BAPIs.
    NOTE: You can use the BAPI explorer (T-code BAPI) to get a step-by-step instruction / checklist in how to create a BAPI. In the BAPI explorer select the Project tab.
    EXAMPLE – HOW TO CREATE A BAPI
    In the example we will create a BAPI that reads some information about the line items for a Sales Invoice from table VBRP based on the Invoice No. that is supplied to the import parameter of the BAPI Function Module.
    BAPI Name ZGetInvoiceItems
    Function group ZBAPIVIN
    Function module: ZBAPI_GET_BILL_ITEMS
    FM Import parameters : IV_BILLNO TYPE ZBAPI_BILL_ITEMS-VBELN
    FM Tables :IT_VBRP LIKE ZBAPI_BILL_ITEMS
    FM Export parameters : RETURN LIKE BAPIRETURN
    Defining BAPI Structures
    This is the basic step followed while creating BAPIs. All the relevant structures that are required for BAPI have to be created using T-Code SE11. The structures can be created for Import/Tables parameters. Use Data type -> Structure
    In our case we do not have multiple inputs but just one input i.e. Sales Invoice No. and so we have not made use of any structure for the purpose. But if required, structure can be used for import parameter also.
    The following are the components of structure ZBAPI_BILL_ITEMS:
    Field Name Description
    VBELN Invoice Number
    POSNR Invoice Item Number
    MATNR Material Number
    FKIMG Quantity
    VRKME Sales Units (Quantity)
    NETWR Amount
    Point of Caution
    It is required to define a structure for every parameter in the BAPI and use of same structures which are used in existing applications cannot be done because BAPI structures are frozen when BAPIs are released and then there are restrictions on changing them.
    Screenshot of Structure – ZBAPI_BILL_ITEMS
    Creating BAPI Function Modules (For each method)
    We must create new function group for each BAPI. If the BAPIs are related then the same can be grouped under the same FUNCTION GROUP to enable the sharing of global data amongst the related BAPIs
    Screenshot of Attributes Tab in the FM ZBAPI_BILL_ITEMS
    Screenshot of Import Parameters Tab in the FM ZBAPI_BILL_ITEMS
    Screenshot of Export Parameters Tab in the FM ZBAPI_BILL_ITEMS
    NOTE:
    Since Remote Enabled module processing type is selected and the Import/Export parameters can only be BY VALUE for an RFC enabled function module, select the checkbox for Pass Value for each IMPORT/EXPORT parameter.
    Screenshot of Tables Tab in the FM ZBAPI_BILL_ITEMS
    Code in the Function Module ZBAPI_BILL_ITEMS &
    related Includes in the Function Group
    INCLUDE LZBAPISTATUSUXX
    THIS FILE IS GENERATED BY THE FUNCTION LIBRARY. *
    NEVER CHANGE IT MANUALLY, PLEASE! *
    INCLUDE LZBAPIVINU01.
    "ZBAPI_GET_BILL_ITEMS
    INCLUDE LZBAPIVINTOP “ Global data
    FUNCTION-POOL ZBAPIVIN. "MESSAGE-ID
    TABLES: VBRK, VBRP.
    DATA: T_VBRP LIKE ZBAPI_BILL_ITEMS OCCURS 0.
    STRUCTURE FOR RETURN MESSAGES BY BAPI FUNCTION MODULE
    DATA:
    BEGIN OF MESSAGE,
    MSGTY LIKE SY-MSGTY,
    MSGID LIKE SY-MSGID,
    MSGNO LIKE SY-MSGNO,
    MSGV1 LIKE SY-MSGV1,
    MSGV2 LIKE SY-MSGV2,
    MSGV3 LIKE SY-MSGV3,
    MSGV4 LIKE SY-MSGV4,
    END OF MESSAGE.
    INCLUDE LZBAPIVINU01 - Subroutines
    ***INCLUDE LZBAPIVINU01.
    FUNCTION ZBAPI_GET_BILL_ITEMS.
    ""Local interface:
    *" IMPORTING
    *" VALUE(IV_BILLNO) TYPE VBELN
    *" EXPORTING
    *" VALUE(RETURN) TYPE BAPIRETURN
    *" TABLES
    *" IT_VBRP STRUCTURE ZBAPI_BILL_ITEMS
    Check if the Invoice exists
    select single *
    from vbrk
    where vbeln eq iv_billno.
    if sy-subrc ne 0.
    If not return the error message
    clear message.
    message-msgty = 'E'.
    message-msgid = 'Z3'.
    message-msgno = '001'.
    message-msgv1 = iv_billno.
    perform return_bapi_message using message
    changing return.
    exit.
    endif.
    If the Invoice exists, get all the required item lines information
    in the table it_vbrp
    refresh it_vbrp.
    clear vbrp.
    select vbeln posnr matnr fkimg vrkme netwr
    into table it_vbrp
    from vbrp
    where vbeln eq iv_billno.
    ENDFUNCTION.
    FORM RETURN_BAPI_MESSAGE *
    --> VALUE(IV_MESSAGE) *
    --> XV_RETURN *
    form return_bapi_message using value(iv_message) like message
    changing xv_return like bapireturn.
    check not message is initial.
    call function 'BALW_BAPIRETURN_GET'
    exporting
    type = iv_message-msgty
    cl = iv_message-msgid
    number = iv_message-msgno
    par1 = iv_message-msgv1
    par2 = iv_message-msgv2
    par3 = iv_message-msgv3
    par4 = iv_message-msgv4
    importing
    bapireturn = xv_return
    exceptions
    others = 1.
    endform.
    Regards,
    Vineela.

  • RFC metadata & model instance

    Hi,
    Could you explain why do we require RFC metadata & model instance in WD adaptive RFC model? What is purpose of these?
    Krishna.

    hi
    Rfc metadata and modeldata logical system destnations to connect to backend systems used in configuration of JCOs .
    we configure JCOs in ContentAdmin.
    Meta data is the Dictionary data thats why you find Metadata destination in Dictionaries of your project.
    Modeldata is the Application data,you can find logical system name of Modeldata in Properties of your Modelclass.
    So Model data destination will fetch actual data while metadata destination will contain description of the data.
    Regards
    sowmya.

  • BAPI/RFC for WIP values

    Hi all,
    I would like to show production order WIP values in an external system dashboard.
    Is any BAPI/RFC/IDoc available to fetch the data from SAP? If not, please let me know corresponding table to view the data in SAP?
    Thanks
    Guru

    In view COVPB you should find WIP and variance information.

  • BAPI/RFC FOR MB52

    PLS PROVIDE BAPI/RFC FOR MB52.
    OR
    PLS PROVIDE BAPI/RFC TO READ MARD-LABST.
    PLS HELP I AM NEW TO SAP.
    I tried
    BAPI_MATERIAL_AVAILABILITY
    but it wont provied al stock for some material it provided error
    EAG024No checking group is maintained for product 000000002000181306, plant JGE1 in matl master.
    my requiremts is
    material/plant/sloc/batch/fr_stk kid of table
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Feb 14, 2011 5:23 PM

    Hi Gautam,
    Check the bapi  BAPI_MATERIAL_STOCK_REQ_LIST. it contains various parameters like MATERIAL
    PLANT,MRP_AREA,0PLAN_SCENARIO,SELECTION_RULE,DISPLAY_FILTER,PERIOD_INDICATOR,GET_ITEM_DETAILS
    GET_IND_LINES,GET_TOTAL_LINES,IGNORE_BUFFER,MATERIAL_EVG
    Read the documentation of this Bapi . If you wont get all parameters what you require better to go for a Zbapi. Please tell if require more help on this
    Regards,
    Madhu.

  • Finding FM/BAPI/RFC for Create Inbound Delivery(vl31n).

    Hi all,
    i need for a FM/BAPI/RFC for Create Inbound Delivery(vl31n) or ASN
    where in import Parameter i have to pass -
    *vendor no*
    *PO no*
    *External ID no*
    *Delivery date*
    *TransPlanngDate*
    *BillOfLad*
    *GR/GI Slip*
    in Export i need ASN no and in tables we can use ITEM details.
    Regards,
    Sunil sahoo.

    Hi,
    Check the below link
    [https://forums.sdn.sap.com/click.jspa?searchID=16938983&messageID=5780492]
    Regards,
    Surinder

Maybe you are looking for