RFC execution

Hi,
In my model I am using the RFC enabled FM K_PERIODS_GET_DATE_KOKRS
to calculate the fiscal year/period. It works fine for me in the Dev and QA environments but in the Production environment, I get undefined/undefined output instead of 004/2008 output.
Would have something to do with the roles on the R/3 side in Production? As i can run that function module in R/3 production.

Hi karan
   sometimes some objects are missing  during transportation. check it..
Regards
Pradeep P N

Similar Messages

  • Second Time, RFC execution Problem!

    Hi all,
    Has any one encountered this problem, when calling RFC First time fine and getting data from BAPI, when i call same RFC again, Second Time, RFC execution Problem!. Any idea!, Now i restarted server, that may cause the problem. Other than this, please give me your idea.
    Thanks
    Ravi Golla

    Hi Bhavik,
    <b>In View Controller:</b>
    public void onActionCreateProject(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCreateProject(ServerEvent)
        wdThis.wdGetArchCompController().CreateProject();
         wdThis.wdFirePlugOutToProjectCreationResult();
        //@@end
    <b>In Custom Controller:
    </b>
    wdDoInit()
    __Arch__Arm_Project_Create_Input create = new __Arch__Arm_Project_Create_Input();
         wdContext.node__Arch__Arm_Project_Create_Input().bind(create);
    public void CreateProject( )
        //@@begin CreateProject()
         try
                             wdContext.current__Arch__Arm_Project_Create_InputElement().modelObject().execute();
                             wdContext.nodeOutput().invalidate();
                        catch(WDDynamicRFCExecuteException ex)
                             wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(ex.toString());
                             ex.printStackTrace();
        //@@end
    I am using other functional modules they all working fine, this is one only has problem
    Thanks  Bhavic.
    Regards
    Ravi

  • RFC Execution Failed - Error

    Hi,
    When I am trying to create MBO, RFC execution is failing.  Error showing  in Error log as below.  SUP Version : 2.0. 
    java.lang.RuntimeException: Failed to execute EISOperation.
                    at com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:283)
                    at com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:165)
                    at com.sybase.uep.tooling.eis.SapEISOperationImpl.execute(SapEISOperationImpl.java:450)
                    at com.sybase.uep.tooling.ui.dialogs.preview.ExecuteSection.getRecordSet(ExecuteSection.java:289)
                    at com.sybase.uep.tooling.ui.dialogs.preview.ExecuteSection.access$300(ExecuteSection.java:75)
                    at com.sybase.uep.tooling.ui.dialogs.preview.ExecuteSection$3.run(ExecuteSection.java:192)
                    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    Caused by: java.lang.RuntimeException: Failed to execute JCA operation
                    at com.sybase.vader.da.jca.JcaInteractionOperation.execute(JcaInteractionOperation.java:171)
                    at com.sybase.vader.statistics.MonitoringOperation.execute(MonitoringOperation.java:65)
                    at com.sybase.vader.service.interaction.PipelineCompositeInteractionOperation.execute(PipelineCompositeInteractionOperation.java:55)
                    at com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:265)
                    ... 6 more
    Caused by: java.lang.NullPointerException
                    at com.sybase.vader.jca.sap.connector.cci.SapFunctionModuleDynamicMetadataMappedRecord.put(SapFunctionModuleDynamicMetadataMappedRecord.java:272)
                    at com.sybase.vader.jca.sap.connector.cci.SapRootInteraction.execute(SapRootInteraction.java:100)
                    at com.sybase.vader.da.jca.JcaInteractionOperation.execute(JcaInteractionOperation.java:145)
                    ... 9 more
    Help me ...

    Hi,
    did you try to switch to the advanced developer profile and to deactivate the result check ?
    Best Regards,
    Stefan
    Edited by: Stefan Wawrzinek on Jan 11, 2012 12:10 PM

  • 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

  • RFC execution process terminates the Java Process

    Hi All,
      we have a RFC which returns large data with export parameter. While executing JCO.client.execute(), java process is getting terminated. I tried to set the more heap size but of no use. It didn't give any OutOfMemory either.
    The JCO trace file at level 10 shows as below which clearly indicates that something is going wrong at JNI layer of JCO.
    The problem seems to be with allocation of heap size in 'C' layer of JCO.<b>The trace file has below last entries</b>
    <i>JMS Async S21514 [14:34:47:386]: [JNI-LAYER] RFC.Tables_C2Java()                                          enter, [SUCCESS]
    JMS Async S21514 [14:34:47:386]: [JNI-LAYER] RFC.reallocRecordBuffers()                                   enter, [SUCCESS]
    JMS Async S21514 [14:34:47:386]: [JNI-LAYER] RFC.reallocRecordBuffers("ZWNVPAIR"(4AB2BB8C),54D1A740) enter [SUCCESS]</i>
    It seems to suggest that reallocRecordBuffers was never completed and it is this call which could be responsible for java process getting killed.
    I think a successfull call will be recorded as below in JCO trace file:
    Completion of RFC call will be recorded as below in JCO trace file:
    <i>JMS Async S21514 [14:34:47:386]: [JNI-LAYER] RFC.Tables_C2Java()                                          enter, [SUCCESS]
    JMS Async S21514 [14:34:47:386]: [JNI-LAYER] RFC.reallocRecordBuffers()                                   enter, [SUCCESS]
    JMS Async S21514 [14:34:47:386]: [JNI-LAYER] RFC.reallocRecordBuffers("ZWNVPAIR"(4AB2BB8C),54D1A740) enter [SUCCESS]
    JMS Async S21514 [14:34:47:386]: [JNI-LAYER] RFC.reallocRecordBuffers()               with rc = RFC_OK   leave, [SUCCESS]
    JMS Async S21514 [14:34:47:386]: [JNI-LAYER] RFC.Tables_C2Java()                      with rc = RFC_OK   leave, [SUCCESS]
    JMS Async S21514 [14:34:47:386]: [JAV-LAYER] JCO.Client.execute (Z_DB_READER) on handle [X] returns after XXXX ms
    </i>
    Can anyone please help me here in understanding the above behavior?

    Thanks for reply. Where can i see the timeOut ineterval for Connection or Client object? I am not able to figure out any API which can be used to set the timeout behavior.

  • RFC SDK - timeout for RFC execution

    Hi!
    I was wondering if there was a way, when using the RFC SDK in client mode, to prevent a RFC call from taking more than a specified time to execute on the server.
    Can I use the API RfcCallReceiveTimed?
    Thanks,
    Mustansir

    See note 1056696 - Compiling and Linking RFC Programs with the SAP NW RFC SDK
    HP-UX (PA-RISC, 64 bit)
    aCC -DSAPonUNIX -DSAPonHPPA -DSAPwithUNICODE +DD64 -Aa +W392,829,818,887 -DSAPwithTHREADS -mt -w +O2 -DNDEBUG +inst_compiletime -c <program>.cpp
    aCC -Wl,+n,-z -Wl,-a,default +DD64 -o <program> <program>.o libsapnwrfc.sl libsapucum.sl [and possibly libicudecnumber.sl]
    Markus

  • RFC execution disregarded

    Hi developers,
    I am developing a tree application. The OnLoadChildren method calls a RFC to perform node expansion.
    What happens is that when expanding one of the root nodes (level 0) everything works ok.
    Upon level 1 node expansion, however, the RFC is not called at all.
    What I mean is that the line of code
    wdContext.currentZtem_Fm_Catalogo_InputElement().modelObject().execute();
    is executed but the RFC call is not. I am fairly certain of this, as I have run tests with both Eclipse and R/3 debbuggers running.
    Please help, thanks
    Points will be awarded
    Vincenzo

    So, by setting breakpoint in R/3 you don't stop, so the RFC is not called?
    This happens in my application when new Models are imported or changes done in existing RFC's..
    My only idea is to restart the server and try again!!
    Put some mechanism before the call (wdContext.currentZtem_Fm_Catalogo_InputElement().modelObject().execute();) to make sure that this code is accessed!

  • State of context model node if RFC-execution fails

    Hi!
    What is the state of a context model node if the execution of the related model instance fails - I suppose it to be always null, right?
    Regards,
    Thomas

    Thomas,
    I guess you are wrong. Node for output will conatins previous result element (if any) and all the nested nodes' elements.
    So you have to invalidate manually if you want to avoid showing stale results to user.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • RFC Adapter as Sender

    Hi Experts,
    We have a business scenario wherein I have to execute the RFC function(async) from an ABAP in R/3 and update the data in DB2 tables(async).
    I am using RFC as sender(async) and JDBC as receiver(async). I configured/registered the RFC connection in SM59 and used the same program id in RFC sender adapter. I tested the connection in standalone mode, it is working.
    The RFC function when I imported will have a request and a response. The data that I require to send to JDBC adapter is in the response. So I tried to use RFC response and created a message interface. Then I used that in my interface mapping and in the sender & receiver agreements. In the message mapping I used response that was imported.
    I get an error message saying sender agreement not found. The as per OSS note 730870 I changed the sender agreement to use RFC function as sender interface, I cannot use this function module for my mapping, as it does not contain the response.
    Am I doing something wrong. Can somebody show me some direction.

    Hi Srinivas ,
    If you want to capture the response of an RFC execution in XI and then map this response to another structure(In ur case a JDBC structure) inside XI message mapping , then you will have to use the RFC reciever adapter of XI and NOT the RFC sender adapter.If you use the RFC sender adapter, it means that your SAP system is acting as an RFC CLIENT, what happens is the REQUEST structure in your RFC destination will be converted to RFC-XML by the RFC sender adapter of XI and is available for furthur processing.
    But then, If you want to send the RESPONSE structure of an RFC to XI , one way is to execute the RFC in SAP(without passing this thru XI), now you have to pass the result of this RFC execution to XI by assigning it to a request structure of another RFC in your ABAP code and pass it to XI using RFC sender adapter.
    If not , you can use a dummy RFC in SAP to send a trigger to XI , execute the actual RFC in XI using RFC reciever adapter , capture the response , map it to ur JDBC structure and you are done.
    May be you can give a try on these lines. As for the error , you can chk these threads and see if it helps
    com.sap.aii.af.ra.ms.api.DeliveryException
    "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryExceptio
    RFC Sender Adapter error " Call to messaging failed"
    Thanks
    Saravana

  • Error in RFC call, after unicode conversion of ERP

    Hi,
    We have just converted our ERP system to unicode. And we are using xMII 11.5. When i am calling a RFC thro' the BLS, it throws me this error
    [ERROR]: RFC Execution Error: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
    The same error for all the RFC's i call.
    But when i execute the BAPI as such in se37, in ERP , its fine.
    What could be the reason for this?

    Hima ... try this
    http://<server>/Lighthammer/JCOProxy?Mode=Reset

  • Problem in import adaptive RFC

    Hi,
    I am trying to import a simple RFC using Import adaptive RFC model.
    There is no problem in the RFC execution, since i have tested it.
    Problem is output is not getting displayed. The output field is blank.
    Note:
    RFC while importing, is in warning state(yellow triangle). But no error or warning in back-end.
    Please let me know what is the mistake.
    Thanks & Regards,
    Krish.

    Any help would be really appreciated...
    I was trying to create/Maintain JCo destions on Web Dynpro Content Administrator caught up with the 500   Internal Server Error
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    For further information about the Web Dynpro error page, error analysis and a description of well-known error situations, see SAP note 1113811.
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NullPointerException
        at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:869)
        at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractSystemLandscapeFactory$1.checkStatus(AbstractSystemLandscapeFactory.java:310)
        at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:483)
        at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.updateJCOClientStatus(JCOConnectionsDetails.java:534)
        at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:750)
        ... 73 more

  • Problem with passing table values to RFC

    Hi all,
    I am passing values in table in RFC. There are no import/export parameters in RFC. We are passing only tables.
    There are two tables in the RFC I_Dept and I_Subdept. Initially RFC is executed for getting the Dept which works fine as for this there is no need to set in input table value. But to get sub department I need to set the dept in I_Dept and after executing RFC I should get values in table I_Subdept. The code is as below:
    wdContext.nodeOutput_I_Dept().invalidate();
    wdContext.nodeOutput_I_Subdept().invalidate();
    Z_Bapi_Dept_Values_Input d_Input = new Z_Bapi_Dept_Values_Input();
    wdContext.nodeZ_Bapi_Dept_Values_Input().bind(d_Input);
    Zdept dept = new Zdept();
    dept.setZname("Sales");
    d_Input.addI_Dept(dept);
    try
    wdContext.nodeZ_Bapi_Dept_Values_Input().currentZ_Bapi_Dept_Values_InputElement().modelObject().execute();
    wdContext.nodeZ_Bapi_Dept_Values_Input().nodeOutput().invalidate();
    catch (WDDynamicRFCExecuteException e)
    msgManager.reportException(e.toString(), true);
    Is anything wrong in this code because even after executing the RFC the size of node I_Subdept() is zero. But the RFC works fine in the backend.
    Regards,
    Jaydeep

    A typical misunderstanding when populating structured input data  
    via code is the following:                                              
    - You have bound a WD context node hierarchy to the model say
      N1         >         M1
      ->N2       >         ->M2
                                                                                    where N1, N2 are WD Context nodes (N2 is child of N1) and M1, M2 are   
    model classes bound to the context nodes. Important: M1 has a relation 
    to M2 on the model side, means there is some method M1.setMyM2(M2)   
    (assuming the target role of the relation is called "MyM2").           
    - You create context elements for N1 and N2 which are bound to a model  
    class instances of M1 and M2 respectively.                                                                               
    Assuming that M1 is the "executable" model class (*_Input) and M2       
    represents an input structure needed, the M2-input will - using the     
    above approach - not be available on execution. Why? The relation on the
    model side (MyM2) is not available if just maintaining it via the     
    context, i.e. context and model are not "in sync". As RFC execution is  
    done via the model the M2 input will not be available.                  
    You best create complex/nested input structures on the model            
    side and then bind the top-level model object to the resp context node. 
    In the above sample this would be:                                      
    M1 m1ModelObject = new M1();                                            
    M2 m2ModelObject = new M2();                                            
    m1ModelObject.setMyM2(m2ModelObject);
    Hope it helps!
    Regards,
    Sangeeta

  • Principle question to RFC

    Hello,
    I have a basic question to RFC execution. Maybe somebody can give me a good hint.
    Assume, we have an SAP system whose application servers are all located in Hamburg.
    Furthermore there are users all over Europe, using SAPGUI.
    Close to the users there are content servers to store documents and to provide fast access.
    Assume that there is a 3rd party product which can convert any document into a pdf format. The functionality is located on different servers which are located close to the content servers.
    There should be a background process on the SAP application server which calls an RFC on the pdf Convert Server and retrieves a document from the content server to get it converted.
    Now the question: will the document be transferred to the application server to Hamburg first and from there to the pdf Convert Server? WIll the result (the pdf) also be sent to Hamburg first before it can be stored in a local content server?
    Or is RFC itself so 'intelligent' to avoid these unnecessary data transfers?
    I try to ask the question in general. Hopefully somebody understands the problem.
    Thanks in advance.

    Dear Mr. Kretz,
    SAP RFC is 'only' a mechanism to perform remote function invoke. Thus it makes some definition on server and client side and defines a transfer protocol.
    SAP RFC itself does not define, which partners in your scenario are communicating as client or server. It is the task of the architect of your solution to define the process (of course also with respect to performance and communication overhead)
    There should be a background process on the SAP application server which calls an RFC on the pdf Convert Server and retrieves a document from the content server to get it converted.
    ... will the document be transferred to the application server to Hamburg first and from there to the pdf Convert Server? WIll the result (the pdf) also be sent to Hamburg first before it can be stored in a local content server?
    The whole thing depends on the ability of your server to certain functions.
    If your Convert server is able to access docs on the content server directly by himself without ABAP "help", it can work like:
       SAP AppServer -> RFC -> Convert Server <- some communication protocol -> Content Server
    and will not require data transfer over Hamburg.
    If Convert Server and Content server cooperate only by help of SAP ABAP, it would look like
      SAP AppServer -> RFC -> Convert Server -> RFC -> SAP AppServer -> RFC -> Content Server     and the whole call stack back.
    Or is RFC itself so 'intelligent' to avoid these unnecessary data transfers?
    RFC can only control, what is in his scope. That is the communication from a sender to a receiver. RFC itself cannot optimize the calls of a scenario 3 acting parties.
    Hope that helps you somewhat.
    Best regards

  • RFC Receiver - Logon information

    Hi
    When we are configuring RFC Receiver, we provide the Logon details ( User Name).
    What type of user type it should be.
    Presently in the development server, i have configured with Dialog user and the same is working fine.
    Will the same work, if i configure to "Communication user" or "Service User"
    Pls let me know your thoughts
    Regards
    Madhan D

    Hi,
    Will the same work, if i configure to "Communication user" or "Service User" - Yes
    The only thing is that the RFC comm user should have RFC execution rights..........so just ask your basis guys to attach the RFC execution role to your user........the type of user does not matter.........but it is better to have a service user in your RFC communication.
    Regards,
    Rajeev Gupta

  • RFC DeliveryException: error

    Hi,
    I am working on <b>DB2(Asyn)-SAP(Sync)-DB2(Asyc)</b> using BPM. I do understand based on the SAP notes 730870 that the either the XML-RPC format or the parameters to the funcation module might be incorrect.
    In my message mapping from JDBC to RFC under the <u>message tab </u>of the mapping screen I have 1 for JDBC occurances and 0..unbounded for the RFC as I will be selecting multiple rows from db. Currently in the MI mapping I have source and target as 1 occurances each, when I change the occurances in the target side to "0...unbounded" I do not see the response when I read the interfaces.
    In this case do I need to change any thing in my BPM and is this causing this error ?
    Bye the way my BPM is : Receive- Synch Send - Send.
    <b>Error from SXMB_MONI:</b>
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null></SAP:AdditionalText>
    Appreciate your help in resolving this error.
    Thanks
    Steve.
    Message was edited by: Steve Holland

    Krishna,
    When I changed the occurances to 1 and 1:1 mapping and tested MM using the payload from MONI, I am not getting any output at all.
    Test result says <b>cannot produce the target element(first element)</b>.
    My source structure based on the db is
    SOURCE_DT
    <Rows> --- 1..unbounded.
    <field1>
    </Row>
    When I tried the rows of multi-occurance with 1:N mapping  and I had the RFC execution error, but mapping was working.
    Thanks
    Steve

