How to control field status depending on input parameter to screen?
Hi,
I'm sure I met the solution somewhere, but can't find it. Here is the situation:
I have Screen sequence - my scr.100 calls 110 (detailed screen). I would like to achieve creation or modification of a detailed item depending on an input parameter (ok_code), which I know how, but whould also like to set some fields for input/output or for output only depending on the same parameter.
Could anyone help me with piece of code or describing what should I do to achieve this (in an example of 1 field)?
Possible variant is to create another screen - for modify mode, which is not so elegant for me, and yes, I know how to do that.
Many thanks in advance.
Ivaylo Mutafchiev
Try this.....
LOOP at Screen.
if screen-name = 'YOURFIELD'.
screen-input = '0'.
modify screen.
endif.
endloop.
Regards,
Rich Heilman
Similar Messages
-
How to force field to appear in input structure in content conversion
Hi all,
I am doing file content conversion in sender File adapter. Here is the structure
Header
Body
field1 - length 2
field2 - occurrence 1:1, length 3
field3 - length 2
field4 length 2
Trailer
Here is the fixed length file that is inputed into XI
<b>header22 2211trailer</b>
field2 occrence is 1:1 and as you se from the file example field2 from the body is empty(just space).But When I do the content conversion I don;t have this field showing up in my structure!??!!
I want to make sure that field2 appears even as empty field because that is screwing my mapping!?
Can you please have any idea how to make sure that field is in my input structure when I pass spaces?Can I force it somehow?
Thanks all.Hi Jon,
Yes you are right.
For Ex: ur XML is
<1>a</1>
<2>b</2>
and sometime is there is no value ur FCC will become
<1>a</1>
So what you have to do is in the message mapping take the source element
if <2> exists then <2>---->Target
else
<2>---->Constant(space)
and this "exists" is a standard function in NodeFunctions.
Regards, -
How to control the line-in volume input via LabView?
Anyone know how to control the line-in volume and balance input via LabView?
I assume you are referring to audio line-in volume control and lerft-right balance...
If so, then check out this thread:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000D83A0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
Look at the info near the bottom from Paul S & Spectre. They talk about "winmm.dll"
-cheers-
JLV -
How to Change Field Status Group pertaining Value in SPRO
Dear Sir,
We are required to change the value for "Cost Center" as sppressed against a GL in the Field Status Group .
We followd following path :
Run Tcode FS00 , giving GL as 351200 , and on "Create/Bank/Interest" Tab double clicked the "Field Status Group" > Double click on "Additional Account Assignment"> Here against the Cost Center it is marked as Suppressed , but we want it to be marked as "Req Entry" .
Kindly guide me , how can this value be changed please .
Regards
B V Mittalhii
u can do it through obc4.
go to obc4 select the varient. and than go to G004 cost center field statu varient..
go to additional account assignments and than change status to the required field.
Than assign that G004 to GL account.
Thanks
sejal -
How to control a 1hp motor using input from battery voltages
I'm brainstorming ideas on how to control a motor based on an input from battery voltages. The idea is to monitor battery voltages and output ideal motor speed in order to get maximum effieciency for a specified period of time. The batteries will be recharged with solar panels while the motor is running, so I was hoping to use lab view to get rid of any human calculations or throttle controls to optimize performance. The problem is that I'm not sure if the labview equipment is powerful enough to control a motor of that size.
check out this link. i had similar problem but with a less power motors, but this idea should work. NI hardware can support upto 1.6 HP if you configure appropriately
http://forums.ni.com/t5/Motion-Control-and-Motor-Drives/flyback-diode-value-for-12VDC-12-Amp-motor/t... -
How to set fields contained in an input structure as not mandatory in WSDL
Hi all,
I hope someone can help me sort out a problem I've been having recently.
I'm generating a WSDL from a function module, which has a structure as the only input parameter. This structure contains a number of fields, which need to be presented as not mandatory in the WSDL descriptor.
I modified the function module by setting the structure and all its contained fields as not mandatory, but when I generate the related WSDL it shows the structure as optional and its subfields as mandatory.
Below is a snippet of the WSDL:
<xsd:element name="Zk4RfcTibcoFatt">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="XZk4Headprev" type="tns:Zk4Headprev" minOccurs="0" /> <-- optional structure
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="Zk4Headprev">
<xsd:sequence>
<xsd:element name="RecordType" type="n0:char4" /> <-- non optional parameters
<xsd:element name="IdricTecn" type="n0:char15" />
<xsd:element name="IdricFour" type="n0:char15" />
<xsd:element name="CodOperaz" type="n0:char4" />
</xsd:sequence>
</xsd:complexType>
I can't understand why the stucture's elements are not defined as optional in the WSDL, while they're configured as optional in the function module definition. I'd expect a minOccurs="0" added to each structure's element definition.
I even tried modifying manually the WSDL from SE80, but it seems it can't be altered in any way.
Has anyone a solution to this problem?
Thanks in advance.
Best Regards.I tried to do that, but I can't manage to edit the WSDL in SE80, is there a way to do it?
I also tried modifying the WSDL in an external editor, but I can't find a way to switch the edited one with the original one in SAP.
Can you please help me on that?
Thanks in advance for any help you can give me. -
How to create Graph display depends on input values/
hello,
I want to show moving line graph that changes depends on input values.
If I get input as wireless device receiving signal strength, I want to display the receiving signal strenth changes in graph.
Is it possible in java.
what class shall I use for this graph display.
pls give any information regarding this.www.jfree.org
-
How to get System status Check Boxes into Query selection screen
Dear experts,
Pleas help in knowing how to get System status Check Boxes into quick view query (SQVI), selectionscreen.
Regards
Jogeswara Rao
Edited by: K Jogeswara Rao on Jul 6, 2010 7:26 PMProblem solved through other Forum
(Checkboxes not possible, some alternative solution to my requirement found) -
How to get invoice status columns available in invoice general screen
Dear All,
How to get invoice status in oracle invoices
Invoice Status --> Validated, Never Validated, Cancelled etc
please advice me.
Thanks
Rehan
Edited by: 877432 on Oct 9, 2012 3:52 AMfor
>
which is not giving this function kindly where i find these status.
>
re-read
>
plz see http://www.shareoracleapps.com/2010/10/api-to-find-ap-invoice-status.html
also Where Is The Invoice Validation Status Stored? How Is The Invoice Validation Status Determined? [ID 301806.1]
>
those notes point about statuses - 'Validated' , 'Never Validated' , 'Needs Revalidation'
if you want 'Unpaid' , 'Fully Applied','Available' etc instead of 'UNPAID', 'FULL', 'AVAILABLE' etc you can use lookups
see note in http://andyblg.wordpress.com/2012/10/09/approval-status-for-invoice-in-r12/ -
How to add fields in custom infotype and update its screens
Hi Experts
I want to enhance a custom infotype ( Add some new fields, and add special function on its screen). This custom infotype is created in previous release. is there any way to add fields in infotype? and let system automatcailly modify corresponding screens to add new fieldsGo to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the u2018Employee Infotypeu2019 radio button.
4) Select the u2018PS Structure Infotypeu2019.
5) Click on Createu2026 A separate table maintenance window appearsu2026
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on u2018Allu2019 push button. It takes a few moments.
10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
11) Click on u2018Changeu2019(pencil) button
12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
13) Give u2018T591Au2019 as subtype table
14) Give u2018T591Su2019 as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
18) Click on u2018Changeu2019 (pencil) button
19) Click on u2018New Entriesu2019
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirementu2026
25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Donu2019t forget to u2018Activate at every level
i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype -
How to control field length in SAP query's report output
HI everybody,
I have one scenario in SAP query in which there are two fields in the report output:
Milestone descrition and milestone description Long Text.
In CJ02 (WBS element overview), these two fields are populated with some text.
If description is exactly same as LOng text, long text is NOT getting displayed in output.
If long text is having more characters than description then only long text gets displayed in the output.
Do we need to change infoset or query settings? I haven't handled SAP query programming before.
PLease give some suggestions how to achieve this or I have to write custom report.
Any inputs on this will be highly appreciated.
Regards
KaushalHi,
Refer to this link..Additional field in SAP Query
[Creating Additional Fields |http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm]
[Code|http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm] -
How to control edit status of tableview line
HI EVERYBODY,
Good morning.
I want to control tableview line edit status as T-CODE 'CS02',some lines(items) can be edited and the others can not be,pls tell me how to do,tks all of you!Hi Howard,
You can achieve this by using Menu. Click on the line then Select in the Menu as follows:-
Format -> Line -> Line Width
Choose appropriate line thickness.
Have a nice day...
Raja Angamuthu B -
How to control the status of EDI message in delivery document
Hello:
We use user exit:EXIT_SAPLV56K_001 in function:IDOC_OUTPUT_Delivery to block the IDOC generation if delivery is blocked in GTS system.The IDOC generation can be blocked successfully by this user exit but the EDI message type will still have the status of "successfully processed" in the delivery doucment after IDOC generation is prevented.So user have to manually repeat the EDI Message type so that this EDI message type can be retriggerred by the background job of RSNAST00.
I am wondering if the EDI message in the delivery document can have the status of "not processed" even after IDOC generation is prevented.
BR
ThanksDid you raise any exception like ERROR_MESSAGE_RECEIVED from the exit when the delivery is blocked?
The most important is the RSNASTED should get some exception to set RC = 4 (Non-zero). Only in that case, the EDI message type will go to error (i.e. VSTAT = 2) otherwise, by-default the RC = 0 unless we lead it to set to non-zero. Unless u make VSTAT = 2, you can't process it thru' RSNAST00 or better RSNAST0F for reprocessing the messages that go to error. -
How to Make Field "Creation Date" Mandatory (in EP Selection Screen)
Dear experts,
I am on SRM 7.0.
In Shopping Cart, i'd like to set Field "Creation Date" as Mandatory Field in EP Selection Screen / Criteria Maintenance.
Is there BADI or SPRO need to be maintained?
Thanks & regards,
Jack
Edited by: Jack4ever on Aug 9, 2011 7:42 AM
Edited by: Jack4ever on Aug 9, 2011 7:43 AMHi Jack,
Not sure if it possible in standard with any customizing but it might be able to achieve this through webdynpro enhancements.
Regards,
Prasanna -
How to set Date range for a input parameter in a report
Hi,
I have 2 parameters start and end date. I want users to select the end date only 3 days from which ever start date they select. How to achieve this in parameter validation in SSRS?
Thanks,
PreethaJust make default value of Enddate parameter as below
=DateAdd(DateInterval.Day,3,Parameters!StartDate.Value)
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Maybe you are looking for
-
"Could not complete the requested operation" error
I've searched and read several threads on this topic, but the behavior I'm seeing here seems different. I'm using AI CS2, XP. Try to start AI. It immediately shuts itself down, no error message. I close Firefox. Try to start AI. "Could not complete t
-
I had a library of about 500 songs, some purchased and some imported from cd's I have since lost in a fire. Only the purchased ones now appear in my itunes library. Does that mean iI have to subscribe to music match in order to have all of my music i
-
How can I import an iMovieHD (5.0.2) file into 10.0.3?
Have an edited iMovieHD (5.0.2) on my PowerePC G4, OS X 10.4.11, that I'd like to migrate/import to iMovie 10.0.3 (Mavericks OS X 10.9.2); can this be done, and if so, how?
-
Buttons not working when slide is open
I bought my E65 like .. umm.. a week ago, n now when i open the slide " right button, mute button, c button contacts button and the exit button isnt working, n when i close the slide they works only... it has no warranty on it because i bought a used
-
Symbols generated when Caps Lock is in action
I am trying to figure out how keyboard layouts are defined (for Xorg). I more or less understand the formats of the /usr/share/X11/xkb/symbols/* files but the comportment of the Caps Lock key remain a mystery. How the symbols generated when the Caps