Passing & receiving C structures in Forte

Hi,
I need to pass a C structure to an External Connection and receive it as
well.
Thanks for the help in advance
Bala Cuddalore
Sage Solutions
425 Battery
Suite 4B
San Francisco CA
[email protected]

Hello,
We cannot pass it please check the FM parameters datatype declare one variable of the that parameter type and move your parameter type value to FM parameter type variable and pass the value to FM.

Similar Messages

  • Mandatory fields passing to the structure POCOND in BAPI_PO_CREATE1

    Hi,
    Please help me that what are the mandatory fields passing to the structure <b>POCOND</b> in <b>BAPI_PO_CREATE1</b>. I am using BAPI to create the PO based on certain conditions. But after creating the PO the condition values are not updating properly. Currently i am not passing any values to the structure.
    Your solutions should be highgly appreciated. Please help me this issue as early as possible
    Regards,
    Uday

    Hi ,
    In my current requirement i m using BAPI_PO_CREATE1 to create the PO.
    I am passing all the line item detials to the BAPI.
    For some of the material rounding value are maintained in MM02 on MRP view.
    If the line item material maintains rounding value then instead of taking the PO item quantity, it is taking the rounding value that has maintained in MM02. So to control that i have done the forceful updation using the update statement in one of the exit on BAPI_PO_CREATE1.
    Here i m facing one problem. Now i can able to udpate the PO quantity correctly.
    But the Condition value maintained in the Condition View still taking the rounding value for calculating.
    To control this also i am using update statement on KONV table and the field is KAWRT. But this value is not updating.
    Please help any one that in which table the the condition value is going to update and wht are the criteria to update the  Condition Value field.
    <b>Points should allocate for suitable answer.</b>
    Thanks
    Uday

  • Error in method READ_CONTAINER_C when passing string to structure in Unicod

    Hi All,
    We are upgrading system from non-unicode to unicode.
    While passing a string to a structure ( MOVE RECEIVERS-RECEIVER TO RECEIVER_OBJECT, where
    RECEIVERS_RECEIVER = string
    RECEIVER_OBJECT = structure )
    following error is thrown :
    "RECEIVER_OBJECT" and "RECEIVERS-RECEIVER" are not mutually convertible in a unicode program.
    To resolve this error, I've used :
    CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>READ_CONTAINER_C
    EXPORTING
    IM_VALUE = RECEIVERS-RECEIVER
    IMPORTING
    EX_CONTAINER = RECEIVER_OBJECT
    EXCEPTIONS
    ILLEGAL_PARAMETER_TYPE = 1
    others = 2
    But I observed the problem of inccorect values for numeric fields. For example suppose the string contains the value 'abc1234' and we use CL_ABAP_CONTAINER_UTILITIES=>READ_CONTAINER_C to transfer this string to a structure suppose, S1 with 2 fields namely field1(3) type c and field2 type i. then field1 gets the correct value i.e. 'abc' but field2 gets incorrect value and not '1234'. Can anyone provide the resolution? Prompt reply will be highly appreciated.
    Thanks.

    There is no error in this method. The 'problem' is caused by the fact that you are combining character type and Type I in your parameter which has generic type CSEQEUNCE.
    It is advised that you  'copy' your data component by component in Unicode.

  • How do I pass a "deep structure" to an RFC?

    Okay, I am expecting to receive a table of data for processing from XI.  This data will be calling a BAPI to post Incoming Invoices.
    Each record in the table represents a single Incoming Invoice and will be a "deep structure."  The deep structure will consist of a structure of Header data (occuring once per Invoice) and a table of Line Item data (occuring one to many times per Invoice).
    After defining my deep structure, I assigned it as an IMPORTING parameter in my remote-enabled function.  SAP didn't like it, so I created a table type (with a line type equal to my deep structure) and assigned it to the TABLES parameter.  SAP came back and told me that deep structures weren't allowed with RFCs!
    Yikes!  I read SAP's recommendation about creating some sort of foreign key, and splitting the data into separate tables (breaking apart the deep structure).  I assume this means that I could read an Invoice Header Data table, then go read the Invoice Line Item Data table for all records matching whatever "key" I designate -- correct?  Is this what I am resigned to do, or is there a way I can keep my deep structure?
    Thank you.  All helpful posts receive points!
    Dave

    1st responder --
    LIKE isn't an option in the "Type" drop-down box; I tried entering it, but SAP will not accept it.  This is all within my function module, with the various tabs where I can specify IMPORT, TABLES, etc. (the parameters for my function).  Is there some other place I should be doing that?
    2nd responder --
    What do you mean by passing it "separately"?  I'm not sure I understand.

  • File content conversion for receiver file structure(fixed length)

    Hi Experts,
    I am tryinng reciver file FCC  for the following strcuture. it seems I have done some wrong configuration,and failing at conversion level. so experts please help me to get the correct content conversion parameters.
    note : ( * Nothing can be altered at repository side * ) and the fields are fixed in length so the file needs to be fixed lentgh format.
    Tree--Occ--
    TYPE
    SBLSALDATA--1..1--
    SBLSALDATA
    SALDATA----
    1..1
    Headrec----
    1..1
    XXX----
    1..1
    XXX----
    1..1
    XXX----
    1..1
    TotalDatarec----
    1..Unbounded
    YYY----
    1..1
    YYY----
    1..1
    YYY----
    1..1
    YYY----
    1..1
    LASTREC----
    1..1
    ZZZ----
    1..1
    ZZZ----
    1..1
    Thanks in advance.

    I have done in the same procedure as in above link. its not working either.
    My receiver structure looks like below.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:TaxData xmlns:ns1="urn:XXXXXXXX">
    <EmpTaxDat>
      <Header>
       <A/>
       <B/>
       <c/>
      </Header>
      <Detail>
       <D/>
       <e/>
       <f/>
      </Detail>
      <Trail>
       <g/>
       <h/>
       <i/>
      </Trail>
    </EmpTaxDat>
    </ns1:TaxData>
    Edited by: Harish.k on Jan 2, 2010 2:15 PM

  • Receiver FCC Structure For Header and Trailer

    Hi Guys ,
    I need to go for receiver FCC for header and trailer  in PI .How the FCC in communication channel needs to be configured if I am taking a separate node for header and trailer in mapping .Output of the file should be as the file attached.
    Thanks.
    Regards.

    Hi,
    If you are using File communication channel as a reciver you can go with FCC.
    Use record set structure as : Header,detail,trailer.
    https://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Otherwise if you are going for SFTP to create the file ... follow the Indrajit suggestion..
    Still facing any issue.. Please let us know..
    Thanks,
    Sreenivas...

  • Pass list of structure as input parameter to visual composer iview

    Hi
    In my application, I need to create an iview which has a table view. Start point has same structure as table columns. Now I deployed this iview and assign to every user core role. Now i am using in in my GP. It is getting a list of structure as input but it is showing only one row in the table.
    Anyone has idea about this.
    Regards
    Saurabh Garg

    Hi Saurabh,
    How did you do for passing at least one row ?
    Can you explain that ?
    Thanks a lot
    btw, Did you succeed to pass several rows ?

  • Dynamic passing of the structure in LVC_FIELDCATALOG_MERGE

    Hi ABAP Gurus,
    I'am doing report to read cluster results
    My requirement is :
    The report uses LDB -PNP in the selection screen in addition to that Clusterid is passed and what ever cluster id we select for the pernr that cluSter id results has to show in the report output
    The report has to dynamically change in the output (whole structure of the cluster id) how to pass in selected cluster id (what we selected in the selection screen) in the function module
    LVC_FIELDCATALOG_MERGE
    Importing
    I_STRUCTURE_NAME -  (HERE I WANT TO GET THE STRUCTURE OF THE SELECTED CLUSTER ID IN THE SELECTION SCREEN)
    Thanks and Regards,
    Deepthi.

    Recently I have been working on generic cluster access and I must say the task was challenging. What I've discovered is:
    -  generic access as per cluster ID is impossible via [IMPORT ... FROM DATABASE...|http://help.sap.com/abapdocu_70/en/ABAPIMPORT_SHORTREF.htm] -> in order to create a fully flexible access you would have to go for pure dynamic program generation by means of [GENERATE SUBROUTINE POOL|http://help.sap.com/abapdocu_70/en/ABAPGENERATE_SHORTREF.htm]
    - as there are houndreds of available cluster IDs it is very difficult to determine those relevant to particular employee. For just one table PCL2 there are multiple of unknown to me areas which are hard to distinguish from those (un)relevant to employee. First look at fixed values from domain RELID_PCL2 gives the feeling what we are struggling with.
    - focusing on all common clusters (only from PCL2) like CU, RX, ZL, B2, PS, PT can narrow the search result but still is a lot to be handled by one program
    - eventually looking deeper only on RX and possibly B2 areas seemed to be the best choice (as mostly we use only those - at least I do). So I focused on this area as generic payroll result can be easily extracted. What I needed was  extracting relid for given EE molga, then py result type for this relid, the simply using FM PYXX_READ_PAYROLL_RESULT to access py results itself for given cluster directory entry (table hrpy_rgdir )
    - the final challenge was how to show the results in user friendly form. As the result table I had was not only nested but deep too it wasn't so obvious. Luckily to me I was using Web Dynpro which allows to create table popins (showing the table within the table) but I don't think there is corresponding GUI control in SAP GUI. So considering how you want to show this data is really not an easy thing to do.
    - As for the structure of payroll result itself (or rather structure of each of its components) can be delivered using RTTI but you will also sweat a bit before getting that done.
    To conclude. There is no easy way of accessing clusters by just giving its RELID Even though you would focus on some specific part, it will take you more time then you expect at the beggining. So I would try to suppress the tempation for a moment and consider all these discussed (and those which I didn't think of) aspects.
    Regards
    Marcin

  • BAdI - AC_DOCUMENT / data passing for nested structures

    Hi all.
    I need your help for this scenario:  
    I used this to pass value of MM field to FI field from transaction MIGO.
    Our company placed field in EKKN-WEMPF to BSEG-ZUONR.
    For this one option was:  BAdI AC_DOCUMENT
    Questions: 
    1.  Nested structures - passing of data:
    First problem encountered was with the reading of data from nested structures and passing them to nested structures as well.  How to do this?  I have used a certain declaration but any input will be much appreciated. 
    2.  When I activated my BAdI, it says error on FI Interface,
    specifically on AWREF and AWORG fields. 
    It is currently blank.  Can I use the values in IM_DOCUMENT to pass to EX_DOCUMENT? 
    (What is a good way to do it since simple syntax does not allow for passing of data bec. structures are incompatible, and added complexity, it has nested structures.)
    If you have sample code for this, it would truly be helpful. 
    Thanks and God bless!

    Hi,
    Check that for which condition the message is triggering.
    Try to check the condition.
    Regards
    Sandipan

  • Passing the Z-structure to FM F4UT_RESULTS_MAP

    Hi all,
          I have a requirement where the std Product search needs to be modified wherein i need to add a price field for some materials whcih i will maintain in a Z table(custom table for the materials and its price).
    Now my problem is that the o/p structure is taking the fields from some view (where i dont have nay price field!)...When i pass my structure to the Display FM "F4UT_RESULTS_MAP" it doesnt consider my custom structure for display....
        is it possible to change the o/p structure for the Product search display???Has anybody tried thsi before???
    Any help is appreciated.
    Thanks & regards,
    Disha.

    Hi,
      I meant to say that  whenever my  z-search is called,at the start itself the o/p structure fields are taken from some std table view...(that is it seems static)..
      So at the end while displaying when i pass my own z-structure,wherin i have all new fields which are not in the std view,its not taking that....The field properties are set at the beginning so if i am using any other fields(other than those which are in the std table view)...
    regards,
    Disha.

  • Regarding receiver side structure

    Hi Friends,
    Please help the below question.
    Q : Who gave the Receiver side  DATA TYPE Structure to XI Developer?Or XI Developer will analyze him/herself of that structure ?
    Thanks & Regards
    Muralidhar

    HI,
    Receiver side Data type is based on various factors as below,
    1. The Receiver Side Format of the data expected by user will make certian factors clear about the Data type
    2. What is the receiver system, if its Database table then it have specifc structure...etc.
    You need to sit with Receiver Side User and have to analyse the expecetd output and then accordingly design the Message structure ie.e Data type
    Thanks
    swarup

  • Passing RFC output structure to another RFC input structure.

    Hello Friends,
    I have 2 views (i.e. SearchView & ResultView). In search view, I pass input parameter (PO Number) to BAPI_PO_GETITEMS and get back the output table PO_ITEMS correctly. I display this table in the ResultView correctly. Now, after displaying the order details, I need to pass this input to BAPI_GOODSMVT_CREATE in its GOODSMVT_ITEM structure to create a Good Movement Note.
    Can somebody help me as to how could I pass values from PO_ITEMS to GOODSMVT_ITEM structure?
    Thanking you in advance,
    Maulin

    Hi,
    You can pass the input of BAPI_PO_GETITEMS  to the BAPI_GOODSMVT_CREATE .
    For this u need to first understand and read the BAPI throughly, means u must read how your two bapi's are working and what are the relation ship b/w them.
    Also, i assume that in a ur webdynpro application u already imported all required BAPI and just simple take the user Input from the context and pass it to the next Bapi.
    Hope so it can solve ur pb,If there is any more query, put in forum.
    Thanks
    Dheerendra Shukla

  • Receiver JDBC structure and Mapping

    Hello everyone,
    Scenario - WS (async) -> PI 7.1 -> JDBC (sync) -> PI 7.1 -> WS (async)
    My question is - In my request structure (from WS), I have a field "Transaction ID". This field is not present in the target DB, but when I get the response back from DB, I need to insert this transaction id in the response back to WS.
    I am aware that there is an option in the request query (passing parameter and getting back the same value) and this can be achieved through XSL mapping. Can this same functionality be achieved through Graphical Mapping?
    In other words, if I pass Transaction Id in my request query, can I get it back in the response? Just to remind, Transaction Id is not available in DB.
    Any help / suggestion will be highly appreciated.
    Thanks,
    Abhi

    Abhi,
    Although your post is an old one, but since it is not yet closed, i assume that you are still working on this.
    I believe you have a view from where you are doing the select. You can give it a try with the following query -
    SELECT V1.<your other fields that you want to select>, V2.TRANSACTIONID,                        
              FROM <ViewName> V1,
                              (SELECT "TRANSACTIONID" AS TRANSACTIONID FROM DUAL) V2
              WHERE <Condition>
    This will simply create a temporary view V2 for holding the transaction id, and it will pick the value that you are passing with each message and in the response to the SELECT, it will always bring back the Transaction Id that you passed.
    I would recommend that you use an XSL Mapping for this. Hope this helps.
    Regards,
    Neetesh

  • Passing 2 input structures into 1 output structure

    I have a BPM where I have data from 2 input different structures that needs to be mapped and passed to the same output structure at the same time.  Is this do-able through the BPM builder or the mapping builder or what?

    As i understand you have two inputs to be mapped to one output structure. You can do this in your BPM using Transformation step. You need to do multimapping to achieve this.
    Check this..
    http://help.sap.com/saphelp_nw04/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm
    hope this helps...
    Regards
    Anand

  • Passing array of structures back to java from c

    I have a DLL in C that I'm calling from a Java servlet. The C DLL creates a bunch of arrays of structures that I would like to be able to bring back to the Java servlet and process further. How difficult is this and does anyone have anywhere to point me that shows how it can be done?

    1. In general, java knows nothing about structures. So you have to define eqquivalent java classes, and write code to move the data from C structs into the classes.
    2. JNI supports definition of arrays of objects, which can be passed back from the dll.
    You may find some code generators that will help you with the
    CStruct->JavaObject definition. This may be a blind alley, but check out JACE.

Maybe you are looking for

  • How can I put an appointment on multiple calendars at once

    When I create a new calendar entry on my iPad or iPhone, I would like to add it to both my work calendar, which is an Outlook calendar synced to my Apple devices, and to my personal iCloud calendar, but iCal doesn't let me choose two calendars--only

  • Help needed in search help exit

    Hi Experts,    I have used a search help exit in IL03 transaction to include a field in a particular search tab. I have written the code in timepoint PRESEL1 and it is showing the search field in that search tab when I directly enter into that tab. B

  • Problem closing iTunes - iTunes.exe hanging.

    I have been having a problem restarting iTunes EXCEPT on a reboot or by manually ending the iTunes.exe process. iTunes.exe is hanging.....it is not using any CPU, but memory usage reduces to about 95,000k, and, of course, I have to end the process be

  • Bulk upload in SAP DMS

    Hi Can anybody explain me how to do bulk upload in SAP DMS. I want to prepare the metadata (with original file path) in Excel sheet and it has to be uploaded in SAP DMS along with original file. Thanks & Regards Harrshini Edited by: Harshini.A on Sep

  • Add child to root (PL/SQL PARSER) Oracle 8.1.7

    Hi all, i have two dom documents, i need to add to the root of the first one a subtree of the second one. Could someone give me an example of how to do that ? Thanks.