Maybe you are looking for

  • I have lost the document and cannot find it anywhere.

    I have been working on a lengthy document all evening in Pages.    I went to highlight it all (cmd A) to regularise the font etc, and I think I hit Alt just afterwards and the document has disappeared.  I cannot find it anywhere, not in trash, docume

  • Podcast image does not transfer to iPod

    I publish a podcast, hosted by Podbean, and when I publish an episode, the image is displayed only in the iTunes player. It does not display with the Podcast in the Podcast Library in iTunes on my PC, nor does it transfer to my iPod. Evidently the im

  • Coping with variable sized reply from server

    Hi folks, I've written a small class that acts as an SMTP client, opening a socket to a server and writing the appropriate SMTP commands out to it. However, I've discovered that I sometimes get SMTP 554 (SMTP synchronization error) errors on this, an

  • Forward to multiple addresses

    Hi, I'm trying to forward mail from one e-mail to 2 more addresses. Since you can only define one forward using the GUI, I imagine I have to do it using Sieve. But I don't really get it. If anyone could tell me exactly what I need to do? And should I

  • How do i stop draw refresh on mouseover?

    I am drawing shapes on a custom element, and running a function on draw. for somereason it is constantly redrawing anytime I mouse over the shape how can I stop that?I am using cs6. here is a sample code with the issue that I am talking about was tak