Data elements used in Z Program
Hi All,
I have to create a Z Program which has the Program name as input (Selection Screen) and i need to display the data elements (and details ex: data type , length) used in the program .
Can anyone help me out ..
Thanks,
Pradeep.
Enjoy
Had a very tough time debugging the standard functionality
DATA:environment_types TYPE envi_types,
output_list TYPE TABLE OF senvi,
source_searched TYPE TABLE OF rsfind,
lv_dtel TYPE ddobjname,
dd04v TYPE dd04v,
para TYPE tpara,
state TYPE ddgotstate,
wa_output TYPE senvi.
PARAMETERS:pa_prog TYPE tadir-obj_name.
START-OF-SELECTION.
environment_types-dtel = 'X'.
CALL FUNCTION 'REPOSITORY_ENVIRONMENT_SET_RFC'
EXPORTING
obj_type = 'PROG'
environment_types = environment_types
object_name = pa_prog
TABLES
environment = output_list
source_objects = source_searched.
LOOP AT output_list INTO wa_output.
lv_dtel = wa_output-object.
CALL FUNCTION 'DDIF_DTEL_GET'
EXPORTING
name = lv_dtel
state = 'A'
langu = sy-langu
IMPORTING
gotstate = state
dd04v_wa = dd04v
tpara_wa = para.
ENDLOOP.
The table dd04v will have the type and length and the table output_list holds the data element in the program.
Similar Messages
-
Changing Field Label length for Data Element using ABAP code.
Hi Experts,
We have a scenario where we have to update the maximum length of the various Field Labels (Short, Medium, Long..) for a Data Element using ABAP code.
Does anyone know how to do this ? Is there a Function Module available for this purpose ?
Appreciate your valuable inputs.Hi ,
Use the view
DD03M
Give
TABNAME as table name,
DDLANGUAGE = EN / sy-langu
and order by position. (for correct sequencing)
You will get description of the fields (short,medium, long etc). You will also get the length and other details. -
Getting error while updating data element using Xquery Automator
Hi,
I am getting following error while i am trying to update a data element in my task.
<Nov 28, 2011 5:02:40 PM IST> <Error> <oms> <BEA-000000> <automation.AutomationDispatcher: Failed to execute
on/plugin/external/ACOI_TMIP_POC/1.0.0/CLARIFY_Task.automatedtask.acoi_tmip_poc.ResponseAutomation] due to E
hile running Script resource [file:///D:/AshishWorkspace_WithOrchestration/ACOI_TMIP_POC/resources/CLARIFY_R
exception location: ; SystemID: module with no systemId*; Line#: 15; Column#: -1*
com.mslv.oms.automation.AutomationException: Exception thrown while running Script resource [file:///D:/Ashi
rchestration/ACOI_TMIP_POC/resources/CLARIFY_Response.xquery]; exception location: ; SystemID: *module with
e#: 15; Column#: -1
the Xquery that i am using is pretty simple:
declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptSenderContextInvocation";
declare namespace context = "java:com.mslv.oms.automation.TaskContext";
declare namespace log = "java:org.apache.commons.logging.Log";
declare namespace oms="urn:com:metasolv:oms:xmlapi:1";
declare namespace prop = "OSM_POC";
declare variable $xmlnsosm7POC := "";
declare variable $log external;
declare variable $automator external;
declare variable $context external;
let $CLFY_XML := //CLFY_XML
let $Id_Number :=//Id_Number
return
automator:setUpdateOrder($automator,"true"),
log:info($log,fn:concat('ID request number is: ', $Id_Number)),
<ord:OrderDataUpdate xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:odu="http://www.oracle.com/OMS/OrderDataUpdate" targetNameSpace="http://www.oracle.com/OMS/OrderDataUpdate" xmlns:ord="urn:com:metasolv:oms:xmlapi:1">
<ord:Add path="/CLFY_ID">{data($Id_Number)}</ord:Add>
</ord:OrderDataUpdate>
Can anyone please tell me the reason due to which this error is coming.
Thanking in advance
Ashish GargHello.
Ok I need you to tell me a little bit more about your automator, did you config an Xquery Automator with Event Type: Internal?
You should declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";
instead of
declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptSenderContextInvocation";
And let my ask you, what are you trying to do with the next lines:
let $CLFY_XML := //CLFY_XML
let $Id_Number :=//Id_Number
Becouse I think you are trying to acces the data on the task, If that is the reason, you should better use something like:
let $order := ..//oms:GetOrder.Response
let $orderId := $order/oms:_root/oms:orderHeader/oms:orderId
with the above lines you are accesing the data that has been added to the task and the just acces the node that you nedd, for example here Im accesig the node
orderId under OrderHeader
Another thing is that if you want to update node which already exists in the task data, then you have to use something like:
<OrderDataUpdate xmlns="http://www.metasolv.com/OMS/OrderDataUpdate/2002/10/25">
<Update path="/orderHeader/orderId">{$orderId}</Update>
</OrderDataUpdate>
But if you have to add a new path you should have something like this:
<OrderDataUpdate xmlns="http://www.metasolv.com/OMS/OrderDataUpdate/2002/10/25">
<Add path="/OrderHeader">
<Transaction>
<Name>{$orderId/text())}</Name>
<ComponentKey>{$controlData/text()}</ComponentKey>
</Transaction>
</Add>
</OrderDataUpdate>
For the above transaction you should have in the dictionary the structure, OrderHeader in the root, and inside this the structure another node with the respective names
<Transaction>
<Name>{$orderId/text())}</Name>
<ComponentKey>{$controlData/text()}</ComponentKey>
</Transaction>
Another thing is that you should have all this structures in the Task Data of this Task.
Hope this help
Lucas. -
CRM_MKTPL_CAMPTYPE data element use access error in z-table
Hi Friends,
I am using CRM_MKTPL_CAMPTYPE data element in my z-table for one z-field. While activating the z-table I am getting the folowing error.
The Object Table Zxxx uses Data element CRM_MKTPL_CAMPTYPE, Package Zxxx does not have sufficient use access.
Can anyone help me to resolve this issue.
Thanks in advance.Hi Vishal,
Thanks for your quick response.
I added "SAI_TOOLS" in Package Interface Tab but I am getting the following error "Package interface SAI_TOOLS available already".
I was tried with other option adding SAI_TOOLS in Use access Tab from the previous posts. But it didn't wok for my case. I think we need to add similar kind of Package Interface which is related to CRM Campaign.
If any one face this kind of issue please respond to this post.
Thanks. -
Releation between fields and data element
Dear Abapers,
What is the relation between the fields and data element, while cretion of fields system will ask the data element, can we have one data element to more than one fields. Can you plese explain me.
RegardsHi,
data elements are structures defined in SAP Dictionary.
Fields you meen in a table? or in programs? in both places you create in reference to SAP Dictionary.
data element char20. TEXT20
Programs data: l_text type char20.
Tables ... field ZTEXT type CHAR20...TEXT20 -
Changing field lable of KVGR1 data element.
Hi Guys,
I am changing field lable of KVGR1 data element. No. of depedent objects are also changed but some of the objects were end up with warning "Enahancement category for table missing". Since all this objects SAP Standard do I have to genarate key for every single one with warning to adjust the enhancement type.
Cheers
S KumarHi Amit,
I have already changed the Field labels and Description of KVGR1 data element using SSCR key.
Is it a good idea to revert it back. The dependent tables and structures are activated with warnings. Which is Enhancement category.
Cheers
S Kumar -
How to find which data elements are used in ABAP program ?
I wish to find out which data elements are used in some programs .
Is there any DD table which stores this information ?
I know we can go to program and look in fields, but do SAP stores this information somewhere ?Dear Kaushal,
Please check the table <b>TRDIR</b>.
Regards,
Abir
Don't forget to award points * -
A problem when using a data element in BAPI
Hi there,
I build a function module, and want to use it as a BAPI. But when I add the function module as a method of a BAPI object, it gives me the following error: data type xxxxx cannot be used for methods.
I guess the problem happens because of the type of data element I used for the input parameter of the function module. Thus I tried many other data elements, but I keep getting the same error. I am really out of the game. Could anyone tell me which data element I should use for the input parameter of the function module? The function module has only one input parameter, which should be a string with length less than 100.
Thank you so much!!
Sincerely,
BingThe function module has only one input parameter, which should be a string with length less than 256. (I tried many predefined data element like RPLM_STRING, but when I tried to add the function module as a method of BAPI, the SAP always gave me the error: data type xxxxx cannot be used for methods)
It only has one output parameter: RETURN (associated type: BAPIRETURN)
I am really not familiar with ABAP program, let alone BAPIs. Any suggestions would be very helpful to me. I sincerely appreciate your help.
Bing -
How to find Where does Data Elements and structures are used ?
Hi everyone .
Is there any table which stores data elements/structures and where they are used ?
If not is there any way to find by writing some <b>program</b> where does a data element or a structure is used ? Which tables will require for that ? If any one can give example it will be most helpful .
Thanks and Regards,
Kaushal N. ShahHi Kaushal,
DD04L stores the data elements.
DD02L stores the structures.
So you can query these tables & find them.
Regards,
Chetan.
PS:Reward points if this helps. -
How to make use of adjacent data elements within the same buffer
Hi,
Does anyone know how to make use of adjacent data elements within the same buffer? To make my question clearly, I would like to give you an example. In my application, I set "sample to read" as 10 which means at each loop 10 data samples will be taken into a buffer. Now, what I would like to do is to do some calculations on adjacent data samples in same buffer. I tried to use "shift register" for this, but it seemed to me that it only can deal with the calculation between data from adjacent loops. In other words, it skips 9 data elements and take the 10th one for the calculation.
Here I also attach my VI showing what I did.
Thank you very much in advance,
Suksun
Attachments:
wheel_encoder_1.vi 98 KBHi Suksun,
I hope you'll forgive me for distilling your code - mainly to understand it better. I tried to duplicate your logic exactly - which required reversing the "derivatives"-array before concatination with the current samples array. As in your code, the last velocity is being paired with the first position. If first velocity is really supposed to be paired with first position, just remove the "Reverse 1D Array" node.
cheers
Message Edited by Dynamik on 01-07-2006 03:17 AM
Message Edited by Dynamik on 01-07-2006 03:19 AM
When they give imbeciles handicap-parking, I won't have so far to walk!
Attachments:
encoder2.GIF 14 KB
encoder2.vi 102 KB -
Problem when using a different data element in Employee Tab Contact Info
Hello,
My version: Nakisa OrgChart 4.1
I created a data element whose fields I wanted to show in the Position details (in the Employee Profile panel, which use the default Static layout 'Employee Tabs'). I am trying to display some contact info, and I used the Employee Tab Contact Info section within Employee Tabs to do it. Somehow the fields captions do not show once I do that (see picture attached). I tried using the 'Employee Tab Data Sheet' section to display the same information, and it works fine.
Any thoughts what could cause this behavior? All the fields captions have values that were configured in the data element.
Thanks
M.E.Sorry, just re-reading from the start, you are saying this is purely dependent on the type of section you select. Right?
With "Employee Tab Contact Info", you say it doesn't show; Have you tried using Field/Value Section (Multiple)?
Also, when it doesn't work, what <presentation> is referenced in your custom section within "OrgUnitPositionEmployeeDetail.xml" (in \.delta\AppResources\detailconfiguration)?
Stephen -
Getting error while using the data element in ztable
though i specified the length as 20 in dataelement when i am entering the dataelement i am getting this error
while i used help i got the following information
Number of positions < minimum number (1) for data type CHAR
Message no. DO253
Diagnosis
A minimum length is required for the specified data type.
This minimum length is not reached by the specified number of positions.
Procedure
Increase the number of positions or select a more appropriate data type with the possible entries help F4.This is strange, you shouldn't even be able to activate the dataelement type char with a length of 0. Revisit your data element and make sure that the length shows to be greater than 0 and reactivate your data element to make sure the newest version is active. In case you are referencing a domain in your data element do the same with the domain after validating that everything is correct (you can also use the check function). Then go back to your table and reenter the data element before activating your table.
Hope that helps,
Michael -
Hi All,
I am facing below mentioned error while using '*'in the NTE (EDI 850) Segment where '*' is also used as Data Element
Error: 1 (Field level error)
SegmentID: NTE
Position in TS: 70
Data Element ID: NTE02
Position in Segment: 2
Data Value:
3: Too many data elements
For Eg: NTE*GEN*My Text *goes here
Here, NTE02 should be My Text *goes here. So, how can I use "*" here without changing anything in the EDI message?
Can it be done?
Thanks.Sorry, no.
X12 does not support an escape character so whatever is used for delimiters become reserved characters.
If you want to allow '*' in the data, you will have to chooser a different Element delimiter. The receiver should read the from this from the ISA Segment so it's supposed to be dynamic but that's not always the case in practice. -
Organizer won't open in Photoshop Elements 10. Says it is in use by another program.
Organizer won't open in Photoshop Elements 10. Says it is in use by another program.
This just started happening.... When I open Adobe Photoshop Elements 10 in Windows 7 and click on Organizer to open my catalog, I get a message that reads, " The catalog could not be opened because it is currently in use by another program." I know of no other program. I do backup my pictures with a Seagate backup external drive. How can I resolve this so I can work with my pictures again. Could this have anything to do with Adobe's switch to Adobe Revel?Have you tried restarting the computer?
-
I am trying to record 3 pieces of data, all (software) timing in ms (in U8 integers). I managed to finally get each data in the right column but now it doesn't record anything in the table and it doesn't update the numeric indicators during the experiment like it should. I can't figure for the life of me what I did wrong. I know at least the trial part of the program works, but so far the data recording part is giving me a headache.
Thanks
Attachments:
BETACRT.vi 241 KBWhy it is not reporting the data is easy; fixing the program may not be. LabVIEW uses a dataflow paradigm. This means that no part of the program executes until all of its data inputs are availble. In your case the table and the array functions driving it are fed by outputs from the outer while loop. Thus no data gets to the table until the while loop has finished executing (which is at the end of your experiment). One possible approach would be to store the data in a shift register and move the table inside the loop.
Many experienced LV programmers try to avoid or minimize the use of sequence structures and local variables to read and write to/from front panel objects. We use a state machine which is a while loop with a case structure. Queues can be u
sed to pass data between the user interface and the data acquistion loops. This subject is too involved to be handled in a brief posting, but if you search the archives and examples you can learn more.
Also, be aware that software timing can be problematic if you are using a desktop operating system. If the OS decides to check the net for software updates or something you could have large discrepancies in your timing. These might be rare, but there is no reliable way of detecting them. I have built several systems similar to what you seem to be trying to do and have never been successful with software timing.
Maybe you are looking for
-
how do I get my contacts back after they've disappeared? the contacts are still stored in my phone I just can't access them through my address book; only through Siri. I've restored my phone & that didn't work so what should I do?
-
Mass Change of Start Cycle Date of Plans
Hi All, Does any know of any standard Program or Transaction available for changing the Start Cycle date for Single Cycle Plans in Mass. Regards, Manish
-
Best way to charge battery of macbook air
i have a macbook air 13 inch 256 GB SSD. it is early 2014 version . i bought it in dec 18 2014. i have had 11 charge cycles up until now. the issue is that my battery full charge capacity has dropped from 7280 mah (100%) to 6818 may (95%) in a span o
-
Can I save my iMessages but not have them appear in my list?
I have a list of all of my iMessage convos. I would like to have them on my phone but not have them appear in my list. (Not active convos but want to save the information and don't want to have to scroll through them). Can this be done?
-
500 GB in MacBook Pro with problems restarting!
Hey, I just upgraded my MBP from a 200GB HDD to the Samsung Spin Point 500GB HDD! The Book started with the Leopard DVD and installed the System to the drive being formated to one partition and GUID/GPT and Case-sensitive Journaled HFS+ Now after ins