WebDynpro - How to pass a single field value to BAPI table?
Hello,
I have just come from WebDynpro ABAP training and being a novice hit my first issue right away.
I need to use BAPI - BAPI_CONTRACT_CREATEFROMDATA to create SD contract (I have used this BAPI to create a service call inside Webdynpro). I have two required fields: contract start and end dates. These fields passed in a table called CONTRACT_DATA_IN.
When I use the fields from the structures or individual fields, all I need to do is just put them on the view, and when I hit my submit button they will be passed to the BAPI. They are a part of COMPONENTCONTROLLER context (I have also mapped them in View context), but tables are obviously different.
Is there any way to pass data to tables as seamlessly without any code as for structures? Or do I need to write code to get the values from the input fields and then populate the table manually?
Thanks,
Alex
Hi,
Single customer contract creation use the struture-
If you want to pass only one record then using the input fields for those 2 fields we can pass them to BAPI and then create the Customer Contract. This will work for only one record of customer contract.
then we can directly read these input fields and pass to BAPI.
Creating many customer contracts -
For example, If you want to provide the group of records at a time and then you want to create the cusotmer contracts for so many records then you fill these fields and pass them to table then pass this table to the tables parameters of that BAPI.
Here we need not create the Table UI element separate input fields would serve the purpose.
Now we can create the batch of contracts for N customers.
these input fields of a customer will be passed to table, then next set of input fields etc.
For this create the Table UI element and fill all the records and then pass it to the Tables of the BAPI.
Regards
Lekha
Similar Messages
-
How to pass the FORM Fields value by Form Personalization
Hi ALL,
I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
can any one suggest what to do???
i tried with these syntax
TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
Regards
RaviHi,
Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
Regards,,
Anil. -
State machine custom task workflow how to pass one task field value to the next task field
i am using ItemMetadata.xml to pass value from list to custom task first value its passing the but second value is showing as null
plus how to pass one custom task value to the next custom task
i.e one supervisor approver comments submitted field i want to see on department manager approval custom task which is the next approver from supervisor
ows_firstfield=""
ows_SecondField=""
the above ows fields are from list
in this i am unable to retrive the second value in the task form this is my first query?
second query is that how can we pass one task field value to next approver task field value?
any idea
MCTS,ITILWhat type of workflow is this? IS this Visual Studio or SharePOint designer or third party (K2, Nintex, etc...)? YOu should be able to get ahold of the task that was edited via the correlation token, and then grab any value you want from that
task (wether it be a custom field or a standard worfklow task field).
It would help to know what you are using to build the workflow.
Thanks! -
How to pass a single quote in a URL using Javascript
Can someone tell me how to pass a single quote in a URL using Javascript. I have created a Javascript funciton in which I pass several column values from an APEX report.
The URL for the report link I am using is "JAVASCRIPT:passBack('#EMP_ID#','#Name#','#e-mail#')"
The problem occurs with the Name and e-mail columns contain a single quote (i.e. James O'Brien)Thank you Saad, that worked.
Since I built the report using type 'SQL Query (PL/SQL function fody returning SQL query)' I had to add some additional quotes to get it to work.
i.e.
replace(EMP_EMAIL_NAME,'''''''',''\'''''')
or
replace(EMP_EMAIL_NAME,chr(39),''\'''''')
Thanks for the help,
Jason -
How can i transfer a field value in the main report to its sub-report?
<p><font face="Arial" size="2">How can i transfer a field value in the main report to its sub-report?</font></p><p><font face="Arial" size="2">Please eloberate with example if possible!</font></p><p><font face="Arial" size="2">Thanks...</font></p><p> </p>
<p>You can do a couple of things - one would be to pass the information using the data linking expert. Right click on the subreport, choose 'Change Subreport Links' and select the field(s) you are wanting to pass to the subreport. CRW will build parameters and a record selection formula for you in the subreport, and if that's what you want, then great. But you can also remove the selection formula from the subreport and work with the parameter fields in the subreport however you would like.</p><p>Alternatively, you can look to passing Shared variables back and forth from the main and subreport. this link talks about the method to do this: http://diamond.businessobjects.com/node/251</p><p> </p>
-
To populate values into single field in an internal table
Hi Friends,
How we need to populate values into single field in an internal table.
E.g itab consits of single field ( name)
i need to assign values to this field name .like
peter,
john,
abrahm,
daneyal
Pls tell me i how i need to code for this
Thanks ,
ParnithHi,
Please look at the below code :
DATA : BEGIN OF itab OCCURS 0 ,
name(20) TYPE c,
END OF itab.
START-OF-SELECTION.
itab-name = 'Peter'.
APPEND itab.
CLEAR itab.
itab-name = 'John'.
APPEND itab.
CLEAR itab.
itab-name = 'Abrahm'.
APPEND itab.
CLEAR itab.
itab-name = 'Daneyal'.
APPEND itab.
CLEAR itab.
LOOP AT itab.
WRITE : / itab.
ENDLOOP.
Thanks,
Sriram Ponna. -
How to update a single field in Word macro
Hello,
I am trying to create an AutoOpen() macro that will update the file name and path when user opens in a Word document, but I can't seem to find anything explaining how to update a single field, specifically the {FILENAME \p} field. There
are other fields in the document, so I do not want to update all the fields. Most of the links I found only explain how to update ALL fields. Can somebody please tell me how I can update only the filename and path field using an autoopen macro?
Thank youStefan's response is correct.
Here is a macro that should update only filename fields.
Sub FileNameFieldUpdateAllStory()
' Written by Charles Kyle Kenyon 15 November 2001 - modified for filename 10 Sept 2014
' repaired by Jezebel
' All Story Field Updater - Filename fields
Dim oField As Field
Dim oStory As Range
' On Error Resume Next
For Each oStory In ActiveDocument.StoryRanges
' This goes into headers and footers as well as the regular document
Do
For Each oField In oStory.Fields
If oField.Type = wdFieldFileName Then
oField.Update
End If
Next oField
Set oStory = oStory.NextStoryRange
Loop Until oStory Is Nothing
Next oStory
End Sub
See Installing Macros for help in using this.
Charles Kenyon Madison, WI -
How to pass more than one value for one column in procedure
hi
select id, name from col_tab where dept_name in ('ECE','CIVIL');
when i was running this it is working well.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
BEGIN
OPEN ans FOR
select id,name from col_tab where dept_name in char_in ;
END str;
END pack_str;
the package was created.
my doubt is
1.how to pass more than one value for char_in (e.g ('ECE','CIVIL'))
2. when i was storing the value in string like val = 'ECE,CIVIL' ,
how to get the id,name for ECE and CIVIL.
plz help meHi Rebekh ,
I am recreating your packages for the desired output.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
lv_t varchar2(200);
BEGIN
lv_t := REPLACE(char_in,',',''',''');
lv_t := 'select id,name from col_tab where dept_name in (''' || lv_t || ''')' ;
OPEN ans FOR lv_t;
END str;
END pack_str;
Note:-
Input Parameter char_in is a comma seperated value for dept_name
-Debamalya -
How to delete data from single field in a database table?
Hi guys,
Plz suggest me How to delete data from single field in a database table?
thnks,
pavanhi
in addition to abv details..chk this:
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
regards,
madhu -
How to get the object class field value in CDHDR table for vendor
hi
how to get the object class field value in CDHDR table for vendorTry KRED/KRED_N as object class in CDHDR for Vendor.
-
How to pass a single character to dll (as a parameter)
How do pass a single character to dll (as a parameter). This is a third party dll that i am unable to change.
e.g.: int functionName(char* process, char myChar);My apoligies, I am trying to pass a char from Teststand. Passing as a char is not one of the Category
I tried sending (for example) : Locals.myChar[0]. Which is acceptable in C++, but gives me an error via Teststand. -
URGENT : how to pass status & reason field in BAPI_LEAD_CREATEMULTI module
HI,
<b>CAN ANYONE TELL ME how to pass status & reason field in BAPI_LEAD_CREATEMULTI module.IT'S VERY URGENT,</b>
SO PLEASE SEND ME YOUR REPLY AS EARLY AS POSSIBLE,
TAHNKS IN ADVANCEDHi ,
your config is missing , what is ur TD object ?
you can cross check in SE75-->Under MARA
regards
Prabhu -
How to pass PO customer fields from ECC to SUS ?
Hi Gurus,
We defined a customer PO field at ECC side and want to pass it to SUS and diaplay it in SUS PO, my question is, how to pass PO customer fields from ECC to SUS?
Please advise.
Thanks and best regards
jackHi jackytam ,
/people/yeusheng.teo/blog/2008/01/05/ordering-unit-vs-order-pricing-unit-in-srm-sus
you make get some pointers
regards,
Neelima -
Inserting a single field in a custom table
hi all,
can u tell me hw could i insert a single field in the custom table.
i have abt 6 fields in the custom table.
5 fields are already populated...
i have to insert one field ..i dont want to use insert statement.
thanx in advanceHI,
You can use UPDATE statement
UPDATE ztable SET SIXTH_FIELD = 'value'
WHERE key_field = 'asdf'.
Thanks
Naren -
Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
I am using this code :
<HTML>
<HEAD>
<SCRIPT>
function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var colCount = table.rows[0].cells.length;
for(var i=0; i<colCount; i++ ) {
var newcell = row.insertCell(i);
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
switch(newcell.childNodes[0].type) {
case "text":
newcell.childNodes[0].value = "";
break;
case "checkbox":
newcell.childNodes[0].checked = false;
break;
case "select-one":
newcell.childNodes[0].selectedIndex = 0;
break;}}}
function deleteRow(tableID) {
try {var table = document.getElementById(tableID);
var rowCount = table.rows.length;
for(var i=0; i<rowCount; i++) {
var row = table.rows[i];
var chkbox = row.cells[0].childNodes[0];
if(null != chkbox && true == chkbox.checked) {
if(rowCount <= 2) {
alert("Cannot delete all the rows.");
break;}
table.deleteRow(i);
rowCount--;
i--;}}}catch(e) {alert(e);}}
</SCRIPT>
</HEAD>
<BODY>
<INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
<INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
<TABLE id="dataTable" width="350px" border="1">
<TR>
<TD width="32"></TD>
<TD width="119" align="center"><strong>Activity</strong></TD>
<TD width="177" align="center"><strong>Cost</strong></TD>
</TR>
<TR>
<TD><INPUT type="checkbox" name="chk"/></TD>
<TD>
<select name="s1" id="s1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</TD>
<TD><input type="text" name="txt1" id="txt1"></TD>
</TR>
</TABLE>
</BODY>
</HTML>Hi,
Let me make sure u r working with table control.
First u have to create a event(VALIDATE) to do the validation.
Inside the event,
1. First get the current index where user has pointed the curson
2. Once u get the index read the internal table with index value.
3. Now u can compare the col1 and col2 values and populate the error message.
1. DATA : lo_elt TYPE REF TO if_wd_context_element,
l_index type i.
lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
CALL METHOD LO_ELT->GET_INDEX( RECEIVING MY_INDEX = l_index.
above code should be written inside the event.
Thanks,
Maybe you are looking for
-
One MIRO document with two different vendors for two different line items
Can it possible to make MIRO for a PO which is having two conditions(Basic price+Freight) with two different vendors. MIRO document needs: GR/IR Clearing Dr. Freight Clearing Dr. Vendor RM(X) Cr. Vendor Freight(Y) Cr. Is it possible to
-
Edit .app file in excel and then open it in client tool?
Dear Gurus, I am very new to HFM and would like to know what practice a HFM consultant will use in editing the metadata. My boss recommend me to edit metadata( .app file) in excel and save it into a format that can be read and opened by client tool.
-
Maintenance updates for OS X 10.7?
My MacBook is not up-gradable past OS X 10.7 so I am wondering if there will be any maintenance updates for Lightroom 5 CC from here on out. For instance, any bug fixes (not that I know of any) or any new camera support? On a related note, is it know
-
Hi, I downloaded XP SP3 from here. However, I noticed that Pro x64 is not listed in the system requirements and that the file name has x86 in it. Is there a version of XP SP3 for x64 or will the above release be able to install/slipstream into Pro x6
-
Can I use my Samsung Charge in another country ?
If I replace the LTE card with a SIM card from another country, will it work ??