Adding a new field in searh and result [ comb of 2 other fields ]
Hi ,
I have to add a new field in Opportunity Search and later OpportunitySearch Result. This field belongs to Opportunity Details -> parties Involved view , and is a combination of 2 fields there..Partner function and Main Partner (unchecked ). Details are as below..
Can you please suggest easiest way for achieving this..
Details of the Opportunity Search where I need to add a new search field
Component : BT111S_OPPT
Context Node : SEARCH
View : BT111S_OPPT/Search
Details of the new search field (Present In the Opportunity Details, there is a viewset for Parties Involved ) ..The new search field should be Employee Responsible but not the Main Partner ( kind of a substitute OR Secondary Employee Responsible )..2 employee responsible is permitted in partner determination..
Component : BTPartner
Context Node: BTPartner
View : BTPartner/Partner
Attribute : Partner_fct
Generic Object Type = 1Order
+
Component : BTPartner
Context Node : BTPartner
View : BTPartner/ Partner
Attribute: MainPartner ( Not checked = 0 )
Is there a simpler way without coding to achieve the above?
The route that we have thought of is ...Let me know if there is an alternate simpler way...and If I am missing anything
1.Create a custom field using EEWB ( I am not well aware of AET, and not aware how to enable this in our
environment as we upgraded to 7.0 recently ) For CRM Opportunity Transaction Type.
2.This will be linked to the table CRMD_ORDERADM_H and the related structure
3.Ask the technical team to populate this field from structure COM_DYNP_PARTNER_UI-PARTNER_FCT and COM_DYNP_PARTNER_UI-MAINPARTNER = 0 [(In Transaction crmd_order F1 on employee responsible points to structure COM_DYNP_PARTNER_UI and Mainpartner is a Boolean and hence main partner = 0 means that it is not the main partner ).
4.Add the same field in the search-result as well.
Thanks.
Regards,
Monica.
Hello,
I have looked at wiki below [http://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component]
Kindly suggest ways to acheive adding new field in Opportunity Search ( employee responsible which is not the main contact like I mentioned ) which belongs to another component ...Can it be done without coding eg. adding to design layer.
Can you please give steps to do the same.
Thanks.
Regards,
Monica
Similar Messages
-
I am trying to add a new workflow to a document library with the below mentioned settings and getting error saying "This form cannot be opened in a web browser. to open this form use microsoft infopath" while adding a new Approval - Sharepoint
2010 and Publishing Approval workflow" . For your information the I have checked the server default option to open in browser.
Versioning Settings.
Error
This is quiet urgent issue . Any help would be really helpful.. Thanks..Hi Marlene,
Thank you very much for your suggestions.
But I am not creating a custom workflow in designer as Laura has mentioned. I am instead trying to create a new Out of the box Approval Workflow and I get the error mentioned above.
As it works in other environment, I tried figuring out the possible differences which can lead to this error.
Today I found one difference which is there are no form Templates within Infopath Configurations in Central Admin. Now I am trying to figure out what makes this form templates to be added to the template gallery.
Regards,
Vineeth -
Adding a new tab to CrystalReportViewer and loading a new rpt into it
Hi,
I've been struggling with the following problem for a few days now and I would really appreciate any help you can offer.
I need to add a new tab to an existing instance of CrystalReportViewer and load a new crystal report (RPT) into it.
I wasn't able to do that and tried inserting an instance of a new CrystalReportViewer into the new tabpage, but I've encountered several problems with that solution as well, such as: by hiding the tree and all bars, I'm also removing the page navigation field of the new rpt.
Here is the code I've used:
TabControl tabControl = (TabControl)((PageView)crystalReportViewer1.Controls[0]).Controls[0];
DocumentControl tab2 = new DocumentControl(new ViewerDocument(new SubreportContext()));
tabControl .Controls.Add(tab2);
tabControl .TabPages[1].Text = "New Tab";
tabControl .SelectedTab = tab.TabPages[1];
Now I need to load the rpt to the new tabpage
If I'm trying to add a new CrystalReportViewer into the tabpage:
ReportDocument oRpt2 = new ReportDocument();
oRpt2.Load(tempFile);
CrystalReportViewer newViewer = new CrystalReportViewer();
newViewer.Dock = DockStyle.Fill;
newViewer.DisplayGroupTree = false;
newViewer.DisplayStatusBar = false;
newViewer.EnableDrillDown = false;
newViewer.DisplayStatusBar = false;
newViewer.DisplayToolbar = false;
newViewer.ReportSource = oRpt2;
tab2.Controls.Add(newViewer);
Please let me know what is the best practice for this kind of operation.Continue my question....
I've found a method that opens such a tab for me in one statement:
DocumentControl tab2 = ((PageView)crystalReportViewer1.Controls[0]).CreateNewReportDocument("new doc");
But I remain with question of how to load the new RPT into it? -
Adding a new row to database and then modify it
Hi there,
Im pretty sure this is a simple matter but i am new to JDBC,
i have an application where i create a new member in a database and then want to modify part of that members info (weather he pays for something monthly or annually)
I can add the new member easily, and I create a unique ID and place him in the db.unigue ID assigned by Access db.
Then i want to bring the same member back and alter his data, since I am inserting new data there is no resultsSet returned (am i right about this?)
so how can I get the same member back and alter his data, or at least find out what his ID was so i can do a query for the same ID?
cheers
Dbecause you talk about creating new row then I assume you know how to invoke the executeUpdate() method. You can change the field in your table with the UPDATE command. The sintaxt of UPDATE following your database system sintaxt. If you want to query the data in the table you can use the method excuteQuery(). i.e. executeQuery("SELECT * from tableName").
-
It seems that none of the techniques described in the Apple iTunes troubleshooting tutorial have worked. I have spent hours on this.
I think that when I downloaded DVD converter and burner program that some preference got tweaked.
or
When I ran a 'duplicate cleaner' program that a vital program was erased by accident.
In any case, I am a long time iTunes user and Microsoft Media Player will never be an adequate replacement.
What can I try now?
Please help!Hey Life LIght Fit,
Welcome to the Apple Support Communities. If you are having issues with iTunes opening up, the following article will provide some troubleshooting steps to assist with that process.
iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
http://support.apple.com/kb/ts1717
Regards,
-Norm G. -
Compute total on a field based on change in values in 2 other fields
I have the following requirement
ITAB has fields
PO# PO_LINE# ............ PRICE
100 1 500
100 2 100
200 1 300
300 1 200
300 2 700
300 3 100
and my required output in ALV is
PO# PO_LINE# ............ PRICE
100 1 500
100 2 100
Total 600
200 1 300
Total 300
300 1 200
300 2 700
300 3 100
Total 1000
i want to compute the total price for each PO#.
Can someone please suggest how ?
Thank u so much.Hello Asha,
It appears that you are looking for the subtotal functionality that is built into ALV. The "sort" table that is accepted by the ALV FM has a field named "subtot" that can be used to flag a field for subtotals. In your case you would flag the PO# field for subtotals.
A bare bones example of entering this information can be seen in the following:
" Fill out the field catalog, layout, etc.
" Now we will populate the sort information
ls_sort-fieldname = 'PONUMBER'.
ls_sort-up = 'X'.
ls_sort-subtot = 'X'. "This is the field that will allow subtotals
APPEND ls_sort TO gt_sort.
" Call the the display ALV FM
Now this comes with a number of conditions:
1. For simple cases, the field you want to subtotal over must be the left-most column. In your example it looks like you meet this requirement as PO# is the first column.
2. You also need to make sure that there is a column that allows totals. In your example you need to make sure price has the proper data type to allow for totals.
If you are still having trouble, I would recommend looking at the following code example: [Display subtotal text in ALV grid|http://wiki.sdn.sap.com/wiki/display/Snippets/DisplaysubtotaltextinALV+grid]. It contains a more complete example of how to use subtotals in ALV. -
Adding Z field in Opportunity search and result view BT111S_OPPT/Search
Hi,
I have been searching this forum on adding Z fields in search and result view but couldnt find the precise information.
We have Z field in ultimately residing in BUT000.
Now when this field is used in BP_HEAD_SEARCH for search and result, it could be easily done via configuration. (since the field was added to CRMT_BUPA_IL_HEADER_SEARCH during EEWB extension.
Now, the requirement is to add the fields in Opportunity BT111S_OPPT/Search & BT111S_OPPT/Result.
I am confused with regard to the approach we need to use to get this field in search and result.
I thought the easiest option is to add the Model node and and give the BOL attribute. This works fine but I can't see this field (with dynamic getter/setter) in the UI configuration.
During the attribute creation wizard, I gave BOL entity as BTQROpp (system defaulted) and the relation was
BTADVSOpp/BTOrderHeader/BTHeaderPartnerSet/BTPartnerAll/BTBusinessPartner/ZZZGEOG_REGI
is this correct? or am I doing something wrong?
Why can't I see the fields in configuration?
So alternatively I created a field through AET and i could see this field is in the structure and in UI config, but what logic I need to put to retrieve the value?
Any advice?
Many thanks in advance for your help
RakeshHi Rakesh,
Please follow below steps:
1. Append your custom field to structure associated with your search/result structure.
2. After you append this field to structure, this field would be available in context node.
3. Check if the field is reflected in available fields in configuration.
4. If field is not present in configuration then please follow steps stated by me in:
Re: New Column can not be added in chtmlb:configTable
5. Once you add this field to design layer, you would be able to configure it to your search query. Check if your query works with this field.
If not then please go through below forum :
Re: BADI for Claims search in trade promotion management
Let me know if this helps.
Regards,
Bhushan -
Added an aliases and it deleted all the others? bad news for me :(
I just added an aliases in mail, all I did was click add aliases and added a new one, clicked create and all of my other aliases disappeared? this is not very cool, I've never had anything this bad happen on my Mac ever. please tell me its going to be Ok! pleasssse
ScottI assume you’re talking about .Mac aliases, right? Unless someone else has a better idea, I suggest you to report the problem to .Mac email support.
-
How do I use switch and case statements to fill more than one other field?
Hi all,
I'm new to the community.
I'm trying to make an existing form more user friendly for my coworkers. I want to use a switch and case approach in a drop-down list field so that the selection fills two seperate other fields with different info related to the selection.
I can already do this with one field, but if I add a second target field under an existing case the text doesn't appear there when I make the selection from the dropdown.
Basically, I'm asking if I can do this:
switch
(sNewSel){
case "1": // Selection 1 Row2.Field1
= "text for field 1";
Row1.Field2 = "text for field 2";
break;
etc.
It works if the "row1.field2" option isn't there, but not when it is present.
Any takers?I'm not sure if I will be able to send you the form. There may be too much to redact.
Would this last bit of code in the cell affect anything?
if
(bEnableTextField)
{Row2.Field1.access
= "open"; // enable field
Row2.Field1.caption.font.fill.color.value= "0,0,0"; // set caption to black
That is, do I also need to repeat the same thing for the second target cell (Row1.Field2)?
What would be possible hang ups that would prevent it from working correctly?
Dave
By the way, I'm not sure if my other attachment posted. I am trying again. -
Merge 2 internal tables into one and show first record from common fields
Hello PPl,
I have 3 tables kna1 knb1 and knvp i have to join kna1 and knb1 on kunnr and move the data into an internal table it_data then on the basis of that data in it_data i have to retrieve records FOR ALL ENTRIES from KNVP and move it into it_knvp.
Then both it_data and it_knvp should be merged in it_alv and from that internal table report has to be displayed.
[NOTE: i had tried using loop twice but the report got messed up]
Apart from that for these set of values
0000000004
0000000418
0000000954
0000001190
0000001222
0000001451
0000001453
0000001455
0000001470
0000001508
finally knvp is showing records in such a way that for 2 records kunnr is same and so does all the other fields except PARZA and KUNN2 so the req. is to display only the first record among 2.
Plz help me by providing code for that its urgent......
Below i m providing my code so far, i hope it will be of some help.
TREMENDOUS REWARD POINTS GURANTEED!!!!!
REPORT zfanz_alv_report_whv.
TYPE-GROUPS *
TYPE-POOLS: slis.
TYPES *
TYPES: BEGIN OF ty_data,
kunnr TYPE kunnr,
ort01 TYPE ort01,
pstlz TYPE pstlz,
regio TYPE regio,
bukrs TYPE bukrs,
zterm TYPE zterm,
END OF ty_data,
BEGIN OF ty_knvp,
vkorg TYPE vkorg,
vtweg TYPE vtweg,
spart TYPE spart,
parvw TYPE parvw,
parza TYPE parza,
kunn2 TYPE kunn2,
lifnr TYPE lifnr,
END OF ty_knvp,
BEGIN OF ty_alv,
kunnr TYPE kunnr,
ort01 TYPE ort01,
pstlz TYPE pstlz,
regio TYPE regio,
bukrs TYPE bukrs,
zterm TYPE zterm,
vkorg TYPE vkorg,
vtweg TYPE vtweg,
spart TYPE spart,
parvw TYPE parvw,
parza TYPE parza,
kunn2 TYPE kunn2,
lifnr TYPE lifnr,
END OF ty_alv,
BEGIN OF ty_kna1,
kunnr TYPE kunnr,
END OF ty_kna1,
BEGIN OF ty_knb1,
bukrs TYPE bukrs,
END OF ty_knb1.
*DATA: IT_KNVP TYPE KNVP,
DATA: it_knvp TYPE STANDARD TABLE OF ty_knvp WITH HEADER LINE.
DATA: it_data TYPE STANDARD TABLE OF ty_data WITH HEADER LINE.
Report data to be shown.
DATA: it_alv TYPE STANDARD TABLE OF ty_alv WITH HEADER LINE.
Heading of the report.
DATA: t_heading TYPE slis_t_listheader.
*DATA: fieldcatalog type standard table of slis_fieldcat_alv with header
*line.
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
*TABLES
tables:knvp,kna1,knb1.
CONSTANTS *
CONSTANTS: c_kunnr TYPE char5 VALUE 'KUNNR',
c_ort01 TYPE char5 VALUE 'ORT01',
c_pstlz TYPE char5 VALUE 'PSTLZ',
c_regio TYPE char5 VALUE 'REGIO',
c_bukrs TYPE char5 VALUE 'BUKRS',
c_zterm TYPE char5 VALUE 'ZTERM',
c_vkorg TYPE char5 VALUE 'VKORG',
c_vtweg TYPE char5 VALUE 'VTWEG',
c_spart TYPE char5 VALUE 'SPART',
c_parvw TYPE char5 VALUE 'PARVW',
c_parza TYPE char5 VALUE 'PARZA',
c_kunn2 TYPE char5 VALUE 'KUNN2',
c_lifnr TYPE char5 VALUE 'LIFNR'.
WORKAREA *
DATA: wa_data TYPE ty_data,
wa_knvp TYPE ty_knvp,
wa_alv TYPE ty_alv,
wa_fcat TYPE slis_fieldcat_alv,
wa_layout TYPE slis_layout_alv.
======================= Selection Screen ==========================
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
*DATA: wa_kunnr LIKE kna1-kunnr,
wa_bukrs LIKE knb1-bukrs,
wa_vkorg LIKE knvp-vkorg,
wa_vtweg LIKE knvp-vtweg,
wa_spart LIKE knvp-spart,
wa_parvw LIKE knvp-parvw.
SELECT-OPTIONS *
SELECT-OPTIONS s_kunnr FOR kna1-kunnr NO INTERVALS OBLIGATORY
SELECT-OPTIONS: s_bukrs FOR knb1-bukrs NO-EXTENSION NO INTERVALS,
s_vkorg FOR knvp-vkorg NO-EXTENSION NO INTERVALS,
s_vtweg FOR knvp-vtweg NO-EXTENSION NO INTERVALS,
s_spart FOR knvp-spart NO-EXTENSION NO INTERVALS,
s_parvw FOR knvp-parvw NO-EXTENSION NO INTERVALS.
SELECTION-SCREEN: END OF BLOCK b1.
AT SELECTION-SCREEN *
AT SELECTION-SCREEN ON s_kunnr.
PERFORM validate_data.
START-OF-SELECTION *
START-OF-SELECTION.
PERFORM get_data. "fetch data from table and perform join on them
PERFORM final_table.
PERFORM build_fieldcatalog. "populate field catalog
PERFORM build_layout.
PERFORM grid_display. "display the result in ALV grid
END-OF-SELECTION *
END-OF-SELECTION.
describe
SUBROUTINES (FORMS)
*& Form get_data
Gets the information to be shown in the report.
Join on tables KNA1, KNB1 and for all enteries in KNVP
--> p1 text
<-- p2 text
FORM get_data.
SELECT kna1~kunnr
kna1~ort01
kna1~pstlz
kna1~regio
knb1~bukrs
knb1~zterm
INTO TABLE it_data
FROM kna1 INNER JOIN knb1
ON kna1kunnr = knb1kunnr
WHERE kna1~kunnr IN s_kunnr
AND knb1~bukrs IN s_bukrs.
SELECT vkorg
vtweg
spart
parvw
parza
kunn2
lifnr
INTO TABLE it_knvp FROM knvp
FOR ALL ENTRIES IN it_data
WHERE knvp~kunnr = it_data-kunnr
AND vkorg IN s_vkorg
AND vtweg IN s_vtweg
AND spart IN s_spart
AND parvw IN s_parvw.
ENDFORM. " get_data
*ENDFORM. " get_data
*& Form FINAL_TABLE
text
--> p1 text
<-- p2 text
FORM final_table .
LOOP AT it_data.
it_alv-kunnr = it_data-kunnr.
it_alv-ort01 = it_data-ort01.
it_alv-pstlz = it_data-pstlz.
it_alv-regio = it_data-regio.
it_alv-bukrs = it_data-bukrs.
it_alv-zterm = it_data-zterm.
APPEND it_alv.
CLEAR it_alv.
ENDLOOP.
LOOP AT it_knvp.
it_alv-vkorg = it_knvp-vkorg.
it_alv-vtweg = it_knvp-vtweg.
it_alv-spart = it_knvp-spart.
it_alv-parvw = it_knvp-parvw.
it_alv-parza = it_knvp-parza.
it_alv-kunn2 = it_knvp-kunn2.
it_alv-lifnr = it_knvp-lifnr.
APPEND it_alv.
CLEAR it_alv.
ENDLOOP.
ENDFORM. " FINAL_TABLE
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
FORM build_fieldcatalog.
IF it_alv[] IS NOT INITIAL.
wa_fcat-fieldname = c_kunnr.
wa_fcat-seltext_l = 'Customer Master'(001).
wa_fcat-col_pos = 1.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_ort01.
wa_fcat-seltext_l = 'City'(002).
wa_fcat-col_pos = 2.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_pstlz.
wa_fcat-seltext_l = 'Postal Code'(003).
wa_fcat-col_pos = 3.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_regio.
wa_fcat-seltext_l = 'Region'(004).
wa_fcat-col_pos = 4.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_bukrs.
wa_fcat-seltext_l = 'Company Code'(005).
wa_fcat-col_pos = 5.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_zterm.
wa_fcat-seltext_l = 'Terms of payment'(006).
wa_fcat-col_pos = 6.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_vkorg.
wa_fcat-seltext_l = 'Sales Organization'(007).
wa_fcat-col_pos = 7.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_vtweg.
wa_fcat-seltext_l = 'Distribution Channel'(008).
wa_fcat-col_pos = 8.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_spart.
wa_fcat-seltext_l = 'Division'(009).
wa_fcat-col_pos = 9.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_parvw.
wa_fcat-seltext_l = 'Partner function'(010).
wa_fcat-col_pos = 10.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_kunn2.
wa_fcat-seltext_l = 'Customer number of partner'(011).
wa_fcat-col_pos = 11.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_lifnr.
wa_fcat-seltext_l = 'Account Number of Vendor'(012).
wa_fcat-col_pos = 12.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
wa_fcat-fieldname = c_parza.
wa_fcat-seltext_l = 'Partner counter'(013).
wa_fcat-col_pos = 13.
APPEND wa_fcat TO fieldcatalog.
CLEAR wa_fcat.
*fieldcatalog-fieldname = c_kunnr.
fieldcatalog-seltext_l = 'Customer Master'(001).
fieldcatalog-col_pos = 1.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_ort01.
fieldcatalog-seltext_l = 'City'(002).
fieldcatalog-col_pos = 2.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_pstlz.
fieldcatalog-seltext_l = 'Postal Code'(003).
fieldcatalog-col_pos = 3.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_regio.
fieldcatalog-seltext_l = 'Region'(004).
fieldcatalog-col_pos = 4.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_bukrs.
fieldcatalog-seltext_l = 'Company Code'(005).
fieldcatalog-col_pos = 5.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_zterm.
fieldcatalog-seltext_l = 'Terms of payment'(006).
fieldcatalog-col_pos = 6.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_vkorg.
fieldcatalog-seltext_l = 'Sales Organization'(007).
fieldcatalog-col_pos = 7.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_vtweg.
fieldcatalog-seltext_l = 'Distribution Channel'(008).
fieldcatalog-col_pos = 8.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_spart.
fieldcatalog-seltext_l = 'Division'(009).
fieldcatalog-col_pos = 9.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_parvw.
fieldcatalog-seltext_l = 'Partner function'(010).
fieldcatalog-col_pos = 10.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_kunn2.
fieldcatalog-seltext_l = 'Customer number of partner'(011).
fieldcatalog-col_pos = 11.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_lifnr.
fieldcatalog-seltext_l = 'Account Number of Vendor'(012).
fieldcatalog-col_pos = 12.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
fieldcatalog-fieldname = c_parza.
fieldcatalog-seltext_l = 'Partner counter'(013).
fieldcatalog-col_pos = 13.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
ENDIF.
ENDFORM. " BUILD_FIELDCATALOG
*& Form build_layout
text
--> p1 text
<-- p2 text
form build_layout .
Set layout field for field attributes(i.e. input/output)
wa_layout-stylefname = 'FIELD_STYLE'.
wa_layout-zebra = 'X'.
endform. " build_layout
*& Form GRID_DISPLAY
text
FORM grid_display. "using t_data type ty_tbl_data.
IF it_alv[] IS NOT INITIAL.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
IS_LAYOUT = wa_layout
it_fieldcat = fieldcatalog[]
TABLES
t_outtab = it_alv[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "GRID_DISPLAY
*& Form VALIDATE_DATA
text
--> p1 text
<-- p2 text
FORM validate_data .
DATA : li_kna1 TYPE STANDARD TABLE OF ty_kna1,
li_knb1 TYPE STANDARD TABLE OF ty_knb1,
li_knvp TYPE STANDARD TABLE OF ty_knvp.
SELECT kunnr
FROM kna1
INTO TABLE li_kna1
WHERE kunnr IN s_kunnr.
IF sy-subrc <> 0.
MESSAGE 'Invalid Customer Number'(013) TYPE 'E'.
ENDIF.
SELECT bukrs
FROM t001
INTO TABLE li_knb1
WHERE bukrs IN s_bukrs.
IF sy-subrc <> 0.
MESSAGE 'Invalid Company Code'(014) TYPE 'E'.
ENDIF.
SELECT vkorg
FROM tvko
INTO TABLE li_knvp
WHERE vkorg IN s_vkorg.
IF sy-subrc <> 0.
MESSAGE 'Invalid Sales Organization'(015) TYPE 'E'.
ENDIF.
SELECT vtweg
FROM tvtw
INTO TABLE li_knvp
WHERE vtweg IN s_vtweg.
IF sy-subrc <> 0.
MESSAGE 'Invalid Distribution Channel'(016) TYPE 'E'.
ENDIF.
SELECT spart
FROM tspa
INTO TABLE li_knvp
WHERE spart IN s_spart.
IF sy-subrc <> 0.
MESSAGE 'Invalid Division'(017) TYPE 'E'.
ENDIF.
SELECT parvw
FROM tpar
INTO TABLE li_knvp
WHERE parvw IN s_parvw.
IF sy-subrc <> 0.
MESSAGE 'Invalid Partner function'(018) TYPE 'E'.
ENDIF.
ENDFORM. " VALIDATE_DATA*1----
FORM get_data.
SELECT kna1~kunnr
kna1~ort01
kna1~pstlz
kna1~regio
knb1~bukrs
knb1~zterm
INTO TABLE it_data
FROM kna1 INNER JOIN knb1
ON kna1kunnr = knb1kunnr
WHERE kna1~kunnr IN s_kunnr
AND knb1~bukrs IN s_bukrs.
CHECK it_data[] IS NOT INITIAL.
SELECT kunnr
vkorg
vtweg
spart
parvw
parza
kunn2
lifnr
INTO TABLE it_knvp FROM knvp
FOR ALL ENTRIES IN it_data
WHERE kunnr = it_data-kunnr
AND vkorg IN s_vkorg
AND vtweg IN s_vtweg
AND spart IN s_spart
AND parvw IN s_parvw.
IF sy-subrc EQ 0.
SORT it_knvp BY kunnr.
ENDIF.
ENDFORM. " get_data
*2----
FORM final_table .
LOOP AT it_data INTO wa_data.
READ TABLE it_knvp
INTO wa_knvp
WITH KEY kunnr = wa_data-kunnr
BINARY SEARCH .
IF sy-subrc = 0.
MOVE-CORRESPONDING wa_data TO wa_alv.
MOVE-CORRESPONDING wa_knvp TO wa_alv.
APPEND wa_alv TO it_alv.
ENDIF.
ENDLOOP.
ENDFORM. " FINAL_TABLE
Edited by: Faisal Khan on Mar 27, 2008 1:59 PM -
Adding a new DIV file to my website in order to add instafeed.min.js
Hi all,
I am in the midst of a major upgrade/facelift to our website at http://mauiandsonsretail.com
I added quite a few new things but only modifying the previous .css, div and html code.
I was wondering, how can I add/create a new div to contain my instafeed on the top right corner, right under to the image of the shark fin of my site. (image below) with out disrupting other DIV. I know i am really new at and am hopeful that i will continue to learn thanks to all of your help!
dario
here is my code that did produce our instagram feed but i had trouble controlling the vertical layout of it. It just produced a stream of images going downward pushing anything too far down.
<script type="text/javascript" src="js/instafeed.min.js"></script>
<script type="text/javascript">
var feed = new Instafeed({
get: 'user',
userId: ########,
limit: "6",
links: "true",
resolution: 'low_resolution',
accessToken: '########.###ede5.49cf######a224221ab4fffe####c65e6'
feed.run();
</script>Murray thank you so much! MurraySummers
that's exactly what i needed, i went ahead and added the new div you provided and made some adjustments and its working!
looks awesome, thank you so much Murray. Again super grateful!
Dario
www.mauiandsonsretail.com -
Addition of custom fields in Contract and mapping it with the fields in SRM
Hi all,
A custom field should be added to bid invitation in SRM and mapped to a custom( Z field) field which is present on the contract header screen in R/3 backend. Is it possible to map these custom fields. The custom field which is in the backend contract is a mandatory field for creating a contract in the backend. It is not getting filled so the contract is not getting created in the backend. One solution which we thought of was to create a csutom field on bid invitation and pass the value of the custom field to backend by concatenating it to any of the standard field ehich is getting passed to the backend and then splitting the standard field and retrieving the custom field value and restoring the standard field value. If you think of any solution do let me know.
Regards,
AshaHi
Pls refer to the following thread for more details
Custom fields not display in SRM5.5 Basic Data Frame
Custom fields not display in SRM5.5 Basic Data Frame
Hope it helps.
Pls reward suitable points.
Regards
- Atul -
Adding a new Appset. Error.
Hi,
I am trying to copy an AppSet based on AppShell but when the process goes to the "Copy database" step I have the following error message:
The tail of the log for the database "IMQ_PTO"
has not been backed up. Use BACKUP LOG WITH NORECOVERY
to backup the log if it contains work you do not want to lose.
Use the WITH REPLACE or WITH STOPAT clause of the RESTORE statement
to just overwrite the contents of the log.
RESTORE DATABASE is terminating abnormally
Do you know what to do in such a case? Is there any thread regarding this error? I've been searching but I still haven't found it.
Thank you for your help.
Regards,
GorkaHi Gorka
This is a strange error, but it appears to be failing when trying to restore the database. Maybe try the following
Change the recovery mode of the database from FULL to SIMPLE.
Backup the database using SQL Server Management Studio
Re-Try adding a new appset
I Hope this helps
Kind Regards
Daniel -
Question on populating a field based on 2 other fields
Hi,
I am looking for a solution wherein I need to populate a field (say no of days) based on the other two fields selected by the user (say date from and date to). As soon as user selects the value on "date to" field, "no of days" field should be auto-populated as the value from "date to - date from". I have tried using setter and getter methods on all three field, set valuechangelistener on date to field, set auto submit to true and in the valuechangelistener event code, I am doing the calculations as mentioned in the below snippet.
public void onChangeDateTo(ValueChangeEvent evt){
this.dtDateTo= (java.util.Date)evt.getNewValue();
this.dtDateFrom = (java.util.Date)getDateFrom();//This is the getter method for date from field
System.out.println("onChangeDateTo "+ this.dtDateFrom+":"+this.dtDateTo);
if (evt.getNewValue() != null){
int intCalcNoOfDays = DateHelper.getBusinessDaysCount(this.getDateFrom(),this.getDateTo()) + 1;// my custom class which does the calculation
String strCalcNoOfDays = String.valueOf(intCalcNoOfDays);
System.out.println("strCalcNoOfDays "+strCalcNoOfDays);
this.setNoOfDays(strCalcNoOfDays);
I am getting NullPointerException while getting the value for date from (this.dtDateFrom). I have tried other approaches like attaching a binding to date from field, passing attributes etc but no luck. Can someone assist me in achieving this? Basically I need to populate one field automatically based on values entered on two other fields whenever tab event/user selects value on second field AND it shouldn't fire any other validations on the form (basically partial trigger).
Thanks very much for the help in advance.
Thanks
ShreeThanks Lilly.
I don't have a backing bean associated with the page. I have managed bean instead. JSF source code snippet below
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:h="http://java.sun.com/jsf/html">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="LMS" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:panelStretchLayout id="psl1" startWidth="160px">
<f:facet name="top">
<af:panelGroupLayout id="pgl1" layout="vertical" halign="center">
<af:panelFormLayout id="pfl1" rows="1" maxColumns="1">
<af:outputText value="LMS" id="ot1"
inlineStyle="color:Blue; font-family:'Times New Roman', 'Arial Black', times, Serif; font-size:175%; font-weight:bold; text-align:center;"/>
</af:panelFormLayout>
</af:panelGroupLayout>
</f:facet>
<f:facet name="bottom">
<af:panelGroupLayout id="pgl2"/>
</f:facet>
<f:facet name="center">
<af:panelGroupLayout layout="scroll" id="pgl4">
<af:outputText value="Dashboard" id="ot6"
inlineStyle="color:Green; font-size:150%; font-family:'Times New Roman', 'Arial Black', times, Serif; font-weight:bold; text-align:center;"
visible='#{clickActionHandlerBean.clickLink== "HOME"}'/>
<af:spacer width="10" height="10" id="s1"
visible='#{clickActionHandlerBean.clickLink== "HOME"}'/>
<af:spacer width="10" height="25" id="s5"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'/>
<af:panelFormLayout id="pfl2" rows="1" maxColumns="1"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'>
<af:selectOneChoice label="Type" id="soc1" showRequired="true"
immediate="true" value="#{bean1.type}">
<af:selectItem label="X1" value="X1" id="si1"/>
<af:selectItem label="X2" value="X2 id="si2"/>
<af:selectItem label="X3" value="X3" id="si3"/>
<af:selectItem label="X4 value="X4" id="si4"/>
</af:selectOneChoice>
</af:panelFormLayout>
<af:panelFormLayout id="pfl3" rows="1" maxColumns="3"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'>
<af:inputDate label=" Date From" id="id1"
rendered='true'
showRequired="true" inlineStyle="vertical-align:baseline;"
value="#{bean1.dateFrom}">
<af:convertDateTime pattern="dd-MMM-yyyy" secondaryPattern="MM/dd/yyyy"/>
</af:inputDate>
<af:inputDate label="Date To" id="id2"
rendered='true'
showRequired="true" value="#{bean1.dateTo}" partialTriggers="it1"
valueChangeListener="#{bean1.onChangeDateTo}"
autoSubmit="true">
<af:convertDateTime pattern="dd-MMM-yyyy" secondaryPattern="MM/dd/yyyy"/>
</af:inputDate>
<af:inputText label="No of Days" id="it1" columns="7" showRequired="true"
rendered="true" value="#{bean1.noOfDays}" maximumLength="2">
<af:validateRegExp pattern="[0-9]{1,10}"
messageDetailNoMatch="No of days can have only numbers"/>
</af:inputText>
</af:panelFormLayout>
<af:spacer width="10" height="50" id="s6"/>
<af:group id="g1">
<af:spacer width="250" height="10" id="s7"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'/>
<af:commandButton text="Save" id="cb1" partialSubmit="true" blocking="false"
immediate="false"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'
actionListener="#{bean1.ApplyButtonClicked}">
</af:commandButton>
<af:spacer width="20" height="10" id="s8"/>
<af:commandButton text="Cancel" id="cb2"
visible='#{clickActionHandlerBean.clickLink=="APPLY"}'/>
</af:group>
</af:panelGroupLayout>
</f:facet>
<f:facet name="start">
<af:panelGroupLayout id="pgl3" halign="left">
<p>
<af:outputText value="#{userinfo.userInfo.firstName}" id="otWel"
inlineStyle="color:Maroon;" rendered="false"/>
</p>
<af:spacer width="1" height="50" id="s2"/>
<p>
<af:commandLink text="Home" id="glHome" action="#{clickActionHandlerBean.showHomeRN}"/>
</p>
<p>
<af:commandLink text="Apply" id="glApply"
action="#{clickActionHandlerBean.showApplyRN}"/>
</p>
</af:panelGroupLayout>
</f:facet>
</af:panelStretchLayout>
</af:form>
</af:document>
</f:view>
</jsp:root>
Thanks
Shree -
A Field need to be Freezed based on DFF Segment field.
Hi,
I have 4 DFF Segments on a page.
And the 1st segment is having many values including "Others" in its LOV.
The second segment (Field) is only for "Others". if some one will select "Others" from the 1st segment in that case second segment (field) should be enabled else it should be freezed.
This can be handled if it's not a DFF. Any one has faced such kind of issue.
Please suggest what can be done in this scenario.
Thanks
Bachan.hi
can u please elaborate your requirement in a detailed manner ,if you want to freeze a DFF field on the basis of the value of other field then it is not possiblle after page rendering ,but yes if u want to do the same at time of page rendering then it is possible .
thanx
Pratap
Maybe you are looking for
-
All of a sudden I cannot Forward emails in TB 31.1.2 - I get SMTP timeout error
And I've tried everything. Shutdown Emsisoft virus prot., turned off firewall, got into Verizon router (btw, I'm going right into the Verizon router-not thru a switch), no port forwarding, even tried to forward an email in Safe mode in Win 8.1 x64. T
-
How to find out whether USER-EXIT is active or not
Hello! How can I find out whether USER-EXIT is active or not ? I set a break-point at these points and nothing happens if I want save my daocument ??? Why PERFORM USEREXIT_SAVE_DOCUMENT. PERFORM USEREXIT_SAVE_DOCUMENT_PREPARE. Ragards Ilhan
-
Is it possible to call a class method using pattern in ABAP editor.
Hi, Is it possible to call a class method using pattern in ABAP editor. Thank U for Ur time. Cheers, Sam
-
Hi All, In previous versions of SAP PI, SAP recommends the use of IDoc or Proxy over RFC mainly due to performance reasons, but with PI 7.1, RFCs can use AAE which significantly boost its processing. So the question is, with PI 7.1, is the performanc
-
BPM Monitor job in solution manager
Hi I am trying to monitor job's with solution manager. In the BPM (Trans' solution_manager) I config a business process and add a job to the monitor. But there is no support massage create when the job fails. I don't know what i did wrong. Help Best