Modify the standard segment value
Hi Experts,
I have a piece of code to modify the standard idoc segment value.
wa_idoc_data_mon-segnam = c_segale_e1edl24.
wa_in_e1edl24 = idoc_data-sdata.
wa_in_e1edl24-matnr = wa_in_e1edl24-matnr+11(7).
wa_idoc_data_mon-sdata = wa_in_e1edl24.
MODIFY idoc_data FROM wa_idoc_data_mon INDEX g_indx.
This modify statement works but it will change the normal structure of idoc type as we have in WE30 and put the status in RED.
If i use transporting sdata then it will not modify the material to last 7 char.
Thanks,
Sahil
Hi,
It's not advisable to modify the standard tables through program. If you want you can do using MODIFY.
MODIFY database_table FROM TABLE itab.
Thanks,
Sri.
Similar Messages
-
Modify the standard records in database table
hi folks,
could u say me , how to modify the standard records(values) in database table.
For example in VBAP is one field like ZWERT(target value) , I wnat to modify the values of this field .
THANKS
KUMARHi,
It's not advisable to modify the standard tables through program. If you want you can do using MODIFY.
MODIFY database_table FROM TABLE itab.
Thanks,
Sri. -
To Update the IDOC segment values through report program
My requirement is to update the Idoc segment through the report program. Any SAP provided standard function module is available to update the Idoc segment values. Please help needed.
DATA: LT_EDIDD TYPE STANDARD TABLE OF EDIDD."Local Table to Hold EDIDD
LT_EDIDD = I_EDIDD. "table should have the data
*-- Opening the IDoc for Edit
CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
EXPORTING
DOCUMENT_NUMBER = X_EDIDC-DOCNUM
TABLES
IDOC_DATA = IT_EDIDD
EXCEPTIONS
DOCUMENT_FOREIGN_LOCK = 1
DOCUMENT_NOT_EXIST = 2
DOCUMENT_NOT_OPEN = 3
STATUS_IS_UNABLE_FOR_CHANGING = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*-- Editing the IDoc
CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
TABLES
IDOC_CHANGED_DATA_RANGE = LT_EDIDD
EXCEPTIONS
IDOC_NOT_OPEN = 1
DATA_RECORD_NOT_EXIST = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*-- Closing the IDoc after Edit
CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'
EXPORTING
DOCUMENT_NUMBER = X_EDIDC-DOCNUM
DO_COMMIT = 'X'
DO_UPDATE = 'X'
WRITE_ALL_STATUS = 'X'
EXCEPTIONS
IDOC_NOT_OPEN = 1
DB_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
thanks
vijay -
How to Modify the standard layout set for Sales Order
Hi all,
Do we have any sap defined standard to modify the sales order,if no How to Modify the standard layout set for Sales Order,an also plz send me the step by step procedure for the same.
Thanks in advance
Santosh RHi, Dear Ferry Lianto,
Thank you very much.
Commonly I know the total pricing procedures.
But, would you please tell me how to control the CURRENCY for the subitem of a condition type as follows?
For example, I can see the following kind of
contents in the Tab:condition of a sales order:
PR00 Price 130.00000 TEST 100
Gross Value 20.12 USD 100 <-how to
Discount Amount 0.00 USD 100
Rebate Basis 20.12 USD 100
Net Value for Item 20.12 USD 100
Net Value 2 20.12 USD 100
Net Value 3 20.12 USD 100
VPRS Cost 27.22 HKD
Profit Margin 16.61 USD
The currency of PR00:price can be controlled via tcode VK12; but how to control the currency of its subitem such as gross value, discount amountm, net value for item, net value 2, & net calue 3...
Thanks and regards. -
How to default the KFF segment values based on other field's value
Hi,
I would need to reset the 5th segment value of "Liability Account" field on R12 Supplier Page under "Accounting" link.
Condition: And it has to be based on some other value like "GLOBAL CONTEXT VALUE and TaxPayer ID Type" under "Organization" link.
Right now; as per the seeded page it defaults the Liability Account to "BL-130-0000-2110-0000-0000" under accounting link; I need to change this default value to "BL-130-0000-2110-2641-0000" based on above condition.
I have tried using the below code:
OAKeyFlexBean oakeyflexbean = (OAKeyFlexBean)oawebbean.findIndexedChildRecursive("LiabilityFlex");
oakeyflexbean.setText()
But this one does not work.
Can anyone suggest me some option to acheive this requirement.
Thanks
Edited by: 880860 on May 21, 2012 2:23 PMHi everyone,
Any thoughts? any help is appreciated...
Thanks -
Modify the standard screen of a report
I've just created a report with some parameters and when i try to modify the standard screen of this report via se80 i've got a warning message that tells me that all changes in standard selection dynpro will be discarded.
Does that mean i can't modify this Dynpro?
ThanksHi jose,
Wat is ur problem can u explain me clearly. wat u r trying to modify?? Ru trying to change screen settings??
For dynpro check this link
http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/content.htm
Regards,
Pavan<a href="http://http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/content.htm">http://http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/content.htm</a> -
How to modify the standard script in scripts?
how to modify the standard script in scripts?
Nagaraju,
Standard scripts cant be modified.
Only thing is you need to copy it to z-form and have to do modifications as per ur requirements.
Here is the procedure to copy standard form to z-form.
goto SE71 t-code, then select the menu path : <b>Utilities -> Copy from Client</b>
then it will take to another screen, give the form name as Standard form name, if u r copying a stadard invoice means, type RVINVOICE01 and target form, ZRVINVOICE01. Now press execute button, it will copy the form into 25 languages. Now come back to se71, enter Z-form name and do the required changes.
Hope this hint may help you, Pls close the thread if u met with correct answer.
Regards,
Sujatha. -
Modifying the Standard Report template
Hi
I have a report with 10 columns and 2 of them are wb_id, pa_id. Depending on the search critiria either wb_id or pa_id will be null. I want to highlight the row with some color when I select any row and I am modifying the standard template and
column template condition is 'Use Based on PL/SQL Expression' and it is
NVL(#COL02#,0) = NVL(:GLOBAL_WB_ID,0). But when I run the report it is giving the error that encountered # wherea as expecting.......
Thans a lot.Hi,
I have a report page uses the following block of pl/sql as its source.
This calls a function by passing page items and this functions returns sql query.
DECLARE
V_SQL VARCHAR2(4000);
BEGIN
V_SQL := WF_PCK02.search_wb_pa(
:P1000_WB_ID,:P1000_PA_ID,:P1000_RIVER_NO,:P1000_GENRE,:P1000_LOCATION,:P1000_WATER_DEPENDENT,:P1000_BASELINE,
:P1000_NBT_PRESSURE_TYPE_ID,:P1000_PURPOSE,:P1000_NBT_SIC_DESC,:P1000_ACTIVITY_DESC,:P1000_NBT_MORPH_ACTIVITY,
:P1000_SW_ASSET,:P1000_ORDER_BY,:P1000_R1);
RETURN V_SQL;
END;
Now if user is searching for water bodies the results look like this.
10317 - Allt Ceitlein SURFACE WATER River Y 2a 2b N N
10318 - Allt a Chaorainn SURFACE WATER River Y 2b 2b N N
10319 - River Coupall SURFACE WATER River Y 2b 2b Y N
10320 - Allt a Bhiorain SURFACE WATER River Y 2b 2b Y N
if the user is searching for PAS the results look like this.
- UKS7992310 Lochs Long and Goil SHELLFISH WATER - Y 1a 9z N N
- UKS79923100 Ulva SHELLFISH WATER - Y 1a 9z N N
- UKS79923101 Ura Firth SHELLFISH WATER - Y 1a 9z N N
- UKS79923102 Voe of Clousta SHELLFISH WATER - Y 1a 9z N N
- UKS79923103 Wadbister Voe SHELLFISH WATER - Y 1a 9z N N
- UKS79923104 Inner West Loch Tarbert SHELLFISH WATER - Y 1a 9z N N
I had written a java script to select the current row, and page refreshes when I click
any where on the row and displays the display item saying that
currently selected id is 10317
or
Currently selected id is UKS79923100
and also assigns the 10317 to GLOBAL_WB_ID or UKS79923100 to GLOBAL_PA_ID
Now my user want to change the color of the currently selected row.
For this I am trying to change the report template like this
Column Template 1
<td class="t15data"#ALIGNMENT# style="background:#d1e2f3">#COLUMN_VALUE#</td>
Column Template 1 Condition
NVL(#2#,0) = NVL(:GLOBAL_WB_ID,0);
BUT
it is giving the following error.
Encountered the symbol "<" when expecting one of the following: ( ) - + case mod new not null others table avg count current ........................
ERR-1025 Error processing PLSQL expression. :GLOBAL_WB_ID = NVL(10317,0);
Then I changed the condition to substitute the #2# in single quotes like this.
NVL('#2#',0) = NVL(:GLOBAL_WB_ID,0);
BUT it is giving this error
Encountered the symbol "10317" when expecting one of the following: ( ) - + case mod new not null others table avg count current ........................
ERR-1025 Error processing PLSQL expression. :GLOBAL_WB_ID = NVL('10317',0);
I am unable to understand where the error is coming from.
Please help me.
10317 is the first row of the result set.
Thanks a million in advance. -
Who modified the standard report
Hi,
How can i find out who modified the standard report in my server,guide me for the same.
ThankuSE38 -> Enter report -> Mark Attributes -> Display -> Last changed by.
Regards
Juan -
MODIFYING THE STANDARD TOOLBAR
HI,
How can I modify the standard toolbar buttons? is this contained in the mmb or a different file?
thanksHello,
<p>Download the corresponding .mmb files:<br>
menudef.mmb<br>
menudefs.mmb<br>
Then you can open them in the menu editor and apply the changes needed.</p>
Francois -
Add a custom event wihtout modifying the standard in a component controller
Hello,
We are currently working on an enhancement in the DPR_SEARCH component. We added through an enhancement a custom button, with a specific action. Then we would like to fire an event to other components (cross-controllers interface), but we are not able to add the event definition in the DPR_SEARCH component controller, wihout modifying the standard.
Does anyone know if it's possible?
Thank you.
MatthiasSeems not possible...
-
How to modify the standard table
plzzzzz answer my qestion.
how to modify the standard table?
in my knowedge we have the accese key is it correct or worngHi
<b>The system asks for access key only of two reasons:</b>
1) You may be having problem of access rights. You would have to contact basis peopl.
2) You may try to name an object not complying with the rules. You may have to check with the same.
the process of getting access key is
<b>the steps to get access key</b>
you can also try via transaction OSS1
In your Inbox, click on 'Registration', then on 'Register Objects', then you will have to choose your installation and give details about your object.
The details you can get by going to your object and clicking on 'Change' - the pop-up screen which asks you for the access key gives you all the details you need to fill in on OSS1 to get your key.
<b>or</b>
U can get Access key from www.service.sap.com
After getting into the site,select quicklinks, then click s to goto SSCR, in
that select registration,
after giving the proper details, u can get the access key
<b>or</b>
on sap support portal (sapnet)
--> key & request
---> register SSCR key
---> registration
---> register developper
and then choose your rigth installation number
you can get the access key in this way
<b>reward if usefull</b> -
Get value based on the previous segment value
Dear all brothers,
In the entry form of SIT i want to retreive a value depends on the previous value, i know that "$FLEX$.value_set_name" is used for this but for example:
if the first segment is entered date and i want to get the second segment as the person grade within this date "in the first segment", what should i do for this ?
BTW, it is working fine in core apps using fffun.cd function , but not fine at all in the SSHR.
Regards,No help :( ??
-
How to restict the standard f4 values in ALV?
I added standard F4 values to the werks field ( ref_field = WERKS and ref_table = T001W ).
It displays all the plants in the system.
but the user wants to see only certain series of plants.
how toa chive this without using custom F4?
(With custom F4 I am able to restrict this by using a select statement and onF4 event etc....).
Thanks,
VenCreate a custom search help with the search help exit function module determining what values needs to be displayed.
Attach the search help as part of the field catalog in the display and it should give you the values from the custom search help.
Hope this solves your problem.
Regards,
Hari -
Hi,
I have a requirement of adding a link in the header section of javadocs, that necessitates a modification to the standard doclet.
The problem is elementary - how do I get started? I could not locate the com.sun.tools.doclets package in the jsdk 1.4.1_02. Even after decompressing the source files in the jsdk, the directory structure i get does not have "tools". Is this package downloadable separately? If yes, please guide me to the location.
Then once, when I am through making the changes, where do I place the modified class files?
Any help will be great for me.
Thanks and regards
ManuHi Jamie,
Thank you for your reply: I found the site and downloaded the file:
j2sdk-1_4_0-src-scsl.zip
But I could not find the doclet classes in them... Perhaps I am not looking at the correct place?
I also downloaded another set of source files, j2sdk-sec-1_4_1-src-scsl.zip, and also expanded the source files zip, src.zip, that is bundled with the JSDK. These also did not have the doclet classes.
It seems a simple problem and I am surprised how difficult I am finding it to locate the files! :-)
Regards,
Manu
Maybe you are looking for
-
Error 15 with CLFN in nisyscfg.lvlib:Set System Image
Recently upgraded to LV 2012 and code that worked for imaging cRIOs in LV 2011 had to be replaced with the new and improved nisyscfg.lvlib VIs: Set System Image, Get System Image, etc,... I'm receiving the following error message when my installed ex
-
I have an iMac with a 10.4.11 operating system. When I click on iTunes Store, I no longer get the iTunes screen, instead, I get a new iTunes download screen. I can't download the new iTunes without upgrading my operating system. Is there a way arou
-
Rownum / sorting / query stops working / friday afternoon nightmate
Greetings, Let's say I have a perfectly working and very simple sql statement. This little thing turned my friday to nightmare. And I hope one of you can help me. :) SELECT 1 FROM my_tablel l WHERE l.first_id = :b1 AND l.open_flag = 'Y' AND NVL (l.fl
-
Would like to know how to create the sliding pics in this page: ww.jimdesmore.com/index.html#asis
-
I'm giving my old iPad 1 to my grandson. He already has a copy of my iTunes library, authorized to use. I expect that he won't be able to upgrade apps without using his own account, but for now, he should be able to use apps already on my iPad.