Saving web dynpro data into a custom db tabl
Hi experts,
Using editable alv i am editing alv fields , modified alv data is there in my internal table ( lt_contact).
How can i move internal table data to Z-table...
DATA: node_cont_dtls TYPE REF TO if_wd_context_node,
elem_cont_dtls TYPE REF TO if_wd_context_element,
lt_contact TYPE if_main=>elements_cont_dtls.
CHECK r_param->t_error_cells IS INITIAL.
node_cont_dtls = wd_context->get_child_node( name = `CONT_DTLS` ).
get data from context node <NODE_FLIGHTTAB>
node_cont_dtls->get_static_attributes_table(
IMPORTING table = lt_contact ).
Modified data is there in it_contact
modify table ZBAS_CONTACTS from lt_contact TRANSPORTING name1.
Here when i am using above modify statement it show in error
field ZBAS_CONTACTS is unknown
Hello Rakhi
Use this statement
MODIFY ZBAS_CONTACTS FROM TABLE lt_contact .
Thanks and Regards
Chaitanya.A
Similar Messages
-
Custom PL/SQL API that inserts the data into a custom interface table.
We are developing a custom Web ADI integrator for importing suppliers into Oracle.
The Web ADI interface is a custom PL/SQL API that inserts the data into a custom interface table. We have defined the content, uploader and an importer. The importer is again a custom PL/SQL API that will process the records inserted into the custom table and updates the STATUS column of the custom interface table. We want to show the status column back on the spreadsheet.
Defined the 'Document Row' import rule and added the rows that would identify the unique record.
Errored row import rule, we are using a SELECT * from custom_table where status<>'Success' and vendor_name=$param$.vendor_name
The source of this parameter is import.vendor_name
We have also defined an Error lookup.
After the above setup is completed, we invoke the create document and click on Oracle->Upload.
The records are getting imported, but the importer program is failing with An error has occurred while running an API import. The ERRORED_ROWS step 20003:ER_500141, parameter number 1 must contain the value BIND in attribute 1.'The same issue.
Need help.
Also checked bne.log, no additional information.
<bne:document xmlns:bne="http://www.oracle.com/bne">
<bne:message bne:type="DATA" bne:text="BNE_VALID_ROW_COUNT" bne:value="11" />
<bne:message bne:type="DATA" bne:text="BNE_INVALID_ROW_COUNT" bne:value="0" />
<bne:message bne:type="ERROR" bne:text="An error has occurred while running an API import"
bne:cause="The ERRORED_ROWS step 20003:ER_500165, parameter number 1 must contain the value BIND in attribute 1."
bne:action="" bne:source="BneAPIImporter" >
<bne:context bne:collection="collection_1" />
</bne:message><bne:message bne:type="STATUS"
bne:text="No rows uploaded" bne:value="" >
<bne:context bne:collection="collection_1" /></bne:message>
<bne:message bne:type="STATUS" bne:text="0 rows were invalid" bne:value="" >
<bne:context bne:collection="collection_1" /></bne:message></bne:document> -
Saving web dynpro's dats in a custom db table
Hello I'develop web dynpro component for cproject application. my question is how to save the new dats in a custom database table....where may I find some example?
I'm new to web dynpro technology I need documentation please...what u need to do is, there must hve been some binding that u mapped with the custom table in the view of the webdynpro component.
Now,say the method ON_AFTER_SAVE gets triggered when u enter the data in the component and prtess save.
so in this method write the logic of the updation of the custom table.
DATA: Node_table type ref to if_wd_context_node,
elem_table type ref to if_wd_context_element.
node_table = wd_context->get_child_node( 'TABLE_DATA_SOURCE' ).
CALL METHOD node_table->get_static_attributes_table( IMPORTING
table = it_table ). " here it_table will be the internal table of the type as the structure that u created in the view.
now, get the data that u enter on the component into this internal table and modify the ztable from this internal table.
the ztable gets updated. -
Using an other web dynpro application into an actual application
Hello,
I have a web dynpro application into a developer component previously developed. I want to import it an another web dynpro application.
The goal is to click a button, display the window of the other application and then once it is finished, go back to the first application (with some context parameters)
Is it possible ?
Thanks
QuentinHi,
Solved same issue in this thread Re: Data transfer between two different Web Dynpro components
PradeeP -
How to run sql scripts using batch file for a web dynpro data dictionary
Hi,
I want to develop a sql script to be executed on the server alongwith the installation of a product to pre-populate web dynpro data dictionary tables required for the application.
I further require to make the scripts independent of the database name,so that it can be run at any client environment.
Your help will be appreciated and rewarded.See shoblock's answer
call sql script from unix
masterfile.sql:
@file1 &1
@file2 &2
@file3 &3
@file4 &4
then just call the master script:
sqlplus userid/password @masterfile <p1> <p2> <p3> <p4> -
Converting Web Dynpro project into a Web Dynpro DC
Hi
I have a Web Dynpro project created.
Now I want to convert it into a Web Dynpro DC (Development Component).
Could anyone tell me if there is a standard procedure to do this?
Right now, I am following the below procedure:
Copy all the folders under root folder->src-> packages of Web Dynpro project into root folder->src-> packages of Web Dynpro DC.
Rebuild the DC.
But in this procedure I am getting errors (in view code) as the required interfaces (example, IPrivate<<component-name>>.java) are not getting generated when I re-build the DC.
Could anyone help me with this issue?Hi Aditya,
I have used two way for this and both worked fine for me.
1. While creating DC project at the end there eill be a check box, which when you tick will show your local dynpro project and you can then import that.
2. Create DC project after that copy the component of your local dynpro project and paste it on the option where you can create the component of DC project.
After pasting click next - next so that everything remain in sync.
After that check if you have any compilation error, check them if they are because of some jar files.. you have to add the library files by using the option -> DC Metadata ->DC Definition ->Used DC.
If you got no compliation error, then just rename the component ( again click next) and then deploy.
otherwise you may get deployment error.
Hope this helps,
Thanks,
Namrta -
Integrate Web Dynpro Application into a Guided Procedure Step
hi guys
I would like to integrate my Web Dynpro Application into a GP-Step.
I DON't want a:
- Web Dynpro Component (GP Interface)
- Composite Application Web Dynpro Component
I think I have to use "Web Dnypro Application" from the callable objects list.
However, I couldn't see any input parameters.
Thanks for your help.
Regards,
Go:khanHi Gökhan,
in my mind you only see Input/ Output Parameters within a Web Dynpro Application when you use the GP Interface.
WHen you want to have some for parameter mapping, you must implement an Web Dynpro Application with GP connectors.
Take the following tutorial to do that.
Hope it helps
Bye Steve -
Hi everyone,
I am working on implementing a GP process in which one of the requirements involves the user being able to save data entered in a Web Dynpro form before moving onto the next action in the process. Basically, the user requires the ability to launch the process, fill in some data and save the data without completing the process step (i.e., the request is in a 'draft' mode). That way, the user can close the task for an indefinite amount of time, launch it again in the future, and the data entered beforehand will be displayed. I am aware that I can persist the data out to an external table, but I was wondering if there is an easier way (i.e., maybe save it in the process context where it can loaded from when the user launches the task again.) Right now, I am using NW04s SP09 with Web Dynpro development components implementing the GP interface.
Thanks,
GregGreg,
You can save your data as an entity object using CAF Core. It will persist the data in the CAF layer. Once saved, you can use it on any subsequent GP steps.
Thanx,
Mahesh -
Exporting web Dynpro content into ms-word
Hi Experts,
Any one can tell me how to export web Dynpro content (like tables and data etc) into ms-word document.
Any help is greatly appreciated and rewarded.
Regards,
JayHi Varma,
you can follow the thred,
[http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353]
In this pdf this code is avaliable. please chek it this code
public void Download_Reporting( com.sap.tc.webdynpro.progmodel.api.IWDNode dataNode, java.util.Map columnInfos )
//@@begin Download_Reporting()
byte[] excelXMLFile;
IWDCachedWebResource cachedExcelResource = null;
String fileName = dataNode.getNodeInfo().getName() + ".xls";
try {
// create Excel 2003 XML data as a byte array for the given context node,
// attributes and headers
excelXMLFile = toExcel(dataNode, columnInfos).getBytes("UTF-8");
// create a cached Web Dynpro XLS resource for the given byte array
// and filename
cachedExcelResource = getCachedWebResource(excelXMLFile, fileName, WDWebResourceType.XLS);
// Store URL and file name of cached Excel resource in context.
if (cachedExcelResource != null) {
wdContext.currentContextElement().setExcelFileURL(
cachedExcelResource.getURL());
wdContext.currentContextElement().setExcelFileName(
cachedExcelResource.getResourceName());
// Open popup window with a link to the cached Excel file Web resource.
openExcelLinkPopup();
} else {
wdComponentAPI.getMessageManager().reportException(
"Failed to create Excel file from table!", true);
} catch (UnsupportedEncodingException e) {
wdComponentAPI.getMessageManager().reportException(
e.getLocalizedMessage(), true);
} catch (WDURLException e) {
wdComponentAPI.getMessageManager().reportException(
e.getLocalizedMessage(), true);
//@@end
Here please check it this line cachedExcelResource = getCachedWebResource(excelXMLFile, fileName, WDWebResourceType.XLS);
here you can u put like this cachedExcelResource = getCachedWebResource(excelXMLFile, fileName, WDWebResourceType.DOC);
Here different Options is avaliable please find it
Hope it is help full for u
Regards
Vijay kalluri -
Urgent help needed in inserting data into a custom table in oracle WorkFlow
Hi
I am trying to get data from the WF and insert into a custom table..
I read that workflow procedures WONT allow commits...
Oracle Workflow will not support autonomous commits in any procedure it calls directly. If you need to perform commits, then embed your SQL in a subprocedure and declare it as an autonomous block. This subprocedure must be capable of being rerun. Additionally, note that Oracle Workflow handles errors by rolling back the entire procedure and setting its status to ERROR. Database updates performed by autonomous commits cannot be rolled back, so you will need to write your own compensatory logic for error handling
Have anyone did this..
Please give me some idea ...It is urgent
I am getting data using getitemattribute..and try to insert it into a custom table
thanks
kpPl do not post duplicate threads - insert dont work in Workflow
Srini -
Calling one Web-Dynpro program into Another
Hi All,
I'm currently working on a Web-Dynpro program in which I am display 3 tabs(Using TabStrip) and in each tab I have a ViewContainer.
I want to be able to execute other Web-Dynpro programs within the Viewcontainers of the Tabs.
If the End-User goes from tab to tab, I want to pass a select number of parameters between tabs.
Is this possible to do and if so, how can I set this up?
Thanking you in advance.Hello Lisa,
I'm not sure what you really want...
If you want to share data between several views of one webdynpro component, you should use the [context|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/444941db42f423e10000000a155106/frameset.htm] of your [component controller|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e2/434941db42f423e10000000a155106/frameset.htm].
If you mean by "execute other Web-Dynpro programs within the Viewcontainers" to embed another webdynpro component you should have a look at [Cross-Component Programming|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a7/1d8b412bb5b35fe10000000a1550b0/frameset.htm].
Regards,
Alej -
EJB Web Dynpro - Data Persistence
What is the recommended way for connecting to oracle database and adding business logic to web dynpro application.?
We were researching on the CMP entity bean but found that CMP entity bean in SAP netweaver can be
configured only to connect to the default database. Its too difficult for my consious to digest why anyone will connect only to the default portal database. Is there any way that we could work on CMP entity beans and connect to an external datasource in EP 7.0 ?
Your valuable feedbacks would be highly appreciated...unlike others, I dont think it should be an issue in connecting to an external data base as long as you can telnet / ping to that db server from Portal.
All you need to create is a JDBC datasource from portal to that database and use that datasource in your application.
It should be pretty straight forward.
Did you try this?
The reason i know it should work is, i am working on MDM and from portal i create a datasource to connect to MDM database for one of the application provided by SAP and it is the standard procedure defined by SAP to create datasource and consume it.
I just saw, yardon has provided links to help.sap on how to create datasource, so you should be good.
Let me know if i need to explain more. I can guide you how to create datasource in Visual admin.
Good Luck
Regards,
Nitin
Edited by: Nitin Mahajan on May 1, 2009 6:50 PM
Edited by: Nitin Mahajan on May 1, 2009 6:50 PM -
Web Dynpro - transform into PDF format
Hi all,
I would need your help. Now I am participating at a Web Dynpro project and one task is to realize PDF transformation and printing of Web Dynpro forms.
That means we would place a button on the form called "Transform to PDF". If a user push this button in the browser, the page he is seeing has to be transformed into the PDF format and later printed as a normal PDF file.
What is the best way to implement this?
Thanks,
OleksandrThere is no real alternative for the 'print screen' in WD4A, or the 'print' button (CTRL-P). But what you could do (if there are not too many screens to be printed) is this:
Create a smartform (or adobe form for that matter), and call this after the print button is pressed. Display the smartform as preview, for where it can be printed via adobe reader. -
How to pull AD data into a custom SharePoint list?
We want to pull in all the active directory user data like username, first name, last name and address into a custom SharePoint list.
Is this possible?There is no OOOB way. But you can achieve this with custom code.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8f441d97-e4f9-4e80-891b-f4f4b5fb9457/how-to-populate-a-sharepoint-2010-list-from-the-active-directory-how-to-populate-a-sharepoint-2010?forum=sharepointdevelopmentprevious
http://social.technet.microsoft.com/Forums/sharepoint/en-US/903afa85-6e23-451e-b84a-d519cb2ddf9c/creating-a-list-of-data-pulled-from-ad?forum=sharepointdevelopmentprevious
Bala
Can we sync the hidden User Info list with AD? Is this an OOTB sharepoint feature? -
Adding data into a custom table through a report transaction
Is it possible to add data into a table through a report transaction. I have been asked to create a report in which when we add certain data in the selkection screen it updates thoses particular fields and the rest of the records can be fille dout in the output. Basically I have a customised allocation table called zalloc. I have to create a report with selection screen having receiving plant, material document of the original transfer psoting , issuning plant , line item number , batch, receiving and issuning storage location. I need to validate this against the mseg table and whatever entry I make in teh selection screen should update my zalloc table from here.
Can anyone help me with this please.
ThanksHi Aarav,
Yes, It is possible to add records to a table using a report transaction. You can use Update or Modify to insert records in a table.Convert the data fetched from the ZALLOC and convert it into an internal table of the same format as that of the ZALLOC table and simply do an
loop at itab_zalloc into wa_zalloc.
*INSERT INTO ZALLOC FROM WA_zalloc*.
endloop.
OR
INSERT ZALLOC FROM TABLE ITAB_ZALLOC
OR
UPDATE ZALLOC FROM TABLE ITAB__ZALLOC .
Update will modify if that record exist and returns sy-subrc as non zero if entry does not exist.
OR
MODIFY updates an existing DB entry or, in no matching entry exists, inserts a new entry into the DB table
Maybe you are looking for
-
Z3200 won't print to custom page size
Hello, I've created a banner that is 23"w x 82"h (in CorelDraw Suite 4). The page setup of the Corel file is 23" w x 82"h. I've been trying to print it on the z3200 designjet, but have had no luck. I created several custom page sizes (23" x 82", 2
-
When I plug in my iphone 4S to my 64-bit computer a error box comes up in my 64-bit itunes that reads (This iphone cannot be used because the required software is not installed. Run the Itunes installer to remove itunes, than install the 64-bit versi
-
Why my epson 3800pro doesn't center the print
Hi, I have a interesting and very annoying problem. Why my epson 3800 doesn't center the prints on the paper anymore? Using this printer for more than two years now and all of the sudden regardless the paper size and the settings the i mages are cent
-
i have a problem in decode clause i have 2 conditions in my code --condition 1 -- this condition in where clause where gl.attribute1 is null and gl.attribute2 is null -- condition 2 --another condition in where clause is where gl.attribute1 is not n
-
Using Photoshop CC and LR5 (offer for £8.78)
I am thinking of taking up this offer. I have PS Elements 11 and LR5 already but think that PS CC will be better for me with more options. Sorry it is in the LR5 forum but couldn't find any suitable so here goes: Should I completely uninstall LR5 and