Modify the field value in itab1 using itab2
Hi experts
I need some help.
My question is : I have ITAB1 contains IBLNO field it is a legacy value.
I want to modify this field.
Another internal table ITAB2 contains sap, legacy value of IBLNO(Cross refrenced table).my requirement is IBLNO of ITAB1 is modified with corresponding sap IBLNO in ITAB2.
plz help
Durga Parsad
Hi Durga,
You want to get following results -
1. You have ITAB1 containing IBLNO.
2. ITAB2 has IBLNO.
3. Modify ITAB1-IBLNO from ITAB2-IBLNO.
4. There must be some common value between the two tables. It has to be there otherwise the two records won't match.
Kindly find the following code for doing so -
LOOP AT ITAB2 INTO WA_ITAB2.
* Modify ITAB1 from workarea of ITAB2 for matching records
MODIFY ITAB1 FROM WA_ITAB2
TRANSPORTING IBLNO " Modify only IBLNO of ITAB1 for matching records
WHERE FIELD1 = WA_ITAB2-FIELD1. " Some common field between the ITAB1 & workarea of ITAB2
CLEAR WA_ITAB2.
ENDLOOP.
Hope this helps.
PS If the answer solves your query, plz close the thread by rewarding each reply and marking it Solved.
Regards
Similar Messages
-
I have the PDF form with several fields. I want to set the value of one field depending on selection made by the user in other field. I am trying to use if statement but it does not work for me. I have copied below the script I am trying to use.
form1.#pageSet[0].Page1.Table.Table3[0].Row1.Cell1::change - (JavaScript, client)
if (oField.rawValue == "Service Alert")
this.resolveNode("Cell4").rawValue = "A";
else if (oField.rawValue == "Service Bulletin")
this.resolveNode("Cell4").rawValue = "B";
When user selects Service Alert in Cell1 I want the value of Cell4 to be set to A and if Service Bulletin is selected I want the value of Cell4 to be set to B.
Can someone help me with the script. I have done a bit of searching and tested verious syntax but nothing did work. I hope someone will help me to have it working.
Regards,
TonyThank you very much for your help, but it did not work for me. I have decided to reply and to send you the form. Could you please have a look on what I have done and try to fix it. I want to add action to Cell1 to modify Cell4 in row 1 of the form, top on the blue background.
Regards,
Tony Pluta
Engineering Technical Coordinator / Graphics Designer, Engineering
Rail
Description: C:\Users\tony.pluta\AppData\Roaming\Microsoft\Signatures\UGLLimited.gif
16 Broadmeadow Rd | Broadmeadow NSW 2292 | Australia
Direct: +61 2 9492 1277 | Mobile: +61 403 399 167
Fax: +61 2 9462 1383
Email: [email protected]
Web: www.ugllimited.com<http://www.ugllimited.com/>
Please consider our environment footprint before printing this e-mail
From: kvdvijaykumar [email protected]
Sent: Wednesday, 29 May 2013 4:14 PM
To: Tony Pluta
Subject: modify form field value
Re: modify form field value
created by kvdvijaykumar<http://forums.adobe.com/people/kvdvijaykumar> in LiveCycle Designer - View the full discussion<http://forums.adobe.com/message/5360639#5360639 -
Modify the field TXJCD_ST of RFC_CALCULATE_TAXES_DOC
HI,
I have a requirements to modify the field TXJCD_ST of RFC_CALCULATE_TAXES_DOC with the ShipTo jurisdiction code.
What i found is the user exit exit_saplfytx_user_001 that sends to the RFC a list of fields that are modified. The field TXJCD_ST is not in the list of the user exit.
At this point i don't know how to do it , meaning pass the modified value of the TXJCD_ST to the RFC_CALCULATE_TAXES_DOC.
Does anyone know how to?
Regards, OliNo, I did not see this particular scenario yet. If the Taxware guys say they can not configure their side like that, then this won't work. I just thought they could be able to do this because they can configure the structure of the USER_DATA field on their end. It is entirely possible that those fields that are explicitely part of the interface can not be added to USER_DATA.
You can still try my first suggestion
I wonder if that'll work. Theoretically it should since by looking at the related code and backtracking the calls, it looks like MOVE-CORRESPONDING statements are used - so having the TXJCD_ST as part of the allowed fields might just work OK. -
How to get the Output File Name as One of the Field Value From Payload
Hi All,
I want to get the Output file name as one of the Field value from payload.
Example:
Source XML
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_TEST xmlns:ns0="http://sample.com">
- <Header>
<NAME>Bopanna</NAME>
</Header>
</ns0:MT_TEST>
I want to get the Output file name as " Bopanna.xml"
Please suggest me on this.
Regards
BopannaHi,
There are couple of links already available for this. Just for info see the below details,
The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
// Description: Function to create dynamic Filename
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
conf.put(key,a);
return "";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
conf.put(key,a);
return "";
With this udf map it with the MessageType as
(File Name field from Payload) > DynamicFileConfiguration>MTReceiver
Thanks
Swarup -
Modify the Field Type of standard Table fields in a Query
Hello. I have a question.
Is there a way to "modify" the field type for standard table fields that are included in a Query?
I made a simple query out of a join of tables, but several fields have a lot of decimals, and I would like to present them in the query without any decimals, just as a regular "N" field.
I tried the possibility of creating extra local fields where all I do is transfer the value to the new "N" field, but I have many fields like this, so if there's a better way; I'd prefer that.
Maybe somewhere in the InfoSet there's a way to modify the type of the standard table fields?
Thank you.Hi,
This document may help you out.
[http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm]
Cheers, -
Create Excel file in application server but the field value is incorrect
Hi Experts,
i am facing a problem when create excel file in application server using OPEN DATASET command.
the internal table have 4 field and one of those field contains 19 digit number --> ICCID.
the code running well, successfully create EXCELfile in application server but the problem is SAP only copy exactly first 15 digit numeric only and the rest became zero 0
Example :
the field value in internal table is 8962118800000447654 but when i opened in the excel file the value became 8962118800000440000.
and if i add alphabet like a8962118800000447654 then it is correct.
is there is anything wrong with my code?
here is my code
CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab. "Tab Char
Data : begin of lt_zdsdmmdt00005 occurs 0,
SERNR (18) type c,
MSISDNl(20) type c,
BOX1 (20) type c,
ICCID(30) type c,
end of lt_zdsdmmdt00005.
data : ld_temp(100) type c.
i_file = '/usr/sap/DM/test_excel.xls'.
open dataset i_file for output in legacy text mode.
loop at lt_zdsdmmdt00005.
move lt_zdsdmmdt00005-ICCID to ld_iccid .
concatenate lt_zdsdmmdt00005-sernr lt_zdsdmmdt00005-MSISDN lt_zdsdmmdt00005-BOX1 ld_iccid
into ld_temp separated by c_tab.
transfer ld_temp to i_file.
endloop.
close dataset i_file.
Best Regard,
Akbar.Hi Naveen,
thanks for your reply,
i already tried and the result still the same. any idea?
Best Regard,
Akbar. -
UDF for Checking the field value
Hi
I want to check the whether the fiels conatins any value or not in mapping ... if not i want to raise the exception using the UDF
DO any one have sample code for writing the UDF
SVHi SV
what is your requirement first that should br clear.
i am giving you two UDF
1) i have written this uDF for string and comparing the field value XYZ
2) i am entering a string and its returning aa string which starts from the index of your input fixed length
int len = a.length();
String res = "";
String temp = "";
if ( len >= 10)
temp = a.substring(0,10);
if ( temp.equals("XYZ"))
res = temp;
else
res = "";
return res;
=======================================
String fixed = "ABCD";
String res = "";
int index = -1;
index = a.indexOf(fixed);
if (index == -1)
res = "NO INDEX FOUND";// or if u wanna set it as null res = "";
else
res = b.substring(index4,index12);
return res;
===
hope these may solve your problem
Thanks
Sandeep sharma
If helpful reward points -
Can I just limit user can only modify the x value of a point?
In my effect, I add a point by using PF_ADD_POINT. But I just want user can only modify the x value, is this possible? How can I do it?
hello shibin.chris! welcome to the forum!
well, there's no switch you can flip to have such behavior, but you can:
1. supervise the param, so whenever the user changes the value you can keep
the X and restore the Y. (won't hold water in case of keyframing or
expression)
2. set an expression that would do the same.
3. check the param at some events (such as the render call), and modify the
keyframes and values if necessary. (won't handle expressions)
that's all i can think of. -
Importing Structure field values in Excel using VBA and SAP RFC
I am calling a RFC MEASUREM_DOCUM_RFC_SINGLE_001 from Excel VBA. The export parameters of the RFC has a parameter MEASUREMENT_DOCUMENT and structure COMPLETE_DOCUMENT. I am able to get back parameter value in excel from RFC using
ActiveCell = Funct.imports("MEASUREMENT_DOCUMENT")
Now I want to get the value of one of the fields say POINT of the structure COMPLETE_DOCUMENT in Excel. The following code doesnt work
ActiveCell = Funct.imports("COMPLETE_DOCUMENT-POINT")
It gives an error.
Even I have tried to using code for tables
dim tab as object
set tab = funct.tabels("COMPLETE_DOCUMENT")
but it did'nt work.
Can any one help me how to access the field value of a structure?
regards
RavindraI am calling a RFC MEASUREM_DOCUM_RFC_SINGLE_001 from Excel VBA. The export parameters of the RFC has a parameter MEASUREMENT_DOCUMENT and structure COMPLETE_DOCUMENT. I am able to get back parameter value in excel from RFC using
ActiveCell = Funct.imports("MEASUREMENT_DOCUMENT")
Now I want to get the value of one of the fields say POINT of the structure COMPLETE_DOCUMENT in Excel. The following code doesnt work
ActiveCell = Funct.imports("COMPLETE_DOCUMENT-POINT")
It gives an error.
Even I have tried to using code for tables
dim tab as object
set tab = funct.tabels("COMPLETE_DOCUMENT")
but it did'nt work.
Can any one help me how to access the field value of a structure?
regards
Ravindra -
Modify the preference value of the default route
Hi
How to achieve the Below ? any configuration example?
1)How to modify the preference value of the default route to be less prefered than OSPF External route
2)how to redistribute the default route as type 2 external route
3)how to redistribute the default route as type 1 external route
thanksHi Ibrahim,
See below:
1) Can you elaborate on this a bit? Can you explain, specifically, what your trying to accomplish? I don't think you can get a default route into the OSPF RIB that is not external as the default is injected as a Type-5 LSA (e1 or e2). If your talking about getting a router to use the OSPF learned default over the default router learned via some other source (e.g. static, BGP, etc), then it depends on the source because of the Administrative Distance when comparing the two defaults ( the one default learned via OSPF has AD=110, and the other default is AD=X, where X is the Administrative Distance assigned to the protocol).
2) Use the "default-information originate metric-type 2" command under "router ospf" -- Note this is the default
3) Use the "default-information originate metric-type 1" command under "router ospf" -- Note, you don't need this in Totally Stubby Area.
4) For NSSA area you have to use the "area nssa <area_num> default information-originate metric-type <type>" router subcommand. Note your NSSA should have a Type-7 LSA for the default route
Rate if helpful.
Joe -
Report query not returning the field value from external table
hi
I have an issue regarding reports. I have a query having 4 fields from external table and remaining from db tables. the report query returns all the fields from the db tables and only 2 fields from external table. but the same query if I tried in plsql developer it returns all the fields values.
Can anyone please help me in this issue.
Thanks and Regards
kkDuplicate post?
value not displaying in report whereas it returns in plsql developer
value not displaying in report whereas it returns in plsql developer
Please log a SR if you do not get any reply to your thread instead of creating new one.
Thanks,
Hussein -
How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0
Hi,
Is your formula attached to basic salary element or some other element? You need to make sure that basic salary element has some value and is processed before this formula is called. Are you able to see value for basic salary element after payroll run?
Regards,
Pawan -
Problem to modify the field "location" in an AP on WCS
Hello everybody,
I have a problem to modify the field "location" in an access point on WCS.
In fact, when i try to modify this field and then apply the modification, i have this error message :
"Error(s): You must correct the following error(s) before proceeding:
Error:Global Username and Password are not configured on the associated controller. Please configure username and password on the associated controller before disabling 'Override Global Username Password'."
I made the modification on Chrome and Firefox but I always have the error message.
Nevertheless, i don't have this error message with other access points and other access points are configured without the option "Override Global Username Password".
I'm obliged to make the modification directly in the controller and not in WCS.
The problem is that i want to make the modification directly in WCS.
Could you help me please ?
Thank you in advance.When i make the modification directly in WCS, i have no problem, it syncs good.
The version of WCS is 7.0.230.0.
The version of the controller is 7.0.240.0 and the field recovery image version is 7.0.112.21.
Version
7.0.230.0
Version
7.0.230.0
Version
7.0.230.0 -
How to avoid to modify the input value in a query
Hi expert,
in a Bex query (vers. 7.1), I created an auth variable on 0sales_off object to limit the display of data on a specific agency and it works right!
But the user can anyway modify the enter value and insert manually another agency into a filter or into the start selection, and even if in this case the query result is not displayed (cause to auth variable), I'd like that the user cannot modify the value authorized agency.
The auth. variable is set as single value, optional and ready for input and I cannot make the variable as invisible for the start input, because there are users authorized to enter any values without restrictions.
is there a solution for my issue?
Thanks for your support.
ClaudiaHi Claudia,
I think you will not have any other option as you need to show the variable for specific users and still you need it to accept input.
As I know you can not hide the variable display for specific users.
Regards,
Durgesh. -
Excluding the alpha charactes in the field value
Hi All,
I have a requirement where I need to delete all the character values in a field..
Ex: If the field value of ABC123a....then i need to delete the 'ABC' and i shuld retain wid 123a.
Please do the need ful.
Thanks,
ShivaHi Shiv,
take a variable of type n and move this into thatvariable.
Data:
w_char(20) type c value 'ABC123a',
w_num(20) type n.
w_num = w_char.
w_num will have 123.
or
Data:
w_str(20) type strin value 'ABC123a',
w_num(20) type c,
w_len type i.
w_len = strlen( w_str ).
do w_len times.
if w_str+sy-index(1) ca '0123456789'.
concatenate w_num w_str+sy-index(1) into w_num.
endif.
enddo.
Maybe you are looking for
-
Help! Problems printing to HP Laserjet printer
OK we've had an imac for several months and haven't had any problems. Recently, we can no longer print multiple jobs from our HP Laserjet printer. I believe the printer and the imac still recognize each other, but the print job seems to get "hung u
-
Qosmio G40: No sound on Windows Media player under Vista
Hi, the last week or so the sound has gone on my Windows Media player, but only on my Tv Tuner and DVD, the files from the hard drive are not affected. Everything was ok at the start but now it does even make the startup sound. I have tried configuri
-
Payment budget check with other superior commitment item
Dear Experts, One issue regarding checking of payment budget. Superior Commitment items : A1 Actual Commitment Items: A01,A02 Superior Commitment items : B1 Actual Commitment Items: B01,B02 Client can assign commitment budgets at A01,A02,B01 & B02 Le
-
hi im searchingg for an app which i can use to protect games or other apps from my childs. not to protect all only a few
-
IPhoto videos won't play with Snow Leopard
Snow Leopard is hostile to my fonts, my trackpad, and now my iPhoto videos. When I double-click on the videos, they no longer open in QuickTime or do anything, they won't play. Any suggestions? (Uninstall Snow Leopard?) Thanks in advance.