XVBAK-VKORG value is dis-appearing instantly, when I went to USER-EXIT??
Hi Experts,
for some VBAK-VKORG (sales org dependient) requiremetn, I found a user exit / spot, to add my code. the details are,
SAPLVEDA-> LVEDAF0C> LVEDAF14---> CALL CUSTOMER-FUNCTION '009'
(Already some others wrote some piece of code in this exit. So, i wanna use it again for easyness.)
So, when u see this exit, the XVBAK is available.
So, I put break-point at CALL CUSTOMER-FUNCTION '009' and learn that, the XVBAK-VKORG value is there, say 1000.
But, by keeping break point at INCLUDE ZXVEDU11 (debugging) when I went to this exit( INCLUDE ZXVEDU11) , I did NOT see the XVBAK-VKORG value, its dis-appeared !!!!!!!!!
but, as my requiremet is XVBAK-VKORG, i am intereted into it.
so, req. u that, let me know,
1 - Is SAP intentionally, is doing like this?
2 - or I am doing some thing wrong?
3 - so, if I doont see it in this exit, Can I get it by using FILED SYMBOLS?
thanq
Edited by: Srinivas on Jul 10, 2008 8:32 PM
Hi Srinivas,
That uxit doesn't have VBAK parameter , so u wont get those values inside of that exit. You can't change the user exit tables, export/import parameter.
You can access that value from the outside using field symbols. You can check the below thread discussing the same thing...
EXIT_SAPLIEDI_001 - How can i get order type into this user exit
It may helpfult to you.
Regards,
Naveen Veshala
Similar Messages
-
How to use a screen-field when applying BADI or User Exit to a T Code
Hi Experts,
I need your help on this problem.
I have created a BADI for the transaction code miro. I have got the Exit name on which the enhancement has to be done. I want to perform a check on a text field (Scrren field name INVFO-SGTXT).
When my break point occurs i enter INVFO-SGTXT in the field to check the value present in it. But it shows that no such field exists.
My Basic doubt is how to use a value entered in a text field in a tcode while performing a User Exit or BADI on it.
Do I have to declare it. If yes please mention how?
Thanks in advance guys.Hi,
The first question here would be... do you plan on having multiple implementations down the road because if not there really isn't any reason to create a BADI inside the exit. If that is the case then add the field as an importing parameter in your BADI interface and then you should be able to see it inside the BADI at your break-point.
Regards,
Ryan Crosby -
Hr_infotype_operation errors when called within a user exit
Hi there.
I am doing an enhancement in userexit PBAS0001 for CE using the enhancement framework.Whenever I am trying to change the payroll area in IT0001 by PA30 it has to give a message saying that 'all the assignments will change to new payroll areas do you want to continue?'if i say yes then the payroll areas for all the assignments should be chnaged to the current payroll area which I am trying to change.So after the pop up I am looping at all the assignments and calling the function module hr_infotype_operation.It gives an error Complex Application error.I debugged and saw that when it calls the function module the user exit gets triggered again and goes to the starting within the function call and hits the function module again and keep going like this.I checked the structure and all the parameters.looks fine below is the code where I am using the function module.I am trying to update IT0001 when somebody tries to change the IT0001(is that an issue??) i tried by submitting a program by calling the function module in the program.Didnt work too.Is there any way we can do it by BDC??
Check if the payroll areas are equal
IF ls_i0001-abkrs NE new_p0001-abkrs.
If the payroll areas are not equal then generate a message pop-up with 'YES' and 'NO' buttons
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Warning'
text_question = 'Payroll Area specified is different with other assignments.Do you want to move all the other assignments to the same payroll area?'
text_button_1 = 'Yes'
icon_button_1 = ' '
text_button_2 = 'No'
icon_button_2 = ' '
default_button = '1'
start_column = 25
start_row = 6
IMPORTING
answer = lv_case
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
CASE lv_case.
WHEN '2'. "For 'NO' button
LEAVE TO SCREEN '2010'.
WHEN 'A'. "For 'CANCEL' button
LEAVE TO SCREEN '2010'.
WHEN '1'. "For 'YES' button
Second Pop-up confirm
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Warning'
text_question = 'System will update all other assignments to the new payroll area'
text_button_1 = 'Yes'
icon_button_1 = ' '
text_button_2 = 'No'
icon_button_2 = ' '
default_button = '1'
display_cancel_button = 'X'
start_column = 25
start_row = 6
IMPORTING
answer = lv_case1
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
CASE lv_case1.
WHEN '2'. "For 'NO' button
LEAVE TO SCREEN '2010'.
WHEN 'A'. "For 'CANCEL' button
LEAVE TO SCREEN '2010'.
WHEN '1'. "For 'YES' button
For all the assignments read the infotype 0001 and update the payroll area
LOOP AT lt_pernr INTO ls_pernr.
CLEAR:lt_i0001,ls_i0001.
REFRESH lt_i0001.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
tclas = 'A'
pernr = ls_pernr
infty = '0001'
begda = new_p0001-begda
endda = new_p0001-endda
bypass_buffer = 'X'
IMPORTING
subrc = lv_subrc
TABLES
infty_tab = lt_i0001
EXCEPTIONS
infty_not_found = 1
OTHERS = 2.
SORT lt_i0001 BY endda DESCENDING.
READ TABLE lt_i0001 INTO ls_i0001 INDEX 1.
ls_i0001-abkrs = new_p0001-abkrs.
lv_record = ls_i0001.
Lock the employee
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = ls_i0001-pernr
IMPORTING
return = lv_return.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0001'
number = ls_i0001-pernr
validityend = '12302006'
validitybegin = '12012006'
record = ls_i0001
operation = 'INS'
IMPORTING
return = return.
*unlock the employee
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = ls_i0001-pernr
IMPORTING
return = lv_return.
SUBMIT zhr_infotype_operation_py_area USING SELECTION-SCREEN '1000'
WITH p_infty = '0001'
WITH p_pernr = ls_i0001-pernr
WITH p_endda = new_p0001-endda
WITH p_begda = new_p0001-begda
WITH p_record = lv_record
WITH p_opera = 'INS'
WITH p_tclas = 'A'
AND RETURN.
ENDLOOP.
ENDCASE.
ENDCASE.
ENDIF.maybe a little late, but I had found this message today (searching for different problem) but maybe the date for HR_infotype_operation might do a little problem, cause you are filling it with: DDMMYYYY but it should be YYYYMMDD so it just translate it that this is really far in the past so that might be a problem. Try sy-datum instead and for the end of validity try '99991231' dont worry, when you will update the same infotype again, the FM will end the previous infotype to previous day and the new one will get validity from sy-datum till the end ....
-
Check for the multiple values of the order type in if cond. in user exit
Hi all,
I have the exisitng code like this.
IF AUFK-AUART = C_STAT_1000.
RETAIL = C_RETAIL_X.
ELSE.
SEARCH W_SYST_STAT FOR 'SETC'.
IF SY-SUBRC <> 0.
ERR_MSG-MSGID = 'ZP'.
ERR_MSG-MSGTY = 'E'.
ERR_MSG-MSGNO = '017'.
ERR_MSG-MSGV1 = DETAILS-RAUFNR.
APPEND ERR_MSG.
EXIT.
ENDIF.
ENDIF.
In the above code, the order type aufk-auart is checked for a single value '1000'.
How do i include the logic tocheck if aufk auart for multple values in tha if condition.
It can be multiple values of whihc i do not have the detail.
Regs,
SuryaD.Hi all,
I have the sample code with me.
Hope this helps someone who is looking for the usage of this Function module.'K_HIERARCHY_TABLES_READ'
DATA:
l_set_node_tab LIKE grpobjects OCCURS 0 WITH HEADER LINE,
l_set_val_tab LIKE grpvalues OCCURS 0 WITH HEADER LINE,
l_info LIKE grphinfo,
l_overrite LIKE sy-datar,
l_set_class(4) TYPE c,
l_set_id(34) TYPE c,
l_set_kokrs LIKE sethier-kokrs,
lr_auart TYPE RANGE OF auart,
lr_auart-line LIKE LINE OF lr_auart.
CONSTANTS:lc_set(3) TYPE c VALUE 'SET',
lc_id(22) TYPE c VALUE '0000Z-GPMRCMI-EXC-CUST',
lc_i TYPE c VALUE 'I',
lc_bt(2) TYPE c VALUE 'BT'.
CLEAR:
l_set_node_tab,
l_set_node_tab[],
l_set_val_tab,
l_set_val_tab[].
l_set_class = lc_set.
l_set_id = lc_id.
CALL FUNCTION 'K_HIERARCHY_TABLES_READ'
EXPORTING
e_class = l_set_class
e_setid = l_set_id
e_kokrs = l_set_kokrs
e_mandt = sy-mandt
TABLES
t_nodes = l_set_node_tab
t_values = l_set_val_tab
CHANGING
c_info = l_info
c_overwrite = l_overrite
EXCEPTIONS
no_controlling_area = 1
no_chart_of_account = 2
different_controlling_areas = 3
different_chart_of_accounts = 4
set_not_found = 5
illegal_field_replacement = 6
illegal_table_replacement = 7
fm_raise = 8
convert_error = 9
no_overwrite_standard_hier = 10
no_bukrs_for_kokrs = 11
OTHERS = 12.
IF sy-subrc = 0.
CLEAR : lr_auart.
REFRESH lr_auart.
create internal set table
LOOP AT l_set_val_tab.
lr_auart-line-low = l_set_val_tab-vfrom.
lr_auart-line-high = l_set_val_tab-vto.
lr_auart-line-sign = lc_i.
lr_auart-line-option = lc_bt.
APPEND lr_auart-line to lr_auart.
CLEAR lr_auart-line.
ENDLOOP.
ENDIF. -
Passing Multiple Single values in User Exits
Hello All,
I have a requirement where in, a user could enter either a single value, multiple single values or a combination of a range and single values.
This set of values need to be passed on to a variable with in a user exit. I have been able to get either one single value to pass or one single range. I am unable to pass on multiple single values or a combo of a range and single value from the user entry.
I would appreciate if anyone could help me with the structure of the code to pass multiple single values or combo.
I was wondering if I would need to pass the values into an internal table first and then pass it to the user exit variable. However, as I am not a strong ABAP resource, I am struggling.
Any and all help is deeply appreciated.
Warm regards
SunilHello Marc,
There are two requirements which I was trying to address.
1. IN few queries, the users enter either a range of profit centers or multiple single values in the pop-up window. I need to pass those values from that variable to an variable of type USer Exit to derive partner profit center values with in the query.
For this I have been able to pass values for either a single value or a single range. I am unable to pass on values for multiple single values or a combo of a range and single values.
2. I am trying to create a query for the top 5 customers to be used in the Corporate Performance Monitor. However, when I am trying to use the variable of type "replacement path", the system does not allow me to release it for OLE DB for OLAP.
To obviate this problem, I was hoping to create a variable of typeUSer Exit" and then pass the values from the variable of type "replacement path" to this variable.
Is it a workable solution? I was hoping that the method to pass the values in both the above scenarios might be similar.
Please guide me.
Warm regards
Sunil -
PO Release strategy User Exit if value is Reduced
Hi,
I need to write a user exit to trigger the release strategy in Purchase order even if the value is "Reduced".
As you may be knowing releases will only be triggered if the value is increased according to standard SAP functionality.
So to trigger the release stratgey even if the value of PO is reduced some one suggested me user exit "M06E0004" Program :ZXM06U22.I guess we need to define a new characteristic called "URSC1".But cannot make out how really i can achieve this.
Can any one please guide,if you have worked on it earlier.
Thanks.Gentlemen,
Any Ideas....!!! -
SEM Measure Builder - dataSource values are not appearing in measures
Dear Experts
we recently upgraded our SEM system from 4.0 to 6.0. I am getting few problems in measure builder catelouge entries. when i checked the measures in measure catalouge the datasource tab is blank. Can any one please tell me how do I get the results in datasource tab. Measure values are not appearing in DataSource tab in measure catalouge.
Thanks
PramodYes, all the column entries must have agg rule. You can specify one such as 'first' in the pivot table.
-
Global color values differ between palettes and when converted (Adobe Illustrator)
I have a swatch file with a bunch of global colors inside. When converting the global color to editable RBG in the Color palette, the values are correct. However, if I use the Eyedropper and sample the color, then double-click the boxes in the Tool Palette or Color Palette, the values are completely different. When the colors don't have the 'global' setting checked this doesn't happen. Does anyone know why?
A lot of people are going to use this swatch file, and likely will use Eyedropper to select like colors, and with some peoples' workflow it's likely these incorrect values will creep in.philwiles wrote:
... my eps logo ..
Why are you using EPS? It is kind of outdated format these days.
EPS does not support color profiles. The default Save as EPS options in Illustrator include CMYK conversion which changes the values. To avoid this uncheck "Include CMYK Post Script" in the save options. Then when you open the file in Photoshop the RGB values will be the same and if you want it displayed the same, in Photoshop choose Edit > Assign Profile and choose the same profile - Adobe RGB in your case. The color settings in Photoshop will have no effect and can remain unchanged.
If you do that using the same computer the colors will be identical in values and appearance. If you do it on different computers the values will be the same and the color appearance will depend on if both computers have been calibrated to display colors accurately. -
How to set a value in a managed bean when click on a button
Dear all
I have a managed bean that contains an attribute of type string as follow:
the attribute name is taskFlowId
package dhamanADM.view.beans;
import oracle.adf.controller.TaskFlowId;
public class dynamicTaskFlowManager {
private String taskFlowId = "/WEB-INF/flows/procedureMaster.xml#procedureMaster";
public dynamicTaskFlowManager() {
super();
public TaskFlowId getDynamicTaskFlowId() {
return TaskFlowId.parse(taskFlowId);
}I want to change the value of this attribute when clicking on a commandMenuItem as follow
<af:commandMenuItem text="Mission Persons" id="pt_cmi1"
action="missionPers">
<af:setActionListener from="/WEB-INF/flows/editPersionMission.xml#editPersionMission"
to="#{pageFlowScope.dmDynamicTaskFlowManager.dynamicTaskFlowId}"/>
</af:commandMenuItem>at run time when clicking on the menu this error appears
java.lang.IllegalArgumentException: Cannot convert /WEB-INF/flows/editPersionMission.xml#editPersionMission of type class java.lang.String to class oracle.adf.controller.TaskFlowId
My target is just to change the value of the attribute "taskFlowId" when clicking on the commandMenuItem
how can i do this?
Thanks in advance
Edited by: ta**** on Mar 29, 2011 1:24 PMYou are setting to set a String value where a type of TaskFlowId is required.
Looks like, you are trying to set the taskFlowId for the dynamic region. Modify the code as follows:
public class dynamicTaskFlowManager {
private String taskFlowId = "/WEB-INF/flows/procedureMaster.xml#procedureMaster";
public dynamicTaskFlowManager() {
super();
*public TaskFlowId getDynamicTaskFlowId() {*
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
String currentTaskFlowId =
*(String)adfFacesContext.getPageFlowScope().get("CurrentTaskFlowId");*
if (currentTaskFlowId == null ||
*currentTaskFlowId.trim().equals("") == true) {*
currentTaskFlowId = taskFlowId;
return TaskFlowId.parse(currentTaskFlowId);
In the MenuItem, modify it as follows:
<af:commandMenuItem text="Mission Persons" id="pt_cmi1"
action="missionPers">
*<af:setActionListener from="/WEB-INF/flows/editPersionMission.xml#editPersionMission"*
*to="#{pageFlowScope.CurrentTaskFlowId}"/>*
</af:commandMenuItem>
Thanks,
Navaneeth -
When I create a user, appears Event ID 3001 and can't recive e-mails
Hi all,
I hope can help me with this issue.
When I create an user in Exchange, the following logs appears:
Failed to generate email addresses based on template "CCMAIL: at MEXDOMAIN01". Additional message: "Failed to find the address type object in Active Directory for address type "CCMAIL:AMD64".".
Failed to generate email addresses based on template "MS:PRODUCTOSF/MEXDOMAIN0". Additional message: "Failed to find the address type object in Active Directory for address type "MS:AMD64".".
The account behavior is: I can send e-mails but I can´t recive.
Any idea?
Thanks, Best regardsThread is a bit old, but I do not see ANY value in the entry for "disabledGatewayProxy" - it shows "Value <not set>"
I am seeing the same or extremely similar error as the original poster, but I DO see an attribute value in "gatewayProxy"
"gatewayProxy" attribute has those values:
CCMAIL:at [our Exchange domain]
MS:[whatever-Exchange-name]
Here are the errors:
Failed to generate e-mail addresses based on template "MS:***name-0*/***-name1*". Additional message: "Failed to find the address type object in Active Directory for address type "MS:AMD64".".
Failed to generate e-mail addresses based on template "CCMAIL: at ***Our-Mail-Domain*". Additional message: "Failed to find the address type object in Active Directory for address type "CCMAIL:AMD64".".
So, Gen Lin, did you mention the wrong entry, because my "disabledGatewayProxy" attributed is empty; but "gatewayProxy" has those values you mentioned. We did, at one time, have Exchange 2003; way back many years ago; it could be
something Microsoft, in its infinite wisdom, forgot to clean up, when we removed Exchange 2003.
So, is it safe to remove those values from the attribute named "gatewayProxy?"
We currently have one Exchange 2013 server - only one "test mailbox" on it, and I am seeing those errors in the application event log.
We still have 2 active Exchange 2010 mailbox servers - these changes will not "break" our 2010 Exchange servers, right?
Any information is greatly appreciated! Thanks.
tnjman -
My safari menu bar is missing. The menu bar for desktop, HD, and apps appears, but when I click on Safari, it disappears, so I can no longer see my buttons for History, etc. I think my husband (pc user) clicked it away when borrowing my computer. Any ideas how to retrieve it? Thanks.
I too was having the same problem However, I could access both the menu bar and the dock by hovering my mouse over them so it wasn't a huge problem but I prefered having it there anyway. I was not in full screen mode and I could still go into full screen mode if I wanted to. I found the easiest solution was to just quit safai and restart it, but it might not work for you considering you couldn't access you menu bar either way.
I found this article that allows you to hide/show the menu bar and the dock through TextEdit (didn't work for me) http://www.mactricksandtips.com/2009/07/hide-the-menubar-or-dock-in-specific-app s.html It is pretty old so it might not work for lion and a bit risky if you don't know what you're doing so I wouldn't really recommend doing it this way.
And KSheppard, I know it's not really any of my buisness, but the way to get answers to a question isn't by insulting others and being quick-tempered. Even if you feel like you were insulted first, don't try snapping at people who aren't obligated to help you. Honestly, it just makes everything easier if everybody is cooperative and polite. -
My Iphone has family emails that appear randomly when I try to update apps or generally have to log into my account. It comes up as my sister in laws address. She was once connected to our account when she got her phone at first. How can I remove? There are only two other email address's associated with my account and hers was never one of them! I do have a cloud set up on my phone. I thought this issue had gone away when I canged my passwords, but I just registered a new phone yesterday and its happening again!
Can anyone help me?Apps are permanently tied to the Apple ID used to purchase them, and all future updates will require you to enter the password associated with this ID, whether you are currently using this ID for purchases or not. If you are being prompted for your sister-in-law's Apple ID when updating it means that there must be one or more apps on your phone that was purchased using her Apple ID. (When she synced with your computer it may have transferred this app to your library. It was subsequently synced to your phone.) The only way to stop the prompt for her ID is to delete these apps from your phone and your iTunes library and repurchase them using your Apple ID.
-
Can anyone please help! I haven't been able to connect to the iTunes store to purchase music for some time now. When I click on the iTunes icon my music library appears, but when I try to connect to the store (top RH side of window) I get a new window saying cannot connect to the store an erroe -3221 has occured.
Baseal wrote:
When I use her Earthlink email address to download apps or whatnot, it says I can't access teh itunes store.
When you say "her email address" do you mean that you set up a separate Apple ID for her using her email address as her Apple ID? If so, was it ever verified by Apple? Did she get the email verification?
You might look here for some help.
http://www.apple.com/support/appleid/ -
Is there a way to make the bookmarks panel appear only when bookmarks are actually present? As in, I'm looking for a global setting so that I don't always have to update the properties in each document.
AFAIK, no.
-
How can I avoid an iPad appears in iTunes when I have multiple users in lion?
Hi,
I have 2 users accounts in Lion, and in both I have iTunes always open. Also have 2 iPads. Both have the sync by wifi enable.
One of the iPads, once was synchronized with the iTunes of one of the users accounts cable, and now want that only tries to sync with the itunes of the oyher user account, because it always try to sync with the first one, and not apearing in the other till I eject and change to the other account.
Thank you
Best regards
SalvaWelcome to the Apple Community.
You would only need homesharing on your iPad if you want to use the remote app (which is quite handy actually). To be able to use the iPad with the Apple TV, you use AirPlay, but the iPad won't show up in a list on the Apple TV, you send content from the iPad itself.
Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
When displaying the content you wish to mirror on the iPad 2 (or better), iPad Mini, iPhone 4S (or better), double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices.
Maybe you are looking for
-
I have about 300Gb of tunes on a usb disk that I have shared on a file server. I'd like to share those MP3s between my iMac, MBP, and my wife's Mac Book Air. Currently, I have the volume shared, and I've pointed both of our itunes libraries over ther
-
How do I resolve issue of new version of itunes software not installing on my computer? I get error message when I start the install..
-
Connect to standard defintion TV?
I have a g5 isight imac that will shortly be retired to another room that also has a standard definition TV (with component input as well as scart/ composite). Would it be possible to connect computer to TV? If so, which lead is necessary? And if any
-
IStat Pro, SMC fan control and tempuratures
I've been watching the recent temp. problem threads with great interest. My Imac has had no operational flaws *knock wood* but I'm a bit concerned with the temps which iStat Pro is reporting. For instance; CPU A 103 F. CPU diode 133 F. Ambient 79 F.
-
I had an Excel spreadsheet with a bunch of columns to track calls I do. on another worksheet I used pivot tables to track some call statistics that used information from multiple columns (there is a month column and a call-type column and i tracked t