Doubt in RFC parameters assignment

Hi all
I would like to know how the values are assigned to RFC parameters from the rfc call.
I have a sender rfc which has a table parameter
The table structure is
field name            type           length
resourceno           numc           10
shipmentno          numc            10
startdate              dats
The data i gave in rfc is 1234567890 , 1234567890 , 11112004 ,
But in the target function,
the values are assigned to the parametrs as follows
RESOURCENO - 1234567890
SHIPMENTNO - 2004111112
STARTDATE    -0000-00-00
The resource no is assigned correctly . but for shipmentNo, the date and the first 2 characters of shipmetnno are assigned to that target shipmentNo.
Dont understand why it happens.Have anyone else faced similar problem before. Any idea where I have gone wrong?

my req is to make unicode enabled ..in ecc6.10.
code is:
TYPES: BEGIN OF            xs_pa0007,
        country(2),
        national_id(20),
        schkz         type pa0007-schkz,     "work schd rule
        teilk(3),    "type pa0007-teilk       Part time EE yes/no
        empct         type pa0007-empct,     "Emp percent
        wostd(6).                            "Weekly work hours
TYPES: END OF              xs_pa0007.
TYPES:  BEGIN OF gs_paxxxx,
          fill1,
          begda              TYPE pa0000-begda,
          fill2,
          seqnr              TYPE pa0000-seqnr,
          infty(4),
          fill3,
          subty              TYPE pa0000-subty,
          fill4,
          pernr              TYPE pa0000-pernr,
          fill5,
          copied,
          fill6,
          rec(1500),
        END OF gs_paxxxx.
data: gw_pa0007 type xs_pa0007,
ga_paxxxx type gs_paxxxx.
gw_pa0007 = ga_paxxxx-rec.
in this libne im getting error that
gw_pa0007 and ga_paxxxx-rec are not  mutualy compatible in unicode program.
please tell me how to solve this ..

