Call Transaction not executing in Function Module

Hi,
I am sending an IDoc from non SAP system to SAP system,IDoc calls(Inbound Process Code) Function Module in which i wrote BDC code.i found that it is not calling Call Transaction  but when i test the same IDoc from WE19 it executes perfectly and update data in database.
And for this communication i dont have any other option then BDC.
Suggest me what to do
RP

1.Check for leading zeros for key fields like material number, vendor number etc .
2. make use of wrappers. check the below link:
https://www.sdn.sap.com/irj/go/km/docs/library/mobile/mobile%20infrastructure/mobile%20development%20kit%202.5/content/appdev/smartsync/bapi_wrapper_types.html

Similar Messages

  • Calling and executing a function module in the Portal iview development

    Hello Portal development gurus...
        I am very new to portal iview development and am learning a lot of stuff.. I now have a requirement to do the following:
      1. I need to use the NWDS to create java code in developing an iview
      2. I need to call and execute a function module and display the parameters pulled in from the function module onto a Jsp.
    3. I need to create an iview based on this deployed component.
    Could anybody please explain me how to do the coding on this front?
    I appreciate if anybody can share documentation about this kind of a development.
    As always, points galore for useful and helpful suggestions.
    Regards,
    ~~~LB

    Hi,
    Firstly Have you searched in SDN for the same, anyhow please go through the link to work on the requirement
    [/docs/DOC-8061#15|/docs/DOC-8061#15]
    Go through the thread which will talk in detail
    [https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955|https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955]
    Hope this helps.
    Cheers-
    Pramod

  • Posting_illegal_statement, call transaction not allowed

    Hi everybody !
    I'm trying to create an order and then an invoice automatically when a first invoice is saved. For that, I've got an output type in VF01 which performs special function (8). This calls my program where I used two call transactions.
    I've got the error 'POSTING_ILLEGAL_STATEMENT', with the message 'call transaction not allowed'.
    I saw that the same question has been asked in this forum (messageID=876563), but it is still marked as 'not answered'...
    Also, someone proposed to "not use 4-immediate processing. Create an event, using tcode SM62. Raise it in your code in the special function using BP_RAISE_EVENT.
    Define a job to be triggered, after the event is raised and do all that you want to do in the job."
    If I don't use 4-immediate processing, which one is better to use to process VA01 immediatly after saving the billing document ?
    Then, if I create a job, as it is executed in background, I don't know how to debug it and which data I can access in the program called by the job. To create the order, I need the vbeln of the billing document just created. How can I have it ? Does the table nast contain it at this moment?
    Thanks in advance !
    Emilie

    Hi Nicole,
    Here's the coding of the call function :
      CALL FUNCTION 'BP_EVENT_RAISE'
        EXPORTING
          eventid                      = 'ZEVENT_FACT_TRIANG_AUTO'
    *   EVENTPARM                    = ' '
    *   TARGET_INSTANCE              = ' '
       EXCEPTIONS
         bad_eventid                  = 1
         eventid_does_not_exist       = 2
         eventid_missing              = 3
         raise_failed                 = 4
         OTHERS                       = 5
    Regards,
    Emilie

  • Calling java APIs from a function module

    Hi,
    Can someone tell me whether it is possible to call Java APIs from a function module in SAP system?
    Thanks in advance,
    Vineetha

    Hi,
    I guess you have changed the properties of screen only.
    I assume you have made a Ztransaction Code.
    When you define a transaction code, you need to specify a screen number for radio option program and screen and you need to specify a screen and not subscreen.( I think so!!)
    You changed only the code without changing the transaction code properties.
    Therefore, i think u r getting a dump.
    If you want to call your subscreen, call it in some screen and then call that screen using your transaction code properties.
    To include a subscreen screen in the subscreen area of the main screen and call its PBO flow logic, use the following statement in the PBO event of the main screen:
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN <area> INCLUDING <prog> <dynp>.
    To call the PAI flow logic of the subscreen screen, use the following statement in the PAI flow logic of the main screen:
    PROCESS AFTER INPUT.
    CALL SUBSCREEN <area>.
    Refer:
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/content.htm
    Regards,
    Tanveer.
    Please mark helpful answers.
    Message was edited by: Tanveer Shaikh
    Message was edited by: Tanveer Shaikh

  • Error while executing the function module BAPI_RE_CN_CREATE

    Dear All
    I was using the the function module BAPI_RE_CN_CREATE.  When I am trying to execute the function module I am getting the error message u201CBusiness transaction RECN doest existu201D. While inputting the parameters for the function module I have given RECN   In the input field TRANS. Requesting you to please kindly suggest.
    Regards.
    Varaprasad

    Hi Varaprasad,
    please try the following.
    1. Create a contract manually in the system
    2. Use BAPI_RE_CN_GET_DETAIL to show how the fields and structures are filled.
    3. Check and change the parameters for BAPI_RE_CN_CREATE accordingly.
    Hope that helps.
    Regards, Franz

  • Can I execute a function module in my  Webdynpro App ?

    Hi,
    Can I execute a function module in my Webdynpro App ?  I mean, it's not a BAPI.
    Is it possible ?   which is the procedure to follow ?  (comparing to a bapi procedure).
    Thanks for your help !
    Regards from Mexico.  =)
    Diego

    Hi Diego,
    the warning icon indicates that you're using a function module that has not been externally released. If the corresponding function module has been defined by SAP, its interface might be changed in an incompatible way within one of the next releases, e.g. removing / renaming a parameter or structure field. Stability is only guaranteed for BAPIs or external released function modules.
    From the point of view of the model import it does not make any difference. If import does not work, there seems to be some other problem. Maybe the function module has not been activated in the R/3 system. Or check the log file or the import log page which will be the last page of the import wizard.
    You might want to import some other none external released function module in order to verify that model import of these kind of function module works.
    Kind regards,
    Lothar Bender

  • Call WDA from ABAP via function module

    Hi WDA experts,
    is there any possibility to call a WDA within a ABAP report AND include it in the process.
    The best would be to call a WDA via a function module - make some inputs on the WDA side - press submit and the function module gives me the data from the webdynpro back to my application.
    I know that I can call a WDA via the function CALL_BROWSER, but in this case the WDA application is fully independent from the report and I am not able to post any data back to the report.
    I also know FM WDY_EXECUTE_IN_PLACE, but in this case I need a HTML container to display the WDA and there it seems that I also never get back any data back to the report.
    Any hints are appreciated.

    Not too hard:
    CALL WDA passing in a KEY on start plug.
    write the data to a shared memory object using the key passed as the
    key to a shared memort object on the submit.
    (see blogs on writing Shared maemory objects in ABAP)
    Then simply exit APP.
    On return read the data from the Shared memory Object.
    The shared memory object lives across the 2 sessions.
    cheers
    Phil.

  • Execute a function module from sapportal without to create the users in R/3

    I have a pdk application in sapportal. This pdk application will be execute for any sapportal users which don't have R/3 users. The problem is the follow.. in this pdk application there is a R/3 function module that must be execute, ¿how can i execute this function module without to create the users in R/3?

    Hi Michael,
    Create a JSP dyn page application. Hope you have the table name and in R/3 there will be Function modules already available which we also can reffer.
    Then from this JSP dyn page application, call this particular function table.
    wE DON'T  have to create a user for this.
    Regards
    Arun Jacob
    P.S please award points for helpful suggestions.

  • Error msg- ME53N tocde "company was not supplied in Function module inte -

    Hi
    When user is trying to open ME53N tcode he is getting folowing error message,
    "company was not supplied in Function module interface"
    Kindly help, how to avoid this error message.
    Thank You in advance.
    WR,
    Nilesh

    We observed this error comes when you had previously opened any PO which now has missing data or assignment like ..plant deactivated..plant CC assignment  etc.
    Work around, Open any Good PO in chnage mode me22n or create any test PO in me21n. And then try to execute me23n.
    Regards,
    Nilesh Hiwale

  • To call webmethods using RFC(Remote Function Module)

    Hi Sap Group.
    i have got a situation on how to call the webmethods using Remote Function Module ,i know that there should be rfc destination created in sm59 already,so can i use the  same existing rfc destination which was used to call webmethods with another scenario in my interface.
    can anybody help me in this.
    regards.
    Varma

    Hi Naina,
    Normally RFC are synchronous, they do have return parameter as export parameter.
    If return parameter is missing then , you can create Wrapper RFC.
    Wrapper RFC:
    It is nothing but you just  create BAPI in SE37 transaction with Return parameter as export parameter and make it remote enabled by clicking on Radio button.
    Under source code, CALL BAPI which XI has to call.
    Thats it!
    I hope this helps.
    Let me know if any help required.

  • How to execute a function module?

    I am new to SAP and I need to execute a function module, per OSS Note 894279.
    It says I need to run a function module with a certian parameter.  Well I see how I can modify function modules in SE37 or SE80, but how do I run/execute them?
    I am sure this is something simple that I am not aware of.  Thanks.

    Hi,
    Go to SE37--> Give the FM name --> press F8 --> Give the values for Import parameters --> Press F8 or exection button on application tool bar.
    Thanks,
    Sri.

  • ME52n - Error Message - Company was not supplied in function module.

    Hello,
    It is giving error Message - "Company was not supplied in function module" in the initial screen of ME52n and ME53n.
    Please help.
    Thanks,
    Piyush

    Hi Vadi,
    when ever you open me52n or me53n ..system by default opnes/shows your last created/ opned PR.
    so if that last created / changed PR is having wrong/faulty data (missing assignment/ plat stolocation deleted etc) ..system will not be able to fetch respective data....thats why you will get above eror message...
    Solution : Create any smaple PR in ME51n/ or  try to chnage  any existing PR.. and then save it.
    try this 1 or 2 times.
    Hope so this will help.
    Regards,
    Nilesh

  • Company was not supplied in Function module interface

    Hi all,
    When i tries to access the following tcode - me52n,me53n i got following erro message "Company was not supplied in Function module interface" ,
    Thanks

    Hi Navdeep,
    Maintain company code in your user profile with the parameter id BUK.
    like in you user profile, on parameter id tab give the parameter id name BUk and value '0001' (the company code against purchase requistion had been created)
    Hope it will solve your problem.
    Regards
    Krish

  • A nested exception occurred. Could not execute the function

    Hi Experts,
    Post upgrade of SAP Portal from 7.0 to 7.31, and when we click any application related to visual composer it shows the below error.
    and the default trace shows
    #2.0 #2014 07 22 02:34:11:243#0-700#Error#visualComposer_NWBIKit_logger#
    #EP-PIN-PRT#tc~epbc~prtc~core#C000A7EEAF63014200000002000019B9#11738650000000004#sap.com/com.sap.visualcomposer.BIKit#visualComposer_NWBIKit_logger#C921154#36##E220BC96117411E4C8F2000000B31E1A#519cf5b0118311e48b43000000b31e1a#519cf5b0118311e48b43000000b31e1a#0#Thread[HTTP Worker [@2079636611],5,Dedicated_Application_Thread]#Plain##
    A nested exception occurredCould not execute the function
    [EXCEPTION]
    com.sapportals.connector.execution.ExecutionException: A nested exception occurred. Could not execute the function.
    at com.sapportals.connectors.SAPCFConnector.SAPConnectorException.getNewExecutionLocalizedException(SAPConnectorException.java:193)
    at com.sapportals.connectors.SAPCFConnector.execution.functions.SAPCFConnectorInteraction.execute(SAPCFConnectorInteraction.java:617)
    at com.sap.portal.guimachine.bikit.query.bw.QueryViewFlatRfc.execute(QueryViewFlatRfc.java:209)
    at com.sap.portal.guimachine.bikit.designtime.bw.BWResultsetProcessor$ExecuteHandler.execute(BWResultsetProcessor.java:399)
    Please give us your valuable inputs to solve this.
    Thanks in advace!!
    Regards,
    Preetha Balan

    Hi Colin,
    Sorry for the delay in response!!
    Yes SAP gave patch VC70RUNTIME file to apply to get rid of this error.
    Even asked us to follow the sap note
    1532050 - Disabling error messages that pop up at runtime
    Hope this helps you
    Thanks,
    Preetha Balan

  • Problem with calling a report from a function module. Please help! URGENT!

    Hi Experts,
       I have a scenarion like this:
      XI -
    > Function Module -
    > ABAP Report
      From XI I am callingf a function module in another R/3 system. This function module inturn calls a ABAP report using SUBMIT statement. The function module and the report reside in the same R/3 system.
      I am calling the report like this:
    SUBMIT yseg_save_bp_data WITH SELECTION-TABLE rspar
                                 AND RETURN.
    The problem is when I run the function module directly in the R/3 system then it calls the report without any problem.
    On the other hand, when I call the function module from XI then the report is not called. On debug mode I found that the program exits just at the Submit statement. Why is this strange problem?
    What mistake am I doing? Is there any limitations or restrictions with SUBMIT statement.
    What is the correct way of using submit statement in this scenario?
    Kindly help me!
    Thanks
    Gopal

    Hi Rao,
       I have created the FM as remote RFC. Infact XI is able to call the FM. Only problem is when it reaches the point where the report is called via SUBMIT it exits.
    Help me please!
    Thanks
    Gopal

Maybe you are looking for