ABAP Table Type in RFC Callable Object in GP
Hi Experts,
I have created a RFC in ABAP that has as one of its export parameters a table type. I am trying to call this RFC in my GP process. So I created the external service callable object as required. However, when I look at the output parameters for the callable object, the table type is not shown as a list (the is list column is not checked for this parameter).
Do you know if ABAP table types is supported/recognized by GP as a list? or is this a limitation?
Any help is welcomed!
Thanks in advance.
Robert
Hi Aneel,
You can try the following:
e.g.
for j = 1 to ActiveCell.SpecialCells(11).Column
oParam4.Rows.Add
if j=1 then oParam4.Value(j, "NAME") = ActiveSheet.Cells(1,j).Value
if j=2 then oParam4.Value(j, "TYPE") = ActiveSheet.Cells(1,j).Value
if j=3 then oParam4.Value(j, "NUMB") = ActiveSheet.Cells(1,j).Value
next j
Regards,
ScriptMan
Similar Messages
-
How to populate internal table( varaible of ABAP table type) in Excel VBA?
Hi,
I am trying to update a database table from excel using a VBA Macro.
I am able to connect to SAP and able to read data from SAP using a RFC. Similarly after updating certain values, i want to update a table in SAP.
Below are the steps I am doing apart from basic settings.
Getting the reference of the SAP TABLE type from RFC fucntion module
' Call RFC
Set MyFunc = R3.Add("UPDATE_TVARVC_VIA_RFC")
' Get reference and Values TVARVC
Set oParam4 = MyFunc.Tables("TVARVC")
2. Loop over the active cells and populate oParam4
" add values as below
oParam4.Rows.Add
oParam4.Value(1, "NAME") = ..................
oParam4.Value(1, "TYPE") = ..................
oParam4.Value(1, "NUMB") = ..................
Do it for all columns in the table line.
My query is how to identify active cells and make the above code dynamic in step 2.
Thanks in Advance,
Best,
AneelHi Aneel,
You can try the following:
e.g.
for j = 1 to ActiveCell.SpecialCells(11).Column
oParam4.Rows.Add
if j=1 then oParam4.Value(j, "NAME") = ActiveSheet.Cells(1,j).Value
if j=2 then oParam4.Value(j, "TYPE") = ActiveSheet.Cells(1,j).Value
if j=3 then oParam4.Value(j, "NUMB") = ActiveSheet.Cells(1,j).Value
next j
Regards,
ScriptMan -
Parameter Mapping with RFC Callable Object not working
Hi Folks
Scenario
I have a process scenario like this
Interactive Form Callable Object A -triggers> Process [Interactive Form Callble Object B -> Interactive Form Callble Object C -> RFC Callable Object ]
All the forms A, B, C use same form template, different sections of it lets say i, j and k are filled by different guys.
Now my parameter mappings are as follows -
a) Page level meeting between B & C called P Map.
b) Process parameter mapping with Form A and appropriate section of P Map lets say section i
c) fields of Form C are mapped to RFC callable object fields
Problem
The data filled in Form A [section i] disappears when I open and see the Form B.
If I remove the mappings of fields of Form C with RFC callable objec fields, I am able to see it.
Has anyone faced it before!Hi,
This is a known issue on SP10 and it will be fixed in the next patch for SP10.
Hope this helps!
Best regards,
David -
Hi All,
I am trying to create one RFC. But in that RFC, I wish to use Table types as import and export parameters completly avoiding Tables tab. Will that effect the performance of RFC if I use Table types. If Yes, Please give clear clarification where it effects the performance.
Also please let me know how the performance of the RFC is effected if we use Tables tab.
Thanks,
Ravee.."I wish to use Table types as import and export parameters completly avoiding Tables tab."
I'm not sure if Tables can be avoided, if just using regular ABAP. I know that the Importing tab would not work when I tried it (under vrs 4.6b).
Because you are launching separate processes, in separate memory areas: any parameter you use in RFC has to be known by the calling and the callee functions/programs. This means that you need a common reference. If you have more than one function module in a function group, you can use the TOP file and a 'Z' data dictionary structure.
I hope that this helps,
Dan Perecky -
Load balance for HTTP Connection to ABAP System (Type H) RFC connection
Experts,
For proxy we are using HTTP Connection to ABAP System (Connection type H) RFC connection in PI to get connected to ECC. I only see the option to use Target host in the Target system settings than Load balance option. In general ABAP Connection (Connection type 3) has Load balancing status option in Target system settings.
My requirement is I should use a logon group with the message server when PI connects to ECC. How can we achieve this? At the moment I can only use the Central Instance or any dialog server (App server) in RFC but not a logon group.
Thanks in advance.
MaheshHi Naga
Could you check the link below?
http://help.sap.com/saphelp_nwmobile71/helpdata/en/47/c5935087b62d66e10000000a42189c/content.htm
https://service.sap.com/sap/support/notes/1040325 -
Whats is table type ? whats the use of it in abap?
hi,
i am ahmed abap fresher,
i want to know what is table type and whats the use of it. at what point/situation we utilize this table type.Hi Ahmed ,
Table is apart of data dictionary.
Table is a sort of container where we store data.
For eg. you want to store customer record in the database.Now you will store that customer record against specific fields of the applicable table.
You can create or see table by means of transaction code se11.
There are 3 typesof tables available in SAP ABAP:
1. Transparent table
2. Pool table
3. Cluster table.
Transparent Table:
A physical table definition in the database for the table definition which is stored in the ABAP Dictionary for transparent tables when the
table is activated. The table definition is translated from the ABAP
Dictionary to a definition of the particular database.
Pooled table:
Pooled tables can be used to store control data (e.g. screen sequences,
program parameters or temporary data). Several pooled tables can be
combined to form a table pool. The table pool corresponds to a physical
table on the database in which all the records of the allocated pooled
tables are stored.
Cluster table:
Cluster tables contain continuous text, for example, documentation.
Several cluster tables can be combined to form a table cluster. Several
logical lines of different tables are combined to form a physical record
in this table type. This permits object-by-object storage or
object-by-object access. In order to combine tables in clusters, at
least parts of the keys must agree. Several cluster tables are stored in
one corresponding table on the database.
See the documetation at:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f083446011d189700000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm
Reward if useful ...
Regards ,
Shankar GJ -
ABAP Table for Integration Directory Objects
Hi
Is there any ABAP table, which stores the runtime objects, communication channel, It's status, Service etc.
Where you can find out status of each channel and the channel type used within the ABAP stack in Data Dictionary table.
Replies apprecriated.
SwetankHi Paresh,
To view the status of adapters you can use RWB.
You dont need to write an ABAP report for this purpose.
RWB->Component Monitoring->Click on Displaye with status "all".
Then..click o Integration Server->Adapter Engine
click on 'Adapter monitoring' in the the 'Status' tab page of the window at the bottom of the screen.
This will launch a widow with status details of all the monitors.
Hope this info helps you.
praveen -
Hi All,
I have an object type defined as:
create or replace type test_object as object
item varchar2(50)
, countofitems number(8,0)
And I have a table type defined on this object as:
create or replace table test_object_table is table of test_object;
I am populating the object into them as:
test_object.item := <somename from table>;
test_object.countofitems := <count value>;
test_object_table.EXTEND(1);
test_object_table(test_object_table) := test_object;
The above logic is performed inside a loop statement which has a select query in it. The loop's select query gets the count of each item - one per loop.
Is there anyway, after my loop ends and table type is populated, to sort the data inside in DESC order of countofitems?
Thanks,
ChaitanyaHi,
yes my data comes from a cursor but that cursor selects counts for one item type at a time only---->
meaning, my cursor is inside another loop statement which provides one value at a time to be used in the WHERE clause.
so essentially, for every loop i would get the counts for 1 item type. each time i am inserting the data into my table type.
if my cursor fetched counts for all items at once, then i could have sorted it , but that is not the case here.
Is there any way I can sort the data once the table type is populated?? -
Hi,
The following is a public attribute in the class CL_MEREP_SYNCBO_META
data FIELD_GROUPS type MEREP_TSYNCBO_FIELD_GROUP read-only .
MEREP_TSYNCBO_FIELD_GROUP is a table type having ref type CL_MEREP_SYNCBO_FIELD_GROUP (which is a class)
What is the meaning of such table type?
Regards,
RaviHi Ravi,
It simply means that any data object that is declared using this table type will be able to hold the objects (actually object-references) of that class.
You can think of it as an array of pointers (to objects).
Regards,
Anand Mandalika. -
Is there a table type ATTRIBUTE that can be defined in an ABAP object?
Hi. Within SE24 on the Attributes tab, is there a way to define an attribute of type TABLE? If you put in STANDARD TABLE as the reference type, it does not allow a generic table type.
What I want to do is pass in a standard table type to my constructor, and then assign it to a private table attribute in the object.
I do not want to assign the table to a local variable of the constructor. I want to store the table in a private object attribute. I don't mind if the attribute type is a specific table type (such as KNA1), I just want to be able to assign the constructor's table parameter to some type of private object attribute.
Thanks.
BrendanHi Brendan,
No they are not same. A modelled class or method or an attribute will not have any realtime appliaction. Say for example you want to provide a method or Attribute which may be used in future or expected to be used in future, then you declare that method as Modelled. YOu can execute such a method or access such an attribute.
Abstract Class is an executable class...but it will have some methods with no implementation. The implementation of such methods will upto the user who is accessing that class.A class defined as ABSTRACT cannot be instantiated, that is, you cannot use CREATE OBJECT with reference to the class. Instead, you can only address the class using its static components or its subclasses. The major purpose of an abstract class is to serve as a template for subclasses.
If a class contains abstract methods, that is, method declarations with the ABSTRACT addition, the whole class must also be abstract (that is, have the ABSTRACT addition), since a class may not be instantiated if it has unimplemented methods. Equally, if a subclass does not implement all of the abstract methods of its superclasses, it must itself declare them abstract.
Regards,
Vara -
Exception in executing External Service type Callable Object
Hi
I was trying to test a callable object of type external service. I have used the bapi BAPI_FLIGHT_GETDETAIL. But while executing I was getting exception like
java.lang.IndexOutOfBoundsException: Index: 5, Size: 3
at java.util.ArrayList.add(ArrayList.java:371)at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.addElementSilently(Node.java:1991)at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.addElement(Node.java:2003)at com.sap.tc.webdynpro.progmodel.context.Node.doAddElement(Node.java:676)at com.sap.tc.webdynpro.progmodel.context.Node.addElement(Node.java:644)
Anybody knows the reason?
Cheers
SudipHii
I forgot to mention that if the RFC has a structure as output parameter it doesnt get displayed but if the parameter in RFC is string value it works fine.Please Help Urgently
Regards
Ishita -
Hello all,
I have a structure that also have two members of ABAP type String (yes, that string, not char255 or so ). When I declare a table type inheriting from that type, everything is quite fine, so it seems table having dyn. Strings is okay as far as I do not want to do RFC with it.
Now, when I create a function module and want to use that table type, the compiler gives me that error message upon syntax check:
>>
when using "WITH HEADER LINE", the line type cannot be a table type
<<
Now, that is no ABAP that I have written but the auto-generator for the include. That line it complains, there is just no definition with a header line. So, is using the String type possible at all? I think this is an error having indirectly to do with it, since I know the difference on table with and without header line/work area and so...
Btw.: this is a 4.7 Release I am talking about.
Thanks and regards,
TimoHi,
it is possible:
1. define your structure ZZ_DDIC_STRING with strings in DDIC
2. define a table type ZZ_DDIC_STRING_TAB using this structure ZZ_DDIC_STRING
3. define a RFC FM with Imp/Exp-parameters (not a Table-Param) using this table type ZZ_DDIC_STRING_TAB
4. call the FM:
DATA: lt_string_tab type ZZ_DDIC_STRING_TAB,
ls_string_tab type line of lt_string_tab.
ls_string_tab-string1 = 'some text'.
ls_string_tab-string2 = 'some more text'.
append ls_string_tab to lt_string_tab.
CALL FUNCTION XYZ
DESTINATION 'MY_DESTINATION'
EXPORTING
I_STRING_TAB = lt_string_tab[]
IMPORTING
E_STRING_TAB = lt_string_tab[]
This will work with almost any deep structure too.
Regards,
Juergen
P.S.: pls. post Reward Points if this was usefull! Thanks! -
Web Dynpro Callable Object : use of RFCs
Hi All,
I've to create a callable object using Web dynpro.
In this web dynpro to display a table data populated by calling RFC and we need to select one row of the table and sent it as output parameter.
My question is how we gonna set the getDescription Method in this case for creating the Callable Object?
How we define the execute Method in the Interface Controller.
Where I should bind the Model to Controller (Component Controller / Interface Controller)
Can someone explain how we gonna use RFC in Web dynpro while calling it as Callable Object.
Thanks
SrikantHi,
You need to have the SCs for local development of Web Dynpro callable object.
Refer the following documents for more details:
<a href="/people/andre.truong/blog/2006/06/26/working-with-the-apis-of-caf-guided-procedures-nwdi-or-local-development with the APIs of CAF Guided Procedures: NWDI or Local Development?</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f7be53bb-0b01-0010-1c96-be3cb6799c1b">How to Get NW04s SP7 Guided Procedure APIs for Local Development</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814">Implementing a Web Dynpro Callable Object</a>
Let me know if this solves your issue.
Thanks,
Dipankar -
Portal System Object - ABAP User Type?
Hi
I've created a System Object, which will be used to connect to a NW '04 system. I'm using UIDPW as the Logon Method, and have defined the relevant user mappings.
When I test the connection using a normal Dialog user in the ABAP backend, everything works perfectly. However, when I use a Communication user, the connection test fails.
Does anyone have any suggestions on getting the connection to work with a Communication user? What is the recommended ABAP user type for backend connections? I assume Communication user is recommended, as this doesn't allow dialog login, etc.
Thanks
StuartHaving done further investigation, it seems the problem is not with the user type. I'm able to connect when assigning the SAP_ALL profile to my Communications user (which I obviously don't want).
What permissions must I assign to this user to allow it to log in? All I've done so far is assign permissions on the S_RFC authorisation object to allow RFC calls to my function group.
Do I need to assign additional login permissions? -
Exposing an RFC-Enabled Function Module as a Callable Object
Hi All,
I'm creating a GP Process based on the Exposing an RFC-Enabled Function Module as a Callable Object Tutorial. I'm using the error handling through a structure, the RFC works perfectly when I run it in test mode and the RFC doesn't retrieves exceptions at the structure, but when an error/exception must be returned at the structure, the test is showing this message (and also is not returning any error at the structure):
"Process exception occurred" and "Callable object implementation did not return output parameters".
What can be happening?
I'll appreciate a lot your help, regards,
María Margarita MonteverdeHi,
Thanks a lot for your answer. My scenario is very simple :
1) the first callable object contains a web dynpro form where user can enter an ID, a name, and other informations
2) the second gets the output parameters of the first step and execute the BAPI_FLCUST_CREATEFROMDATA to add the row into the SCUSTOMER table
The problem is that no row is added. I can integrate BAPI wich allows to read data, but when I try to write (create or change) I cannot see any change.
Do you see my problem now ?
Regards,
Michael.
Maybe you are looking for
-
How to connect to HR sample database using ODBC?
This is for Oracle Express running on Ubuntu 8.10. The SQLConnect ODBC call requires datasourcename/dsn, userid and password as parameters. What are these for the HR sample database?
-
Why can't I copy files from a Mail Archive folder ON MY MAC to another folder?
I created a folder ON MY MAC named Archive. Now I want to move all the email to another folder and all I get is an error message. I am aware that it was a mistake to name the folder Archive, but that's in the past. I have tried exporting, but not all
-
Does anyone know where you can find the API for the LDAP connector? I'm using the getResourceObjects method and it's barking about the attrNames parameter being null. Never had to set this attribute before with the LDAP adapter, and also the connecto
-
Lines with pixelated corners..
Whenever I have an open application, there is always this weird border, it consists of about four thin black lines closely spaced on the sides, but in the corner, there are dots, about 1-2 pixels... Also sometimes when the computer wakes up from slee
-
Using F keys in Windows XP to control itunes
Anyone know of a way to use the function keys on my PC (F8, F9, etc.) to control iTunes? I also use a Mac and love being able to pause, play, and skip tracks using the keyboard. Anyone know of a tool or way to customize the F keys on my PC laptop to