Multiple colours in matrix cell based on condition.
Hi All,
I have a requirement to fill the different colours in one Matrix cell based on the conditions. there are seven conditions if one of these condition fulfil then one colour. if two condition full fill then two different color in same matrix cell if three conditions
full fill then three different color in same cell .....
Thanks in advance.
Zaim Raza.
http://zaimraza.wordpress.com/
Hi Raza,
Yes, my above Switch expressions works in such a way as mentioned your sample screen.
But only thing is you need to modify the expression as per your requirements.
For Example:
Take Month and Year wise Sales amount shown as below:
The Expression would be like below(Not Tested)
=Switch
Fields!Salesamount.Value=100,"Orange",
Fields!Salesamount.Value=200,"Aqua",
Fields!Salesamount.Value=300,"Blue",
Fields!Salesamount.Value=400,"Tomato",
Fields!Salesamount.Value=500,"DarkViolet",
Fields!Salesamount.Value=600,"Red",
Fields!Salesamount.Value=700,"Blue"
So, in a single cell "Year-2001"you will get all 7 colors.
Please let me know still you need any info.
bala krishna
Similar Messages
-
ALV rows coloring based on condition
Hai ,
I want Color the rows in the list based on some condition ..
Hope to get the helpful suggestion s on this asap
regards,Hi shishupalreddy,
1. Not only the full row color,
we can also manipulate the color in each cell,
based upon conditions.
2.
IMPORTANT THINGS
a. Extra field in internal table
clr TYPE slis_t_specialcol_alv,
(this field will contain the colour codes)
b. assign fieldname to alv layout
alvly-coltab_fieldname = 'CLR'
c. work area for colour
DATA : clrwa TYPE slis_specialcol_alv.
d. Populating the color
Once again
Loop at ITAB.
*********logic
if itab-field < 0 "---negative
clrwa-fieldname = 'FIELDNAME'. "<--- FIELDNAME FOR COLOR
clrwa-color-col = 6. <------- COLOUR 0-9
APPEND clrwa TO itab-clr.
MODIFY ITAB.
endif.
ENDLOOP.
5. just copy paste in new program
6.
REPORT abc .
NECESSARY / MUST
TYPE-POOLS : slis.
DATA : alvfc TYPE slis_t_fieldcat_alv.
DATA : alvly TYPE slis_layout_alv.
ITAB DECLARATION
DATA : prg TYPE sy-repid.
DATA : BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE t001.
DATA : clname(3) TYPE c,
clr TYPE slis_t_specialcol_alv,
END OF itab.
DATA : clrwa TYPE slis_specialcol_alv.
PARAMETERS : a TYPE c.
DATA : flname TYPE slis_fieldname.
SELECT
START-OF-SELECTION.
SELECT * FROM t001
INTO CORRESPONDING FIELDS OF TABLE itab..
LOOP AT itab..
IF SY-TABIX <= 5.
itab-clname = 'C50'.
ELSE.
itab-clname = 'C30'.
ENDIF.
MODIFY itab.
ENDLOOP.
LOOP AT ITAB.
check itab-bukrs = '1000'
clrwa-fieldname = 'BUTXT'.
clrwa-color-col = 6.
APPEND clrwa TO itab-clr.
MODIFY ITAB.
clrwa-fieldname = 'LAND1'.
clrwa-color-col = 4.
APPEND clrwa TO itab-clr.
MODIFY ITAB.
ENDLOOP.
prg = sy-repid.
flname = 'CLNAME'.
alvly-info_fieldname = 'CLNAME'.
alvly-coltab_fieldname = 'CLR'.
LOOP AT ITAB.
if sy-tabix = 3.
clrwa-fieldname = 'BUTXT'.
clrwa-color-col = 6.
APPEND clrwa TO itab-clr.
MODIFY ITAB.
clrwa-fieldname = 'LAND1'.
clrwa-color-col = 1.
APPEND clrwa TO itab-clr.
MODIFY ITAB.
endif.
ENDLOOP
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = prg
i_internal_tabname = 'ITAB'
i_inclname = prg
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
minimum
*CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = alvfc
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2
extra
sy-uname = 'XYZAB'.
prg = sy-repid.
Excluding
DATA : excl TYPE slis_t_extab.
DATA : exclwa TYPE slis_extab.
exclwa = '&OUP'.
APPEND exclwa TO excl.
exclwa = '&ODN'.
APPEND exclwa TO excl.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = alvfc
i_callback_program = sy-repid
is_layout = alvly
i_callback_user_command = 'ITAB_USER_COMMAND'
it_excluding =
excl
i_save = 'A'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
*& Form itab_user_command
text
-->WHATCOMM text
-->WHATROW text
FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
slis_selfield.
BREAK-POINT.
ENDFORM. "itab_user_command
regards,
amit m. -
Conditional format of one cell based on contents of another cell
Preparing list of appointments for visitors with time for each. There are four possible status categories for visitors based on projected activity and whether they have shown up or not. (A Group Scheduled, A Group Showed, B Group Scheduled, B Group Showed). I've created the calendar in iCal with different calendars, then accessed that through Bento iCal Events. Bento adds the column with name of calendar from iCal. Info is now in Numbers. (iWorks 09)
It shows Title, Start Date, Location, Calendar. I'm adding more fields using Lookup in Numbers drawing on entire data base brought over from Bento. I'm trying to get what info I need, but none that I don't, so the form isn't too crowded and busy.
I would like to be able to conditionally format the Time column based on the contents of the Calendar column. If successful, the color of the Time column would tell me all I need to know about visitor status, and I could hide the Calendar column and clean up the form.
I hope I've described it adequately. Can this be done, and if so, how?
Thanks! Have a great Thanksgiving!jpcranch wrote:
Does it work to format two cells based on contents of one of them?
Conditional formatting of a cell depends on the contents of that individual cell, compared with another value, so no.
But you could use a two-table approach.
In general terms, the technique is to:
• make the original table's cell fill transparent,
• Add a second table to the sheet,
• Set the second table to copy the control values into a column of cells,
• Select the cells in that column of Table 2,
• Apply conditional formatting rules for each possible control value (see below)
• Set the text opacity for these cells to 0 (full transparency),
• Click on Table 2 in the sidebar, then use (shift and) the arrow keys to slide Table 2 behind Table 1 to align the highlighted cells with the cells to appear highlighted in Table 1.
• Set the colour of the cell borders on table 2 to none.
Using the information you gave regarding the calendar column, you'll need four rules for conditional formatting of this column. All are of the same format:
Text contains: A Group Scheduled
With the text changed to match each possible entry.
Regards,
Barry
BTW: by changing the width of the formatted column on table 2, you can appear to highlight as many columns as you wish on Table 1. -
Count Cells Based on Font Colour
I have a Numbers spreadsheet that lists all my movies. The font is different colours based on Blu-Ray DVD (Blue), Apple TV (Green) or normal DVD. Column A has the list and I would like to list the number of DVD's based on DVD type (Font Colour) in column B. B1 list number of cells in column A with Blue Font and B2 list number of cells in column A with Green Font.
I am a newbie with Macs, Scripts and Numbers so any help would be appreciated.Hi JSS,
Text colour is a cell format and can not be used as a "value" except maybe in AppleScript.
With another column to list DVD type,
COUNTIF (in another table)
Formula in B2 (and Fill Down)
=COUNTIF(Table 1::B,A2)
Regards,
Ian. -
Conditional formatting of a cell based on a value in another cell
I want to change the color of the text in a cell based on the value in a different cell. How can I accomplish this?
drmjdoyle,
There Numbers User Guide, http://support.apple.com/en_US/manuals/#iwork, will show you how to do that. Also, doing a search in these forums will provide many hits answering your question.
Click in the cell you want the color to change: click Format > Create custom cell format, in the first dropdown in that dialog box click Choose Rule, then follow the prompts.
Cordially,
RicD -
How to blink TreeView Nodes based on condition c#
suppose i am populating my tree view with data from database and i want to blink those nodes which has a specific data. now guide me with code how can i efficiently blink multiple tree view nodes based on condition in winform application.
Hi Mou_kolkata,
>> anyone can give me small working code for tree node blinking
Thank Armin for the details about blinking TreeView Nodes.
For a simple demo to blink TreeView nodes, you could refer the link below:
# Treeview control - How to make a node blink?
https://social.msdn.microsoft.com/Forums/en-US/64e7a4d7-3098-4370-990f-390cb3a640a1/treeview-control-how-to-make-a-node-blink
If you have issues when you blink Treeview nodes, please feel free to post a new thread in this forum, then you would get more help.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to give color to the display of keyfigure based on condition using exception.
Dear Friends.
I am trying to color "BAD3" in exception based on condition but my problem is in exception I can have only formula variable to compare the value, How to assign a value to formula variable in BEx Query designer.
What I am trying to do is :
in Query designer :
I have PO Quantity and Delivered Quantity.
if PO Qnantity > Delivered Quantity
then Delivered Quantity field should be colored as "BAD3" in exception.
but here proble is in exception
I have alert level , operator, and value fields for Delivered Quantity keyfigure ( Under definition tab - Exception is defined on = Delivered Quantity ).
but for value field I dont have PO Quantity for that I have to supply one formula variable,
When I created a forumula and did this way
FV_PO_QUANTITY = PO_QUANTITY formula editor throws errors. I dont understand How to assign a value of key figure to formula variable and use it in EXceptions.
Please help me How I can solve my problem
I will greatly appreciate your any help.
Thanking you
Regards
NaimThank you so much for your replies,
I did following way and it helped me to solve my issues.
I created one formula and under formula I use boolean < funtion to compare the values.
like following way.
( 'PO Quantity' > 'Delivered Quantity' ) * ( FV_PO_QNT + PO_QUANTITY')
here fv_po_qnt is formula variable I supply that variable to exception and since I have the value in it.. it compares with Delievered Quantity value and colored the perticular cell.
Thanks again for your replies
Regards
Naim -
Populating a matrix cell with data selected from a picker
Dear All,
I am new to SAP Bussiness one, please let me know how to get the selected data from a picker in to a matrix cell. I have warehouse code and warehouse name in the picker. I want the user selected warehouse code in the matrix cell
Below is my code But I am not getting the selected code in the matrix cell
I am adding the datasource as below
oUserDataSource = oForm.DataSources.UserDataSources.Add("UDCFL", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
Then I am adding the choose list as below
Private Sub AddChooseFromList()
Try
Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
Dim oCons As SAPbouiCOM.Conditions
Dim oCon As SAPbouiCOM.Condition
oCFLs = oForm.ChooseFromLists
Dim oCFL As SAPbouiCOM.ChooseFromList
Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
' Adding 2 CFL, one for the button and one for the edit text.
oCFLCreationParams.MultiSelection = False
oCFLCreationParams.ObjectType = "64"
oCFLCreationParams.UniqueID = "CFL1"
oCFL = oCFLs.Add(oCFLCreationParams)
Catch
MsgBox(Err.Description)
End Try
End Sub
*Then I am binding the data as below to the matrix column*
oColumn = oColumns.Item("colToWhs")
oColumn.DataBind.SetBound(True, "", "UDCFL")
oColumn.ChooseFromListUID = "CFL1"
Then in the event i have added the below code.
Dim oDataTable As SAPbouiCOM.DataTable
oDataTable = oCFLEvento.SelectedObjects
Dim val As String
Try
val = oDataTable.GetValue(0, 0)
Catch ex As Exception
End Try
oForm.DataSources.UserDataSources.Item("UDCFL").Value = val
End If
But the code is not getting populated in the matrix cell. Please let me know at the earliest
Thanx in AdvancesOLVED
-
How to set colors in cells depending the conditions in alvtree
Hi All,
Could you please provide me idea or sample program how to set colors in cells depending the conditions in alvtree.
Thanks,
SureshWhen running vim in a terminal, it will use whatever colour scheme is defined by the terminal. You should have a look at this thread:
http://bbs.archlinux.org/viewtopic.php?id=51818
Also, check the wiki article on Xdefaults. -
Rep-1813:object r_supp_name too large to fix in matrix cell.
hi all,
im getting an issue while running orale report.
i used layout model as matrix.
im getting error as:
rep-1813:object r_supp_name too large to fix in matrix cell.
r_supp_name is repeating frame of supplier_name field.
i had already set maximum number of records but still my issue not solved.
im unable to rectify it anyone please help me.
thanks,Dear,
I am facing the same problem my question is that you resolve your issue about REP-1813 or still pending if solved kindly share with us.
Regards,
K.J.J.C -
How do I assign images to grid cells based on their random number value?
Hello everyone!
I need a good point (or shove) in the correct direction.
Background
I've created (with previous help from this forum) a 12 x 9 random number grid which cycles through the numbers 1 to 9 a total of twelve times each. I've then created a button which shuffles the current grid's cells each time it is clicked. I now want to use 9 images that I have imported as individual symbols into the library (I have given them each their own class titled "skin1," "skin2," ... "skin9") as cell labels or the equivalent. I have also set the images up as individual movie clips (using the .Sprite class as the extended base class but keeping the actual image class names in line with their object name, i.e. the "skin1" image is the "skin1.as" class).
Question
How do I assign these images to the grid cells based on their respective values (ranging from 1 to 9) and have them populate the grid each time I click the "shuffle" button? So for example, in my grid the numbers 1 through 9 randomly appear 12 times each. Every time the number 4 appears in a cell, I want it to be assigned to the image "skin4" (which is just a graphic that looks like a button and has a fancy number "4" printed on it). Below is a chunk of the code I am using to draw the grid cells with:
// Creates a grid cell when called by generateGrid().
private funciton drawCell(_numeral:int):Sprite
This is the code I am currently implementing to populate the grids with (although I
don't want to use text labels as I want to fill each grid with an image according
to its numerical value (1 to 9).
var _label:TextField = new TextField();
_label.multiline = _label.wordWrap = false;
_label.autoSize = "center";
_label.text = String(_numeral);
// Add numerical label to cell array.
cellLabels.push(_label);
var _s:Sprite = new Sprite();
_s.graphics.lineStyle(2, 0x019000);
_s.graphics.drawRect(30, 0, cellW, CellH);
_s.addChild(_label);
return _s;
While the following isn't working code, it will hopefully demonstrate what I want to achieve inside this function so I don't have to use the above snippet for text labels:
//This will "hopefully" create an array of all 9 images by calling their classes. var _imageArray:Array = [skin1, skin2, skin3, skin4, skin5 , skin6, skin7, skin8, skin9]; // This is what I want to happen for each cell using the above image array: for (i = 0; i < cells; i++) { if (_numeral == 1) { // Insert skin1 image for each instance of #1 in the grid. } if (_numeral == 2) { // Insert skin2 image for each instance of #2 in the grid. } ... if (_numeral == 9) { // Insert skin9 image for each instance of #9 in the grid. } }
Again, I don't want to use text labels. I have a custom skin graphic that I want to go over each number on the grid based on its numerical value (1 to 9). Any help with this is much appreciated!kglad,
Thank you for your help with this one. Using the code below, I have successfully populated my grid cells with the desired corresponding graphics. I noticed one thing though regarding my use of the shuffle button with this particular implementation: even though the numerical values residing in each cell get shuffled, the original images remain in the grid rather than being replaced by new ones. The first code snippet below is the revised cell drawing function including your help; the second snippet shows you my simple shuffle button function (where the problem lies, I think).
Snippet #1:
// Creates a grid cell when called by generateGrid().
private function drawCell(_numeral:int):Sprite
var _label:TextField = new TextField();
_label.multiline = _label.wordWrap = false;
_label.autoSize = "center";
// Creates a label that represents the numerical value of the cell.
cellLabels.push(_label);
var _s:Sprite = new Sprite();
_s.graphics.lineStyle(2, 0x019000);
_s.graphics.drawRect(30, 0, cellW, cellH);
// Physically adds the labels to the grid.
_s.addChild(_label);
// Assigns a graphic class to a cell based on its numerical value.
var _classRef:Class = Class(getDefinitionByName("skin" + _numeral));
// Undefined variable for holding graphic classes.
var _image:* = new _classRef();
// Lines the images up with the grid cells.
_image.x = 30;
// Physically adds a graphic on top of a cell label.
_s.addChild(_image);
return _s;
So far so good (although I question needing text labels at all if they are just going to remain invisible underneath the images, but enough about that for now). This next part is the reason that the images won't shuffle with the cell values, I think.
Snippet #2:
// When shuffleButton is clicked, this event shuffles
// the number array and fills the cellLabels with the new values.
private function onButtonShuffleClick(e:MouseEvent):void
// Shuffles the number array.
shuffle(numbers);
// Verifies the array has been shuffled.
trace("After shuffle:", numbers);
// Loop replaces old cellLabels with new number array values.
for (var i:int = 0; i < cells; i++)
cellLabels[i].text = String(numbers[i]);
As you can see, it never replaces the original images that populate the grid. I tried using the _s.removeChild(image) function but that didn't work, nor would copying/pasting some of the code from snippet #1 directly into this function as it would cause another instance of the images to be placed over top of the existing ones rather than actually swapping them out. Any continued help here is greatly appreciated!
PS Is there a quicker method for posting code into these forums without having to type it all out by hand again (i.e. copy/paste or drag/drop from my .fla or Notepad file directly into this thread)? -
Multiple lines in a cell in excel download
Hi,
I have used insert_full of i_oi_spreadsheet interface for downloading internal table.. i have a text field which i need to display in multiple lines in one cell.
Is that possible? Please help,
Regards,
Rohit.Rohit,
Clipboard this code into your editor and see if it helps you out. Please reward points.
*& Report ZR_SANDBOX_PROG
REPORT Zsandbox_prog .
INCLUDE OLE2INCL.
DATA: hExcel TYPE OLE2_OBJECT, " Excel object
hWorkBooks TYPE OLE2_OBJECT, " list of workbooks
hWorkbook TYPE OLE2_OBJECT, " workbook
hSheet TYPE OLE2_OBJECT, " worksheet object
hRange TYPE OLE2_OBJECT, " range object
hRange2 TYPE OLE2_OBJECT, " range object
hBorders TYPE OLE2_OBJECT, " Border object
hInterior TYPE OLE2_OBJECT, " interior object - for coloring
hColumn TYPE OLE2_OBJECT, "column
hCell TYPE OLE2_OBJECT, " cell
hFont TYPE OLE2_OBJECT, " font
hSelected TYPE OLE2_OBJECT, " range object
hPicture TYPE OLE2_OBJECT, "picture object
hLogo TYPE OLE2_OBJECT. "Logo object
types: begin of t_Excel,
Period_Literal(20),
Pd_Wk_Literal(20),
Coop_Literal(40),
Sugg_Price(20),
Cost(20),
Margin(20),
Comments(100),
end of t_Excel.
data: r_Excel type t_Excel.
data: i_Excel type table of t_Excel with header line.
field-symbols: <Val> type any.
data: col_Cnt type i.
data: row_Cnt type i.
data: l_range(30).
parameters: wraptext as checkbox.
CREATE OBJECT hExcel 'EXCEL.APPLICATION'.
PERFORM ERR_HDL.
get list of workbooks, initially empty
CALL METHOD OF hExcel 'Workbooks' = hWorkbooks.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF hWorkbooks 'Add' = hWorkbook.
PERFORM ERR_HDL.
Get Worksheet object.
get property of hWorkbook 'ActiveSheet' = hSheet.
SET PROPERTY OF hExcel 'Visible' = 1.
row_cnt = 1. col_cnt = 1.
do 5 times.
Perform Load_Dummy_Values.
enddo.
*Pass the internal table values to the spreadsheet.
loop at i_Excel into r_Excel.
do 7 times.
assign component sy-index of STRUCTURE r_excel TO <Val>.
PERFORM Fill_The_Cell USING row_cnt col_cnt 0 <Val>.
col_cnt = col_cnt + 1. "increment column
enddo.
row_cnt = row_cnt + 1. "increment row
col_cnt = 1. "reset column to A (ie. col 1)
endloop.
if not WrapText is initial.
move 'G:G' to l_range.
CALL METHOD OF hExcel 'RANGE' = hRange EXPORTING #1 = l_range.
set property of hRange 'WrapText' = 1.
endif.
Release excel.
FREE OBJECT hExcel.
PERFORM ERR_HDL.
FORM Fill_The_Cell USING I J BOLD TheValue.
CALL METHOD OF hExcel 'Cells' = hCell EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
SET PROPERTY OF hCell 'Value' = TheValue.
PERFORM ERR_HDL.
GET PROPERTY OF hCell 'Font' = hFont.
PERFORM ERR_HDL.
SET PROPERTY OF hFont 'Bold' = BOLD.
PERFORM ERR_HDL.
ENDFORM.
*& Form ERR_HDL
outputs OLE error if any
--> p1 text
<-- p2 text
FORM ERR_HDL.
IF SY-SUBRC <> 0.
message i000(zz) with 'OLE Automation error: ' SY-SUBRC.
exit.
ENDIF.
ENDFORM. " ERR_HDL
Form Load_Dummy_Values.
r_excel-Period_Literal = 'Period 1'.
r_excel-Pd_Wk_Literal = 'P1 / Wk1'.
r_excel-Coop_Literal = 'Promo Event'.
r_excel-Sugg_Price = '$ 1.25'.
r_excel-Cost = '$ 0.50'.
r_excel-Comments =
'This is a really long field with one hundred bytes to it.'.
append r_excel to i_Excel.
EndForm. -
How to create additional Line in file based on condition available as part of ZINVOIC02 Idoc segment
Scenario Details:
Receiving Zinvoic02 Idoc in PI. Idoc to file translation creates comma separated file with .csv extn
The logic was kept in such a way that how many E1EDP01 (items) are available in IDoc that many no of records will be created in csv file.
The file logic for some the fields is as below:
No of records
InvNumber
InvDate
CusNumber
LineitemDesc
Tax1Type
Tax1%
for 1st E1EDP01
E1EDK01-BELNR
E1EDK03-DATUM
E1EDK01-PARTN
Populate when E1EDP04/MSKWZ=O2 or O4 with E1EDP19/KTEXT
Hardcode when E1EDP04/MSKWZ=O2 or O4
Sum all E1EDP04 /MSATZ when E1EDP04/MSKWZ=O2 or O4
for 2nd E1EDP01
E1EDK01-BELNR
E1EDK01-DATUM
E1EDK01-PARTN
same as above
same as above
same as above
for 3rd E1EDP01
E1EDK01-BELNR
E1EDK03-DATUM
E1EDK01-PARTN
same as above
same as above
same as above
Additional Line to be created when one or more of E1EDP01 is having E1EDP04/MSKWZ = O3
same as above
same as above
same as above
Hardcode "REIM for USE TAX"
Hardcode ""
Hardcode ""
Now we have got addition requirement to add a new lineitem when tax code is equal to O3 for any of the E1EDP01.
Is it possible to create additional lineitem based on condition. If yes, please share what should be the approach.
How we can create the additional lineitem?
Currently we are using E1EDP01 to do context handling.
The target structure is :
MT_FILE
INVOICE 0..unbounded
InvNumber 0..1
InvDate 0..1
CusNumber 0..1
LineitemDesc 0..1
Tax1Type 0..1
Tax1% 0..1Hello,
Please add one extra field in the data structure of the target mapping and let its occurrence be 0..unbounded under the root node 'MT_ADP_Invoice'.
Apply the condition, if tax code MSKWZ (with its context changed to E1EDP01) equalsS to '03', then map it to the newly created target field whose occurrence is 0..unbounded.
This will then create an additional field which is your requirement.
The above is one way.
But if you want to have the same target field name as ADP_File appended for tax field being '03'.
Then in that case you can you two message mapping for one common operational mapping / interface.
In the first message mapping you need to have one target data structure created with the source data structure remaining the same as the one shown by you in scrn shot. Now this target data structure will be similar to the source, except that you need to add one more field at the end(name different from other fields) in target (whose occurrence should be 0..unbounded), and it needs to be mapped to E1EDP01 provided the tax code field MSKWZ(its context changed to E1EDP01) equalsS to constant '03'.
In the second message mapping you need to map the target structure of previous message mapping to the actual required structure. The newly added field should be mapped to ADP_File of your final target structure.
This will then create the same structure as required.
Note : Please change the occurence of ADP_File to 0..unbounded.
Regards,
Souvik -
Hi,
my requirement is to call webdyn pro screen from workflow..
i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
Please help how to stop work item complete based on conditions.
Thanks,
phaniHi,
As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
You can refer below link for web dynpro for workitem:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&… -
Assigning a Numeric Value in a Cell Based on Text in Another Cell
In advance, thanks for your assistance. I'm trying, in vain, to assign a numeric value in a cell based on text (from a dropdown menu) in another cell. For example, in cell A5 I have a dropdown list that includes the options "blue", "red", "white", and "gold." I want cell C15 to be 2 if A5="blue"; I want C15 to be 0 if A5="red"; I want C15 to be 2 if A5="white"; and, I want C15 to be 1 if A5="gold."
Tippet,
This is a job for LOOKUP.
The expression for the Result cell is: =LOOKUP(A2, Lookup :: A1:A4, Lookup :: B1:B4)
The aux. table contains the matches that you assign for the colors.
Regards,
Jerry
Maybe you are looking for
-
Just in case that wasn't specific enough....It's an older ipod touch. He gave it to me as a Christmas gift and I want to keep the songs and Apps he already has on it but I want to be able to add more to it which means I would need it on my own itune
-
How to find out the Target Component name and Target view name
Hi All Expert, I want to know ,how to find out the target component and target view in WEB UI,when i click on a field which shows as a hyper link in WEB UI .At GUI level ,i know the how it will work.Any way to find out the component
-
How to restrict Create Authorization in Appraisals to Users?
Dear HCM Experts: We are using BSP application hap_document for Business Event Appraisals. I have used documents_todo.htm for recording the Appraiser/ Particapant ratings. That is when user click on create button, system should not allow the user to
-
Hi All, We used to send POs to some other Application through EDI. One of the POs has not interfaced to the third party Application through EDI. We have checked all the trading partner and supplier setups. The only issue we have found is that the PO
-
i havnt changed my passcose and using the same passcode which i have been using since ages , its still not working, and i am 100 percent sure i am using the correct passcode ?.,