Regarding wd abap table
Hi all,
I am working on a wd abap component in which i have to populate a table in which each row has a different value which are fetched from database table.i want that in each row i want different values .like suppose my table has two coloumn and in first row of first coloumn i want to display the text "gender" and in the same row in second column i want to fetch a "value of gender" from database table.
similarly in second row of first coloumn i want to display a text " date of birth" and in the same row of second column i want to get its corresponding values.so please tell me how to do itin detail that is how to bind for each and every row and how to get the particular values.
send me the code along with proper commenting which will be easy for me to understand.
thanking you all in advance.
hi,
It is possible.
If u keep a nested node structure. Like
First node<parent node in context>
--->1st node under First node <bind this node to a column>
This node contains the header value
>2nd node under First node<bind this node to rest of the column in table>
This node contains table value.Which will be displayed in table.
I hope this will solve your problem.
Please have a look at this
Re: Row / line number as first column in table
This link may solve your doubt.
Regards,
Ramanan
Edited by: Ramanan Panchabakesan on Sep 2, 2008 10:08 AM
Similar Messages
-
Dynamic configuration- Is file name stored in any abap table in PI
Hi.
Is there any ABAP table in XI containing the dynamic configuration's xml of a message.
For any file scenario Can I get the file name from any of the abap table in PI
Regards,
DeepakInteresting ABAP tables in XI
Interesting ABAP tables in XI Part I
Regards,
Phani -
How to handle BLOB field in receiver JDBC adapter into ABAP table
Dear Experts,
I am working in a synchronous scenario with Sender ABAP Proxy to Oracle Database as receiver via SAP PO 7.4.I will be calling a stored procedure view with fields ID, NAME,Age,*** and BLOB (Image binary).
1. The response from Oracle Database field BLOB is to be stored in ABAP table.Would I have to write any JAVA program to read the BLOB or the receiver JDBC adapter will handle it and store in a table by using ABAP proxy once it reaches ECC.
2. If yes, would the JAVA program have to deal with other 4 fields.
3. Can I use a UDF mapping to this BLOB field.
Regards
Rebecca...Dear Praveen,
Thanks for your response...
Please correct me if I am wrong.
1. For 1-1 response mapping for BLOB field, I will use just use the below UDF code.
public static byte[] hexStringToByteArray(String s) {
int len = s.length();
byte[] data = new byte[len / 2];
for (int i = 0; i < len; i += 2) {
data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)
+ Character.digit(s.charAt(i+1), 16));
return data;
2. ===Using the byte data, create binary attachment in mapping for abap proxy response===
Could you please share how to create the binary attachment.. I am not clear
Regards... -
hi all,
how to retrieve the data using logical database PCH.we cant use rp-provide here.
so can any one of you give suggestions on this it will be good to have an example prgm using pch,so can any one send me.
i have used select stmts to retrieve the data but while taking data its not taking.Hi
HR:
HR deals with the INFOTYPES which are similar to Tables in General ABAP.
There are different ways of fetching data from these infotypes.
There are different areas in HR LIKE Personal Admn, Orgn Management, Benefits, Time amangement, Event Management, Payroll etc
Infotypes for these areas are different from one another area.
storing of records data in each type of area is different
LDBS like PNP are used in HR programing.
Instead of Select.. we use some ROUTINES and PROVIDE..ENDPROVIDE.. etc
and in the case of Pay roll we use Clusters and we Import and Export them for data fetching.
On the whole Normal ABAP is different from HR abap.
For Personal Admn the Infotypes start with PA0000 to PA1999
Time Related Infotypes start with PA2000 to PA2999.
Orgn related Infotypes start with HRP1000 to HRP1999.
All custom developed infotypes stsrat with PA9000 onwards.
In payroll processing we use Clusters like PCL1,2,3 and 4.
Instead of Select query we use PROVIDE and ENDPROVIDE..
You have to assign a Logical Database in the attributes PNP.
Go through the SAp doc for HR programming and start doing.
http://www.sapdevelopment.co.uk/hr/hrhome.htm
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
sites regarding hr-abap:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
http://www.atomhr.com/training/Technical_Topics_in_HR.htm
http://www.planetsap.com/hr_abap_main_page.htm
You can see some Standard Program examples in this one ...
http://www.sapdevelopment.co.uk/programs/programshr.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification
http://www.erpgenie.com/faq/hr.htm.
http://www.planetsap.com/hr_abap_main_page.htm
http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
These are the FAQ's that might helps you as well.
http://www.sap-img.com/human/hr-faq.htm
http://www.sapgenie.com/faq/hr.htm
http://www.planetsap.com/hr_abap_main_page.htm
http://www.atomhr.com/library_full.htm
HR Long texts Upload
Look at the below link
BDC - hr maintain text
sample code
START-OF-SELECTION.
GET pernr.
rp_provide_from_frst p0000 space pn-begda pn-endda.
if pnp-sw-found EQ '1'.
READ TABLE p0001 WITH KEY pernr = p0000-pernr.
if sy-subrc = 0.
write : p0001-plans. " earliest.
endif.
endif.
rp_provide_from_last p0014 space pn-begda pn-endda.
if pnp-sw-found EQ '1'.
READ TABLE p0014 WITH KEY pernr = p0000-pernr.
if sy-subrc = 0.
write : p0014-LGART. .
endif.
endif.
<b>Reward points for useful Answers</b>
Regards
Anji -
Access ABAP Table using Java (NWDS/JCO)
All,
I am trying to setup a jco connection from java program through NWDS to ECC abap table.
However I am getting the following error in NWDS:
Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\Program Files\Java\jdk1.6.0_45\bin\sapjcorfc.dll: Access is denied]. java.library.path [C:\Program Files\Java\jdk1.6.0_45\bin;.]
and a parity error on my system:
"Parity blocked an attempt by javaw.exe to run sapjcorfc.dll because the file is not approved. If you require access to this file, please contact your system administrator. Scroll down for diagnostic data."
Here is the Java code...per the SAP website:
package com.sap.pi.updateAbapSxmbAdminParams;
import com.sap.mw.jco.*;
public class ReadPiAbapTables {
private static JCO.Client theConnection;
private static IRepository theRepository;
public static void main(String[] args) {
createConnection();
retrieveRepository();
try {
JCO.Function function = getFunction("RFC_READ_TABLE");
JCO.ParameterList listParams = function.getImportParameterList();
listParams.setValue("BSAUTHORS", "QUERY_TABLE");
theConnection.execute(function);
JCO.Table tableList = function.getTableParameterList().getTable("SXMSCONFVLV");
if (tableList.getNumRows() > 0) {
do {
for (JCO.FieldIterator fI = tableList.fields();
fI.hasMoreElements();)
JCO.Field tabField = fI.nextField();
System.out.println(tabField.getName()
+ ":t" +
tabField.getString());
System.out.println("n");
while (tableList.nextRow() == true);
catch (Exception ex) {
ex.printStackTrace();
private static void createConnection() {
try {
theConnection = JCO.createClient("aaa", "aaa", "aaa", "aa", "aa", "aa");
theConnection.connect();
catch (Exception ex) {
System.out.println("Failed to connect to SAP system");
private static void retrieveRepository() {
try {
theRepository = new JCO.Repository("saprep", theConnection);
catch (Exception ex)
System.out.println("failed to retrieve repository");
public static JCO.Function getFunction(String name) {
try {
return theRepository.getFunctionTemplate(name.toUpperCase()).getFunction();
catch (Exception ex) {
ex.printStackTrace();
return null;Hi Vicky,
You need authorization to the S_TABU_DIS object, talk with the ABAP basis team about this to find the more restrictive role.
It's not a good idea to use the RFC_READ_TABLE, for the wide permissions needed. You could think to develop a Z RFC for this. You can check pros/cons in this document: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a83ec690-0201-0010-14ac-bd1d75e24a7d?overridelayout=t…
Regards. -
How to capture username in ABAP table
Hi experts,
I have this case:
A webdynpro application calling a BAPI throught adaptive RFC.
The problem is the last updated username captured in my ABAP tables is the one supplied when i created the logical system names. (JCO)
What i actually want to capture is username of the user who login.
What am i missing ?
Thanks a lot.
Regards,
DanielHi Daniel
Use the foll. code to get the user id
IWDClientUser clientUser = WDClientUser.getCurrentUser();
Pass this is as a parameter to RFC. Your ABAPer will have to do a change in RFC to capture and insert this User id in the respective table.
Regards
Nikhil Bansal
xxxxxxxxxxxxxxxxxxxxxxxxxx
Edited by: Armin Reichert on Feb 18, 2008 7:24 PM -
ABAP Table - Invoice number & accounting doc date
Hi ,
In which ABAP Table i can get invoice number and Accounting document date ?
SriniHi Srini,
I guess what you're really asking is "How can I find the tables that contain certain fields". So, if that is really your question you should check out a blog like this;
/people/martin.english/blog/2010/01/13/finding-what-tables-and-fields-lie-behind-an-sap-transaction
Otherwise, every time you need to find a table for a field you don't know you'll have to ask the forum.
Regards,
Nick -
budget abap tables for the cost element and commitment items,thanks.
Hi,
For budget information you have to look in RPSCO for rows with WRTTP = 41 and for actuals per cost element you look in COSS/COSP/COSSP/COSPP for rows with WRTTP = 4. Budget is stored at the object level and not at cost element level.
Regards,
Kenneth -
Hello,
we have a java-program, that accesses data via jdbc to a mysql-database.
Now we want to migrate the mysql-table to abap-table.
How can we access from the java-program to theese migrated abap-tables via jdbc?
Regards OliverOliver,
If you want to access those tables from SAP, then you have to use the Java Connectors (
JCO).
Please write the more details abount the java IDE and OS, which you are using I will send you appropriate help.
Thanks -
Communication Channel information in abap tables
Hi ,
Could you let me know any abap table which contains information about communication channels in PI 7.0.
I have checked the following link
Re: XI--Table for communication channels
But the table SMPREL3 is not active in our data dictionary. is there any other table which stores this information.
My requirement is to get the list of all channels which have quality of service as EOIO in the processing tab of the comm channel.
Let me know if there are any other ways of checking this.Hi,
Some tables in following blog:
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0366444450DB00849302769976173098End?blog=/pub/wlg/2754
Regards,
Giuseppe -
Hello,
as a novice to abap, i have the following question:
I want to save a string containing a large xml content into an abap table and also additional fields to the same table.
Could you provide some advice?
Thanks in advance,
Peter Hado you mean storing it in DB table. if so check out the sample code given in the following thread
Re: How to store big XML string in ABAB DB
Regards
Raja -
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.
RobertHi 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 -
Load copy of abap table into PI/XI
Hi,
My scenario is as follows:
I need to make a lookup in an abap table to determine the receivers of incomming messages. Instead of making a RFC call to the SAP Backend System to request the data each time I would like to move a copy of the abap table into PI/XI.
Could anyone tell me how to do that and perhaps give me some links to relevant documentation.
Thanks.
Regards,
MortenHi,
>>>his is not an advisable practice to do this as it wuld increase the workload in XI. Lookup is the recommended.
My point of view is, that you should look to the bottlenecks. A lookup from each mapping could be a bottleneck as well. If you have a great number of messages, but only a small number of receivers, which neednt be updated each 5 seconds, a copy of the R/3 table could be good alternative to a lookup.
Create a change pointer at the ERP (from S11 - table maintenance generator) table and transfer the whole table (if there are not too much entries), to have a simple algorithmus and to be shure that there are no inconsistence. You can create a seconc client at PI which is receiving the message as ABAP proxy, so you have a proxy -> proxy communication (good perfromance).
Regards,
Udo -
ABAP table for "Condition table"
Dears,
Could you please tell the ABAP table for Condition table.
My requirement is : I need to check a field e.g. KUNNR, in which all the condition tables KUNNR is been used.
Thanks
pinkyHi,
Use t.code se16n, and then provide the sales order number for vbak,
or vbap take value of field KNUMV (The internal number under which
the system saves conditions that apply to a sales order header),
KNUMH (The internal number under which the system saves conditions
that apply to a sales orde itemr), and go to KONV (for vbak) and KONP
(for vbap) enter this KNUMV or KNUMH number and execute , you will get
all item pricing conditions for that sales order.
For pricing record :- table KONH - Condition (Header)
table KONP - Condition (Item)
with field KNUMH - Condition record number.
hope this will help.
regards
Vivek. -
Plaining function repost button can be update in normal abap table
Dear ALL,
There is a standard program for planing function that can repost any number of characteristic in cube by means of repost button in wad. at the same time that particular record has to update in some normal abap tables.Please help me.
Regards,
varunHi,
What are the infoObject properties for Product color? Is it of type CHAR with length 60?
Have you de-activated the property 'With master data' in InfoObject maintenance screen for this InfoObject? If not then system will not allow you to enter any free text.
If you have already done the above settings then you should be able to enter the free text through planning sequence input-template step.
What error are you getting exactly?
Regards,
Deepti
Maybe you are looking for
-
Setting Fields value via reflection
I'm starting from a c# code: internal void RefreshFromObject(object objFromUpdate) if (this.GetType()==objFromUpdate.GetType()) PropertyInfo[] fieldsFrom = objFromUpdate.GetType().GetProperties();
-
Third-party firewall? What third-party firewall?
I was setting up Internet Sharing so I could use my G5 as a base station, and my remote system wasn't getting to the Internet; while it saw and connected to the AirPort network, it couldn't seem to get a valid DHCP lease (the IP address was self-assi
-
EAN/UPC Table for materials
Hi, Please help me to find the materials without the UPC/EAN code maintained in the Additional data of material master.I even tried with the table "MEAN",but this table only contains the data having maintained for the grid values of the materials. Pl
-
Should OBIEE 11g be installed on a machine having weblogic already installed?
Hi Experts, We have weblogic server already installed on one of the machines( It got installed when Hyperion was installed) Can OBIEE 11g be installed on the same machine with its own weblogic server? Thanks Ashish
-
How to manage an Asynchronous Queue???
Hi all, Been searching for quite some time on what the best way is/simply how to manage an Asynchronous Queue. I would have thought it was easy, but I'm definately getting the impression I am wrong. Here is some information that I would like to be fr