Similar Messages

  • Problem in mapping xml data with imported RFC parameters

    I am currently working on a senario in which a flat file is generated by an RFID server and placed in FTP server.
    The flat file is picked up from the FTP server using XI and the contents are mapped to the corresponding imported RFC parameters.
    The content of the file which is in text format is successfully converted in XML at the XI side.
    File contains records of 2 fields Functional location and RFID equipment number . In the R/3 side these fields
    are used as Functional location and equipment number of PM module .
    The structure of the FTP message is as follows
    <ns:RFID_MSG_TYPE xmlns:ns="urn://sisl:rfiddemo">
    <RecordSet>
      <Row>
       <FL1>"f1</FL1>
       <FL2>01</FL2>
       <FL3>01</FL3>
       <RFID_NUM>I001"</RFID_NUM>
      </Row>
    </RecordSet>
    </ns:RFID_MSG_TYPE>
    After the mapping program which maps the above structure to the imported RFC is executed the following payload document is generated
    <ns:ZRFID_EQUIP xmlns:ns="urn:sap-com:document:sap:rfc:functions">
    <RECORDS>
      <item>
       <FLOC>f1-01-01</FLOC>
       <RFID_NO>I001</RFID_NO>
      </item>
    </RECORDS>
    </ns:ZRFID_EQUIP>
    The size of FLOC is 30 of type string and RFID_NO is also a string with size 18.
    When the data is brought in R/3 both the fields FLOC and RFID_NO gets mapped in FLOC which is of type char30.

    Hi Naveen,
    In sxmb_moni the content transmitted to the adapter(RFC)is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns:ZRFID_EQUIP xmlns:ns="urn:sap-com:document:sap:rfc:functions">
    - <RECORDS>
    - <item>
      <FLOC>f1-01-01</FLOC>
      <RFID_NO>I006</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-02</FLOC>
      <RFID_NO>I002</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-03</FLOC>
      <RFID_NO>I003</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-04</FLOC>
      <RFID_NO>I004</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-05</FLOC>
      <RFID_NO>I005</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-06</FLOC>
      <RFID_NO>I001</RFID_NO>
      </item>
      </RECORDS>
      </ns:ZRFID_EQUIP>
    At r/3 side the field floc and rfid_no gets mapped to floc which is of char30
    eg floc=f1-01-01I006
       rfid_no=

  • SOAP - PI- R/3 RFC  Scenario RFC parameters are not comming

    Hi Experts,
    I created one scenario as SOAP ->PI 7.1 -> R/3 RFC call.
    When I am testing this scenario Backend RFC is getting called but somehow RFC parameters are coming as blank. In XSMB_MONI it is creating two messages as successful one with correct payload.  But when I put debug code at the start of RFC , it is going to the debug code  and input parameter values are showing as empty.  Please tell me where can I check?
    Thanks,
    Siva Rama

    Hi Siva,
    Please check in the SXMB_MONI of the receiver SAP System.
    If the parameters are getting populated here then it must be passed to the RFC.
    Make sure you have imported the RFC from the receiver system itself.
    regards,
    Piyush

  • Error in parameters assignment between rfc call and xi message

    Hi all
    In  a sender rfc scenario, i am exporting a table.
    The table structure is
    field name           type          length
    resourceno         numc          10
    shipmentno  -      numc         10
    startdate             dats
    I have imported the rfc definition in xi design too.
    The data i gave in rfc is 1234567890 , 1234567890 , 11112004 ,
    But in xi, the message i m getting from the rfc adapter is
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:Z_UPDATE_FMS xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <RESOURCEINFO>
    - <item>
      <RESOURCENO>1234567890</RESOURCENO>
      <SHIPMENTNO>2004111112</SHIPMENTNO>
      <STARTDATE>0000-00-00</STARTDATE>
        </item>
      </RESOURCEINFO>
      </rfc:Z_UPDATE_FMS>
    The third parameter date (of 8 characters) is assigned to shipment field and the first 2 characters of shipmentno field is concatenated with that.
    Any idea what could have gone wrong?

    Aarthi,
    Did you checked the source under Inbound Message--->Payloads?
    How come <SHIPMENTNO>2004111112</SHIPMENTNO>  segment has 2004111112 as per your input it should come as 1111200412 isn't it?
    raj.

  • Doubt about RFC Destination in FILE to IDOC Async scenario

    hi
    In FILE-XI-IDOC Async Scenario we are creating RFC Destination in R/3 and XI.
    For Asyn we don't want response But We are Creating RFC Destination in R/3 also.
    Any specific reason.
    Thanks in advance.

    First you need to have a clear understading of how the idoc adapters works.
    In xi we create rfc destination and specify that in the port maintenance on the idoc adapter so that we can establish a connection to the sender / receiver system which contains the IDOC METADATA (IDX2) that is required by the idoc adapter to convert the native idoc into idoc xml format.
    In R/3 as sender we create rfc destination so that when the idoc has to be transported to the xi system first it will be sent to trfc port that rfc desination that  u define the trfc port contains that the target system address(IP) and logon parameters req.So idoc can be sent to the desired destination.
    In R/3 as a receiver to facilitate communication we define rfc dest, partner profile and specify the inbound parameters so that idoc can be posted.
    Hope this answers your ques.
    cheers
    *Raj*
    *POINTS IF SATISFIED WITH ANSWER.

  • How to define RFC parameters

    Hi Experts,
    i am using a RFC FM to from SRM system to ERP system. in ERP system the RFC FM parameters refer to some structures or tables which are not in SRM system.
    but i should transfer these parameters in SRM system to call this RFC.
    can anyone tell me how to define the parameters in SRM system?

    Hello,
    I also had to work with RFC to call SRM function module from an ECC system. I recommend you very strongly to create your own RFC function module in SRM and your own DDIC structures in both systems with just the fields you need. This custom SRM RFC function module, map the parameters to the standard 100+ field DDIC structure and call the SRM function module (not using RFC at this time of course).
    Why did I say "very strongly" : DO NOT duplicate the 100+ field DDIC structure from SRM to your RFC client system (by transport or manual copy), because some support packages add fields to some include structures of the complex structure, and they are inserted somewhere in the middle, and so it probably makes obsolete your duplicated DDIC structure.
    Hope it's clear
    sandra

  • Doubts in RFC sender Adapter

    Hi XI Gurus,
    Can any body plz explain me about the parameters used in RFC Sender Adapter (like RFC Server Parameters: Program ID, Gateway, etc..)
    Thanks in advance.

    Hi,
    Refer this link there they have given everything clearly
    http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/frameset.htm
    Application Server (Gateway) : host name of the sender system.
    Application Server Service (Gateway):  Gateway service of the sender system. This can be the numeric description of the service port in the sender system or the alphanumeric equivalent (for example, sapgwXX, where XX is the system number of the sender system).
    Program ID: Program ID of the registered server program. The selected program ID must uniquely describe the RFC sender channel in the configured gateway (Application Server (Gateway) and Application Server Service (Gateway) parameters).
    For Program id: In sender R/3 system Tcode SM59
    1.Create RFC Destination with connection type: T
    2.Choose Registered server program
    3.Give program id(you can give any name here, the program id you give in sender RFC adapter and here should be same )
    4. Give Gateway host and Gateway value.
    You can also check this blog
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    Regards,
    Sakthi

  • Doubt in RFC Function module

    Hi,
    I am creating one RFC in that i need to declare one import parameter whose length is is.
    when i am giving like i_exclide like kna1-loevm is not accepting.
    when i am declaring like i_exclude like char1.
    it is giving error like reference parameters are not allowed in RFC.
    anybody can tell me how to declare.
    thanks,
    maheedhar

    Hi,
    Go to se37,
    Give ur RFC function module and click change.
    Go to "Import" tab , you can find a checkbox "Pass Value" , check this checkbox.
    Now you try to compile the code , you wont get that error.
    Reward points for useful answer.
    Thanks,
    Jey

  • Problem with RFC parameters in repository(RFC to File Scenario)

    Hi,
    I importted RFC from R/3 to XI. When I see the parametrs in the imported object I can not see all the variable of parameters defined in R/3. Because of that I am  not able to do the mapping of variable of target structure.
    Can anybody help me who exactly the parametrs will be dispayed in imported and objects and how we can map sorce to target.
    Thanks in advance.
    Regards,
    Siva

    Hi siva,
    go to r/3 .check ur FM.Check import and export parameters.
    save and activate it properly.Reimport it in XI.
    Also check here more discussion on that..
    Re: ** Not able to Import RFC - RFC to RFC scenario
    Regards
    Biplab

  • Doubt  on RFC at receiver side

    Hi,
           I had some doubts in FILE to RFC scenario plz kindly answer to this questions ur help will be more valuable.
           1. Is it necessary to create RFC destination on ISERV pointing towards receiver syst?or on receiver syst pointing towards XI?
           2.i'm using BAPI_GOODS_MVT_CREATE so what will be the bapi returning parameter values for that?
           3.in FILE to RFC scenario after registering senders non-sap syst in SLD ,can i create B.SERVICE directly in I.D?
           4.canbody give info on REGISTERING OF QUEUES what is this concept ?
    we have to check this in SMQR  or SXMB_ADMIN?
    what we have to do in realtime REGISTER or UNREGISTER them?
              Plz kindly answer to this questions as many as possible?
               points will be awarded for most valuable answers.
                                                                                    Regards,
                                                                                    smitha.

    <i>> 1. Is it necessary to create RFC destination on
    > ISERV pointing towards receiver syst?or on receiver
    >  syst pointing towards XI?</i>
    You do not need any RFC destinations when using the Receiver RFC adapter. You just create a Receiver RFC adapter with the details pointing to your R3 system.
    <i>> 2.i'm using BAPI_GOODS_MVT_CREATE so what will
    >  be the bapi returning parameter values for that?</i>
    In the IR, you can check the Response XML of the same BAPI or execute the BAPI from SE 37 and check it out.
    ><i>> 3.in FILE to RFC scenario after registering
    > senders non-sap syst in SLD ,can i create B.SERVICE
    >  directly in I.D?</i>
    This is optional . if you have created a 3rd Party Business System you can use this as bioth the sender and receiver or you can use a Business Service created in the Integration Directory.
    Regards
    Bhavesh

  • Cross-system customizing tool - RFC parameters

    I am trying to configure the customizing viewer tool as per the link below
    http://help.sap.com/saphelp_nw04/helpdata/en/24/1d77d9f6d011d18e0e0000e8a48612/frameset.htm
    I am trying to use the tool to compare the customizing settings between two clients in the same system.
    Do I need to create an RFC? if yes, what are the parameters for this RFC? does the tool need a specific RFC name?
    thanks in advance,
    Tiberiu

    Ok, the resolution was to ensure SMB_X82 (in Solman) has the following roles and profiles:
    Roles
    SAP_SOLMANTMWCOL
    Z_SOLMAN_BACK
    Profiles
    D_SOLMAN_RFC
    S_BDLSM_READ
    S_CSMREG
    S_CUS_CMP
    S_SD_CREATE
    S_TMW_ADMIN
    This resolved my issue.
    Thanks
    Shaun

  • RFC parameters (pass by value)

    I believe Iam missing something in the concept of passing by value and reference in a RFC FM.
    the question/s  is/are:
    we always have to check <b>'pass value'</b> for parameters(we get a syntax unless), but what value will be passed to the input parameters of the rfc,are they initial values based on type?
    and do we still have to give reference when it doesn't make sense in a  network?(or once the call is made from an outside system )
    RFC:
    <b>parameter/ ref / pass value</b>
    v_vbeln /like /vbak-vbeln / check
    hope i make sense.
    i would greatly appreciate any answers.
    thanks

    More F1 Help...
    <i>
    There are two types of parameter passing: pass by reference and pass by value.
    Pass by reference shows the formal parameter directly on the actual parameter so that changes to the formal parameter immediately affect the actual parameter.
    Pass by value creates the formal parameter either as a copy of the actual parameter when the function module is called (at IMPORTING value and CHANGING value parameters) or creates it initially on the stack (at EXPORTING value parameters). At CHANGING value and EXPORTING value parameters the formal parameter is copied onto the actual parameter when it returns from the function module call.
    </i>
    Regards,
    Rich Heilman

  • File to IDOC Scenario - Doubt in RFC Destination

    Hi all,
    I m working on a File - IDOC Scenario. I got a IDX1 error Also when I try to import IDOC in IDX2, I got I:000 error message(No more information was given) . When I checked the RFC destination, Test Connection works fine. But Remote Logon didnt work, since the target system is not a Trusted System
    Is it necessary to make the Target System, a Trusted System ? (For enabling Remote Logon)

    Hi ,
    There might be some problem with the R3 user that u r using...
    For some versions of R3 it is required that the password be in CAPS for making an RFC connection...
    I knw this sounds weird but even i had this problem....
    Also chk if the XI user has RFC priviliges..
    reward points if helpful
    PrashANt

  • FM/RFC to assign specialisation of module group to a student

    Hi,
    I am trying with FM:HRIQ_SPECIALIZATION_INSERT_RFC to assign specialisation of module group to a student, when i pass Student Id, Object ID of Study Object (CS),Program ID,Module groupId, Module Group Category, am getting error "Combination of academic specializations is not allowed".
    what could be the issue? pls suggest.
    Thanks & Regards
    Khaleed

    Dear Khaleed,
    Please (check) make sure you conducted all of customizing steps in relation to the SC, CG and allowed combinations of specialisations in the progam catalog
    Before you can offer specializations, you must perform the following preparatory steps:
    1. Set up module group variant/category combinations (both in IMG steps and PIQ_ACSTRUC)
    2. Define the relevant module group categories as a u201Cspecializationu201D (by setting the flag in the customizing table).
    3. Assign a module group variant to the program of study (Program data tab page of the object SC).
    4. Link module groups to the program of study which reflects the required module group categories.
    When you have performed the above steps, you can maintain the allowed combinations of module groups in the SLCM Menu -> `Environment` u2192 Maintain acad. specializations in the `program catalog` (=PIQ_ACSTRUC)
    This function allows you to define the rules for valid and invalid specialization combinations for each of your programs of study. For example, you may have a B.A. program that requires students to select a major and a minor: With this function, you can explicitly define the major/minor combinations that are not permitted (e.g. Math Major and Math Minor).
    Note: You do not have to explicitly define all allowed combinations.
    br
    Rob

  • Doubt in Activity No assigned to Package Number

    Hii
    ME53N - T-Code..Under a Purchase Req. No there are many Services...A single service no/Activity(SRVPOS) may have more Pkg No(PACKNO)...
    how can i find a Service belongs to which Unique Pkg no??
    How this Package no is assigned to Activity/Service no??
    Thanks in Advance
    Satyabrata
    ABAP Consultant

    select PACKNO from EBAN, then for this packnumber, select subpacknumber from ESLL..
    For this subpacknumber, there will be entries in ESLL similar to service line present in PR.

Maybe you are looking for

  • In need of a 2.6.19 kernel package

    Hi, Does anyone have a 2.6.19 kernel package laying around? I couldn't find any. My laptop doesn't play any sound with the recent kernels, so I want to downgrade to 2.6.19, and also  I don't have one in the /pkg directory. Thanks Last edited by Sir_L

  • Soap sender adapter - Mapping problem

    Hello gurus, Right now i am working on the scenario in which requirement is something like this : Soap to RFC synchronous scenario. I want to make sure that if RFC is not responding in 40 sec. It should get timed out and it after that XI should get t

  • Dynamic From Menu with Sub Menu

    I am trying to create a form where it has a drop down menu that depending on what you select, will change the 2nd drop down menu. For example, you would select one of the 50 states in the first one (data pulled from Mysql) then then when you select a

  • How is Output determination done for a PO ??

    Hi How is Output determination done for a PO ?? I need the O/P to the vendor sent in the form of a PDF file. is it possible !! cheers Maruthi

  • I can't update ipod touch to new 4.2

    I can'tupdate my ipod touch to new 4,2