REG : How to read the value of Head of own org unit
Hi SRM gurus,
I have a requirement where I am populating the default purchaser, for that I am defaulting the purchaser as the head of Organizational unit.
Now my issue is I need to read this detail and populate in a custom field.
Do we have any BADI or FM which stores this (head of the purchasing org) data ?
Regards,
Aakash Awasthi
Hi,
you can try function module BBP_OM_STRUC_GET_MGR_FROM_ORG
Regards
Konstantin
Similar Messages
-
How to read the value of Non-Linear Transforme​r ?
Hi there !
I know that we could make "modified" transformer for special purpose (with Vsec=5V for example). But, instead of make a new transformer, it might be more easier if we could know how to read the value of those transformer. For example, NLT_PQ_4_120 or NLT_PQ_4_10. To be narrowed, what is the meaning of 4_120 and 4_10 ?
Anyone ?
Ghost Recon Team LeaderTo understand the models you mentioned you need to understand XSPICE. I suggest you use the virtual transformer instead because it is easy to change the turn ratio, you can double clicking on the component and enter what ever ratio you want. This component is found by selecting the menu PlaceàComponent
Group: Basic
Family: Basic Virtual
Component: TS Virtual
Tien
Tien P.
National Instruments -
BOL: How to read the value of an attribut
Hiii experts,
I'm new in ABAP programming.
My intention is to read the value of a context attribut.
This attribut ist not in form of a struct attribut. To read an struct attribut, I know to get the value, for example:
value ?= me->typed_context->BP_ADDR->collection_wrapper->get_current( ).
CHECK value IS BOUND.
value->get_property_as_value(
EXPORTING
iv_attr_name = 'CITY'
IMPORTING
ev_result = value_city).
But my problem is, that I have an attribut, which you can not find in the BOL browser, because it is not in form of a struct.
Can anybody help me, how to read the value of this kind of attributs.
Thank you very much in advance fpr your help,
JohnHii Clemens,
first of all, my concern deals with WebUI.
I expect to read the value of an attribut. I know how to read the value of an attribut, which can be found with the same description in the bol browser, as you know you can read it with:
value ?= me->typed_context->BP_ADDR->collection_wrapper->get_current( ).
CHECK value IS BOUND.
value->get_property_as_value(
EXPORTING
iv_attr_name = 'CITY'
IMPORTING
ev_result = value_city).
Now, I have an attribut of an context node which has a different name as in bol browser. If I want to read the value with the code above I get an error message. Thatswhy I referenced a collection of the context node to read this attribut.
Can anybody say me how the value of the attribut, can I use the methode get_property ?
greetings,
J -
How to read the backup file of my own iphone...
how to read the backup file of my own iphone... becase I'm running out of space in my iphone so need to delete some photos. I wanna know do i have to copy photos to my computer or is it available in the back up file ????
Always move (copy and delete) your photos from Camera Roll to your computer.
Camera Roll is the digital camera card. -
How to read the value of Inputfield in WAD in JAVA script?
Hi Experts,
I have a requirement in WAD .
I have put an Input Field (text box), a button and a script control in the web template.
In my script control function , I want to read the value entered in the input field using java script. How do I achieve it?
Thanks in advance.
Regards
akshayHi,
To do this, first you may want to view the HTML source of the report. So, when you have the report launched with the input field, right click and select View Source. Usually it is under a <span> tag with id something like sapbi_snippet_YOURWEBITEMNAME. Most useful commands here are document.getElementById and document.getElementsByTagName.
You can also access the input web item value using standard sap command SET_SELECTION_STATE_BY_BINDING. Take a look at the documentation on this.
Hope the above helps.
Regards,
wira -
How to read the value of OLAPDataGrid cell/s from external object
Hi,
I have an OLAPDataGrid control in an Adobe flex application,
and I am using the cutom renderer to render the cells of the
OLAPDataGrid ,
any Idea how I can read the value of each cell at the
renderer , so I will be able to decide about the actions for each
cell at the renderer?"j_shawqi" <[email protected]> wrote in
message
news:gkqgdl$539$[email protected]..
> Hi,
> I have an OLAPDataGrid control in an Adobe flex
application,
> and I am using the cutom renderer to render the cells of
the OLAPDataGrid
> ,
> any Idea how I can read the value of each cell at the
renderer , so I will
> be
> able to decide about the actions for each cell at the
renderer?
I'm thinking that you'll need to look at the listData
property. I'm not
sure what you get in an OLAP Grid that orients you to your
cell position,
but I'd set a break point in the listData override of your
renderer and see
what you actually have, or look at the docs for the data type
of the
listData object that the default renderer expects to get.
HTH;
Amy -
I want the read the value of a field,'LCSTATUS' belonging to context node 'BTADMINH' in the GET_I method of the field, 'ZZFLD000008' belonging to context node,'ZBTACTIVITYH'.
In the context node class of context node 'ZBTACTIVITYH',I have created an instance attribute,GR_OWNER type ref to context class.
I get the following error in the line - lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ).
'An exception (CX_CRM_CIC_PARAMETER_ERROR) occurred Message no. TPDA430'
I have used the below code.
method GET_I_ZZFLD000008.
DATA: current TYPE REF TO if_bol_bo_property_access,
lv_act_status TYPE string.
DATA:lr_entity TYPE REF TO cl_crm_bol_entity,
lr_current TYPE REF TO if_bol_bo_property_access,
lr_parent TYPE REF TO cl_crm_bol_entity.
rv_disabled = 'TRUE'.
if iterator is bound.
current = iterator->get_current( ).
else.
current = collection_wrapper->get_current( ).
endif.
CHECK gr_owner IS BOUND.
lr_entity ?= gr_owner->btadminh->collection_wrapper->get_current( ).
CHECK lr_entity IS BOUND.
lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ). "error states that lcstatus can't be used here.
TRY.
IF current->is_property_readonly(
'ZZFLD000008' ) = abap_false. "#EC NOTEXT
rv_disabled = 'FALSE'.
ENDIF.
CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
cx_crm_genil_model_error.
RETURN.
ENDTRY.
endmethod.Hi,
LCSTATUS is not an attribute of the BTADMINH structure. It is read using the relation to the status object
BTADMINH-> BTHeaderStatusSet-> BTStatusHCurrent-> ACT_STATUS.
Try reading the ACT_STATUS of object BTStatus as given below.
data: coll type ref to if_bol_entity_col.
data: entity type ref to cl_crm_bol_entity,
lv_act_status TYPE string.
entity ?= current. "BTADMINH entity.
coll = entity->get_related_entities(
iv_relation_name = 'BTHeaderStatusSet' ). "#EC NOTEXT
current = coll->get_current( ).
entity ?= current.
coll = entity->get_related_entities(
iv_relation_name = 'BTStatusHCurrent' ). "#EC NOTEXT
current = coll->get_current( ).
try.
lv_act_status = current->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'ACT_STATUS' ).
catch cx_crm_cic_parameter_error.
endtry.
Regards JP -
How to put the value in Header test while creating the sales order
Hi ,
I am creating the Sales order using the Idoc Orders05 .
I have to pass the value in the header text 1. the value is a transaction id which is a string value.
If anyone has an idea how to do this using the the Orders Idoc. it would be a great help
Thanks
NikhilIf you have access to idoc before calling the processing Function module, Adding header text segments E1EDKT1 and E1EDKT2 to the idoc will create the header text.
Regards
Sridhar -
How to read the value from one context node in other in the same view.
Hi,
I am working on enhanced component ICCMP_BP_CP/BuPaContactPersonCreate , i need to read the partner_guid from Customer context node in contactpersonaddress context node.
Could you please guid me how to achieve this? if possible, please explain me with some sample code.
i am trying this code in GET_FAXFAX method of contactpersonaddress-faxfax, but it is throwing me the type cast exception.
data: lr_entity type ref to cl_crm_bol_entity.
data: lv_test type string.
lr_entity ?= collection_wrapper->get_current( ).
lr_entity = lr_entity->get_related_entity( 'BuilContactPersonAddressRel' ).
Thanks in advance.
Regards,
Kamesh Bathla
Edited by: Kamesh Bathla on Jun 25, 2009 7:46 PMproblem solved by writing the code in context node class CREATE_CONTPERSADDRESSVALNODE method
coll_wrapper = customer->get_collection_wrapper( ).
TRY.
entity ?= coll_wrapper->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
IF entity IS BOUND.
CONTPERSADDRESSVALNODE->on_new_focus( focus_bo = entity ).
DATA: lr_collection TYPE REF TO cl_crm_bol_entity,
lv_fax TYPE string,
lv_fax_ext TYPE string,
lv_tel TYPE string,
lv_tel_ext TYPE string,
entity_addr TYPE REF TO if_bol_bo_property_access, "#EC *
coll_wrapper1 TYPE REF TO cl_bsp_wd_collection_wrapper.
lr_parrent type
lr_collection = entity->get_related_entity( 'BuilStandardAddressRel' )."'BuilContactPersonAddressRel' ).
IF lr_collection IS BOUND.
coll_wrapper1 = contpersaddressvalnode->get_collection_wrapper( ).
TRY.
entity_addr ?= coll_wrapper1->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
getting fax number
CALL METHOD lr_collection->if_bol_bo_property_access~get_property_as_value
EXPORTING
iv_attr_name = 'FAXFAX'
IMPORTING
ev_result = lv_fax.
***setting fax number
CALL METHOD entity_addr->set_property
EXPORTING
iv_attr_name = 'FAXFAX'
iv_value = lv_fax. -
How will read the value from Adobe Reader/Viewer in c# windows App
I m using VS2005 . working in windows appliction. i am using adobe Reader 9, Then the new pdf document open inside the Acrobat adobe reader , Exsiting PDF file is created by Adobe Forms(Adobe LiveCycle designer and Adobe pro 9).
Using the Class is:
1.AcroExch.App
2.AcroExch.AVDoc
3.AcroExch.pdDoc
4.Acrobat.CAcroApp
namespace is:
using AxAcroPDFLib;
using AFORMAUTLib;
using Acrobat;
Using DLL is:
1. Interop.Acrobat
2. Interop.AcroPDFLib
3. Interop.AFORMAUTLib
4. AxInterop.AcroPDFLib
My problem is,
I am Working in
PDFis open inside the adobe reader/Viewer, but i can not able to get the value from PDF Forms.
( This Pdf forms is Some more Control Design is Available)
Ex:
I have Attached my Pdf disgn file. Please see this Pdf file.
I am not able to get the value from inside window(adobe Reader/Viewer), but i can able to get the value from the out side of adobe viewer/Reader.
This coding not working properly,
try
CAcroAVDoc AcroExchAVDoc = default(CAcroAVDoc);
CAcroApp AcroExchApp = default(CAcroApp);
CAcroPDDoc oDoc = default(CAcroPDDoc);
AFORMAUTLib.AFormApp AFormAut = default(AFORMAUTLib.AFormApp);
AFORMAUTLib.Field Field = default(AFORMAUTLib.Field);
AFORMAUTLib.Fields Fields = default(AFORMAUTLib.Fields);
bool OK = false;
AcroExchApp = new AcroApp();
oDoc = new AcroPDDoc();
AcroExchAVDoc = new AcroAVDoc();
AFormAut = new AFormAppClass();
//AcroExchApp = (Acrobat.AcroApp)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.App" ));
//oDoc = (Acrobat.AcroPDDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.PD Doc"));
//AcroExchAVDoc = (Acrobat.AcroAVDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.AV Doc"));
//AFormAut = (AFORMAUTLib.AFormApp)Activator.CreateInstance(Type.GetTypeFromProgID("AFormAut .App"));
bool bOK = AcroExchAVDoc.Open(pdfWindowLeft.src, "Temp"); ' some time not true
' if ok (true) then
if (bOK)
Fields = (AFORMAUTLib.Fields)AFormAut.Fields;
foreach (Field myField in Fields)
if (myField.Name == "form1[0].#subform[0].Id[0]") ' field value not get from the inside window
string Id = myField.Value; ' not getting a answare
if (myField.Name == "form1[0].#subform[0].PatientName[0]")
string PatientName = myField.Value;
if (myField.Name == "form1[0].#subform[0].Email[0]")
string Email = myField.Value;
if (myField.Name == "form1[0].#subform[0].PhoneNo[0]")
string PhoneNo = myField.Value;
if (myField.Name == "form1[0].#subform[0].Address[0]")
string Address = myField.Value;
catch (Exception Ex)
lbl_Result.Text = Ex.Message;
finally
Conn.Close();
This coding is working properly,
try
String FORM_NAME = addressLeft.Text;
//String FORM_NAME = Application.StartupPath + "\\..\\..\\..\\..\\..\\TestFiles\\SampleForm.pdf";
// Initialize Acrobat by cretaing App object.
CAcroApp acroApp = new AcroAppClass();
// Show Acrobat Viewer
acroApp.Show();
// Create an AVDoc object
CAcroAVDoc avDoc = new AcroAVDocClass();
// Open the pdf
if (!avDoc.Open(FORM_NAME, ""))
lbl_Result.Text = "Cannot open" + FORM_NAME + ".\n";
return;
// Create a IAFormApp object, so that we can access the form fields in
// the open document
IAFormApp formApp = new AFormAppClass();
// Get the IFields object associated with the form
IFields myFields = (IFields)formApp.Fields;
// Get the IEnumerator object for myFields
IEnumerator myEnumerator = myFields.GetEnumerator();
bool bFound = false;
// Fill the "Name" field with value "John Doe"
while (myEnumerator.MoveNext())
// Get the IField object
IField myField = (IField)myEnumerator.Current;
// If the field is "Name", set it's value to "John Doe"
// form1[0].#subform[0].Name[0]
if (myField.Name == "form1[0].PatientInformation[0].Id[0]")
//form1[0].#subform[0].Id[0]
bFound = true;
lbl_id.Text = myField.Value;
//form1[0].#subform[0].Name[0]
if (myField.Name == "form1[0].PatientInformation[0].PatientName[0]")
bFound = true;
lbl_name.Text = myField.Value;
if (myField.Name == "form1[0].PatientInformation[0].Email[0]")
bFound = true;
lbl_email.Text = myField.Value;
if (myField.Name == "form1[0].PatientInformation[0].PhoneNo[0]")
bFound = true;
lbl_phoneno.Text = myField.Value;
if (myField.Name == "form1[0].PatientInformation[0].Address[0]")
bFound = true;
lbl_address.Text = myField.Value;
can u anyone help me. It's very urgent for my project.
Thanks for ur replay,
Regards
Ganesaselvam.IFirst off - the code you wrote won't work with Reader, it will only work with Adobe Acrobat.
Second, LiveCycle Designer-based forms are a special type of PDF and don't use AcroForms, they use an XML-based forms grammar. Therefore, the AcroForms API calls aren't designed to work with them. You should be using the JSObject bridge code along with JavaScript to access the values of the fields. -
How to read the value from other cubes ??
Dear All,
I have requirement to do some calculation where part of number there must be got from other info-cube.
e.g.
Cube 1
Has: Ch1, Ch2, Kf1, Kf2, Kf3
Cube 2
Has: Ch3, Ch4, Kf4, Kf5
Then the requirement need to compute:
KF1 = KF4 * KF3
Let say that our planning area use Cube 1.
Means, to get the value for KF1 we need to read data from cube 2.
I've tried to use this function: RSDRI_INFOPROV_READ
But it can't fetch the data. It caused when we go "manage" to
cube 1, the status for the corresponding request is yellow.
If we change the status into green, then we can get the record by that function.
My Questions is
Is there other way that can fetch data from other cube ??
Do you have any suggestions ??
Or ..
In my explanation above, is there some thing missing ?
Regards,
Niel.Hi Olivier,
Really thanks for your response...
But i still have distraction regarding your preceding posting ..
in a query, yellow requests from a trans cube can be read with the variable 0S_RQTRA (most current data) on 0REQUID.
I had a look into the corresponding exit ( FM = RSVAREXIT_0S_RQTRA ) and can see that SAP is filling 0REQUID with VALUE 'REQ_TRANS'
You mean, that we can check what status happening in corresponding info-provider by using this function: RSVAREXIT_0S_RQTRA . Am i right ?
Could you clear me up what the objective is for ?
I've tried your suggested function:
RSSEM_INFOPROV_READ
And yes it can take it .. But why it couldn't fetch all data ?
And also in RSSEM FG, i saw this function:
RSSEM_INFOPROV_READ_RFC
Do you know what the objective is for ??
Still need your guidance.
Regards,
Niel. -
How to read the value of the poplist
Hi,
I have a requirement to read the selected value of Poplist and pass this value to dynamic VO and execute the VO. So can anyone help me in this case
Thanks in Advance.Please always be as much detailed as possible. Just saying a sql error won't mean anything to anyone except you. Put details of all your steps and the error, issue you are facing.
--Shiv -
CL_SALV_TREE: How to read the value of a double-clicked field
Hey Guys!
I have build a list with CL_SALV_TREE. When the user makes a DOUBLE CLICK in a especially field of a line I want to call a transaction with the field's value.
Can you please tell me how exactly I can get the value of the double-clicked field?
Reacting on the double-click-event is no problem (thanks to the sap-sample-codes), but I just don't know how to find the item-value having node-key and columname.
I got this far:
* CLASS lcl_handle_events DEFINITION
class lcl_handle_events definition.
public section.
methods:
on_double_click for event double_click of cl_salv_events_tree
importing node_key columnname.
endclass. "lcl_handle_events DEFINITION
* CLASS lcl_handle_events IMPLEMENTATION
class lcl_handle_events implementation.
method on_double_click.
* selecting field's value
* call transaction
message i000(0k) with node_key columnname. 'just for test
endmethod. "on_double_click
endclass. "lcl_handle_events IMPLEMENTATION
I googled a lot and also searched in this forum and found some questions to a similar topic, but no solution to my problem.
Can you help me with some example-code?
Thank you very much!!!You need to get the Node and node value of the selected column like this.
METHOD on_double_click.
DATA: lr_nodes TYPE REF TO cl_salv_nodes,
lr_node TYPE REF TO cl_salv_node,
lr_val TYPE REF TO cl_salv_item,
lr_data TYPE REF TO data.
FIELD-SYMBOLS: <lv_val> TYPE ANY.
lr_nodes = gr_tree->get_nodes( ). " All nodes
lr_node = lr_nodes->get_node( node_key ). " selected node
IF columnname IS NOT INITIAL.
lr_val = lr_node->get_item( columnname ). " Object for selected column
lr_data = lr_val->get_value( ). " value of selected column
ASSIGN lr_data->* TO <lv_val>.
ENDIF.
ENDMETHOD. "on_double_click
Regards,
Naimesh Patel -
How to read the value of a CFL
Hi ,
I am writing an extension which uses the ui api to access the sales order form. I would like to get the value of the Customer code once an event et_CHOOSE_FROM_LIST is thrown.
I am able to handle the event, however I would like to know how can I access the Item and get the value that has been chosen by the user.
Thank you for your help and support.
Cheers,
MohamedHi Mohamed,
In the ChooseFromList Event use this :
Dim CFLEvent as SAPbouiCOM.ChooseFromListEvent = pval
if not CFLEvent.SelectedObjects is Nothing then
Dim o as Object = CFLEvent.SelectedObjects.GetValue("CardCode", 0)
End If
Regards
Edy -
How to read the value of a field of an IDoc
Hi my requirement is " read the LIFNR value from inbound idoc Then i should go for validation".
Hi,
Please check the code below:
LOOP AT idoc_data INTO wa_idocdata
WHERE docnum EQ gwa_edidc-docnum.
CASE wa_edidd-segnam.
WHEN 'E1EDL20'.
wa_e1edl20 = wa_edidd-sdata.
APPEND wa_e1edl20 TO it_e1edl20.
CLEAR wa_e1edl20.
READ TABLE it_e1edl20 INTO wa_e1edl20 INDEX SY-INDEX.
if sy-subrc eq 0.
processing......
endif.
Regards
Kannaiah
Maybe you are looking for
-
Messages app won't sync on one computer
Dear Community, I'm having problems with the Messages App on one of my 2 Business Computers. I do use a Mac Pro at work as well as one in my home office. Both are similar, running the latest version of Mavericks and do have the Messages App configure
-
[b]problem in starting j2EE RI server[/b]
I am getting this error when i try to start j2EE server. it is a J2EE RI installed with sunONE studio 4 update 1 edition. Can someone tell me what is the problem ? C:\Program Files\s1studio\ee\j2sdkee1.3.1\bin>j2ee -verbose No local string for j2ee.l
-
Is SAP HCM training/certification worth taking a risk and money?
I am based in one of the metro cities and have around 5 years of experience in HR-Recruitment field, current working with a big5 consulting firm. I sense a very slow career growth in my field and am planning to go for a SAP HCM certification. I check
-
Itunes keeps freezing after update....
Hi, I have had my Itunes library on a external drive through my airport extreme for some time now and have had no problems. When I updated my OS to Leopard and Itunes10 I started having problems with Itunes freezing. I realized I needed to mount my d
-
Combining multiple service into one service
hi i am trying to use one standard service and two external services to build a custom service. how do i use modelling toll available in PI 7.1 to do it. by the i really do not understand the concept of creating models. i mean the need for creating a