How can I add a Custom Field in Work Item "Bug" in VisualStudio Online agile MSF Template?
We are using Visual Studio Online for task and bug tracking. The problem we are facing is that very few fields are available to working with. We need to add custom fields to filter bugs on multiple attributes like OS, Device model, Verified in build etc.
We do not have local TFS server setup. The support questions i have read, they ask to update XML file for work item but i dont know how and where to get that xml file. Also is there any particular Role needed to access such configuration files?
hi Zahid
as already written above currently it is not possible to customize a process template on Visual Studio Online.
but for your purpose you can use tags to save the attributes.
see here Visual Studio Online - Work Item Tagging
Please use Mark as Answer if my post solved your problem and use Vote As Helpful if a post was useful.
Similar Messages
-
How can I add a custom attribute to a catalog area? (CRM Isa Sales)
Gents,
How can I add a custom attribute to a catalog area? (CRM Isa Sales)
Actually I would like to use the Catalog Area Type (maintained in trx COMM_PCAT_ADM on Catalog Area Header level). This field doesn't seem to be available in J2EE webshop. (The field documentation says it is for documentation purposes only so I don't expect it to be transferred).
As this field is not readily available, I would like to add is as an attribute to the Catalog Area. BADI's PCAT_IMS_FEED_ATT and PCAT_IMS_FEED_VAL seem to indicate that it should be possible to add additional fields not only on product level, but also on Area level:
Example implementation code:
method IF_EX_PCAT_IMS_FEED_ATT~READ_NEW_FIELDS.
* Example, how to add new attributes to a indexcategory
* Possible levels are 'C'ategory and 'P'roduct.
* Field 'VALUE' carries the attributetype ('S'tring, 'I'ntegar or
* 'F'loat)
* Structure 'IS_OBJECTS' carries actuall identifiers
data: ls_fields type comt_pcat_ims_feed_ux.
case iv_level.
when 'C'. "Category Level
* no new field
when 'P'. "Product Level
ls_fields-field = 'CUSTOMER_EXIT_FIELD'.
ls_Fields-value = 'S'.
append ls_fields to ct_fields.
* exproduct fields
ls_fields-field = 'REMAN_ABL'.
APPEND ls_fields TO ct_fields.
ls_fields-field = 'EXCH_BUS'.
APPEND ls_fields TO ct_fields.
endcase.
endmethod.
However, when I create an implementation and add some code in the when 'C' part, the attributes do not seem to get transferred. (I've checked in the debug mode of the developer studio).
- My example code:
METHOD if_ex_pcat_ims_feed_att~read_new_fields.
* Possible levels are 'C'ategory and 'P'roduct.
* Field 'VALUE' contains the attributetype
* ('S'tring, 'I'ntegar or * 'F'loat)
DATA:
ls_fields LIKE LINE OF ct_fields.
CASE iv_level.
WHEN 'C'. "Category Level
ls_fields-value = 'S'.
ls_fields-field = 'ZTEST'.
APPEND ls_fields TO ct_fields.
WHEN 'P'. "Product Level
ENDCASE.
ENDMETHOD.
and:
METHOD if_ex_pcat_ims_feed_val~read_new_fields.
CASE iv_level.
WHEN 'C'.
ls_fields-field = 'ZTEST'.
ls_Fields-value = 'Value 1'.
append ls_fields to ct_fields.
WHEN 'P'.
ENDCASE.
ENDMETHOD.
In the ABAP debugger, I can see that my code is touched during initial and delta replications, however, after replication, the fields do not show up in the Java debugger.
Any ideas?
regards,
Wilco MengeHi,
How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
I think the "formUrl" is to post those input value to the jcr repository?
var createDialog = {
"jcr:primaryType": "cq:Dialog",
"id": CQ.Util.createId("cq-createdialog"),
"title":CQ.I18n.getMessage("Create Page"),
"formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
"params": {
"cmd":"createPage",
"_charset_":"utf-8"
I have added a field called "starred"
Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
:status
browser
_charset_
utf-8
cmd
createPage
label
b
parentPath
/content/keyword_elaboration
starred
c
template
/libs/collab/commons/templates/form
title
a
Source
cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
However, when I go to the crxde to view the node's attribute, the properity starred is not created
Are there anything I did wrong or missing?
Thanks.
Message was edited by: aslkit -
hi,
sap gurus,
good morning to all,
how can i add STORAGE LOCATION field which is not in the standard tables namely
KOMP, KOMK, and KOMG.
how to include it in our FIELDS FROM FIELD CATALOGUE.
if we include this field is there any impact on the standard tables.
plz let me know this.
bcz
we are selling our products in two ways
(1). one is straight from factory ie direct sales from factory
if customer asks for excise invoice then we will sell thru factory and keeping freight in mind we will
deliver him which ever is economical either rail or road.
before coming to second case of selling the goods
we will do STOCK TRANSPORT ORDER from plant to different storage locations.
if we did STO thru road we have to sell the goods thru road only.
if we did STO thru rail we have to sell the goods thru rail route only.
(2). if the customer is not asking any excise invoice then we will send the goods thru depo/storage
location which is not registered under excise.
if the goods came by road then it will be delivered by road only.
if the goods came by rail then it will be delivered by rail only.
my logic here is
basing on the
storage location, transportation types, and distance i want to create condition record
that captures exact frieght at the sales order level.
confirm whether i am right or wrong.
regards,
balaji.t
09990019711.Hi,
It is not recommended to add new fields to any SAP standard tables. It disturbs the whole SAP functionality.
But if you have no choice expcept to change the standard tables to meet your requirement - then you need an access key to modify the object, which is available from the market place.
Nevertheless, the better option is to create a 'Z' table with the required fields and use that accordingly.
Changing standard tables will have serious impact when you apply patches or do an upgrade on the existing functionality.
REWARD POINTS IF HELPFUL
Regards
Sai -
How can I create a custom field in contacts and have it appear in ICal?
How can I create a custom field in contacts (death date) and have it appear in calendar?
Birthdays seems to work fine but I'd like to do the same for a custom field called Date of DeathBy default, iTunes convert files to type AAC which has an extension of .m4a
For iTunes to recognize them as Audiobook files, the extension needs to change from .m4a to .m4b
This can be done a number of different ways. Here are 2 (beginner and advanced)
. simply, by renaming each file from windows explorer
. more complex, by using Start/Run/cmd to get a "DOS" type window,
using the command "cd" to change to the directory that your files are in
and entering "ren *.m4a *.m4b" -
How can I add the the field in the database in JSP?
How can I add the the field in the MS access using JSP?
By using JDBC.
http://java.sun.com/docs/books/tutorial/jdbc/index.html -
How can I add a custom attribute to the create page dialog?
I followed the following link to add a custom attribute called starred and this attaribute can be displayed in siteadmin grid
http://dev.day.com/docs/en/cq/current/developing/customize_siteadmin.html
I would like to let the user input the value when they create a page. That's why I would like to add a custom field in the input dialog box as attached pic.
The method you describe before can only added those CQ bulid-in attribute.
For those custom attribute, how can I added it?Hi,
How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
I think the "formUrl" is to post those input value to the jcr repository?
var createDialog = {
"jcr:primaryType": "cq:Dialog",
"id": CQ.Util.createId("cq-createdialog"),
"title":CQ.I18n.getMessage("Create Page"),
"formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
"params": {
"cmd":"createPage",
"_charset_":"utf-8"
I have added a field called "starred"
Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
:status
browser
_charset_
utf-8
cmd
createPage
label
b
parentPath
/content/keyword_elaboration
starred
c
template
/libs/collab/commons/templates/form
title
a
Source
cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
However, when I go to the crxde to view the node's attribute, the properity starred is not created
Are there anything I did wrong or missing?
Thanks.
Message was edited by: aslkit -
How can i add an custom attribute and assign it to an existing custom object class in sun ds
I need to add an attribute to sun ds schema and assign it to an existing custom object class.
I know how to add an attribute but how can i add the attribute to an existing custom object class.
Please help.
ThanksThe objectclasses attribute is multi-valued, so you can add several values to it as long as they are unique.
For instance, I think you can add several declaration of the same objectclass as below (note the difference is the number of spaces in the value) howewer, from a schema perspective, only 1 will be taken into account:
objectclasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256' )
objectclasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256 ' )
That's the reason why it is safe to delete previous value if you want to update an existing objectclass. No problem to add a new objectclass (new oid and new name) to the schema.
-Sylvain -
Can we add Resource custom fields into ASSIGNMENT TIMEPHASED CUBE
Hi,<o:p></o:p>
<o:p> </o:p>
We want to add Resource custom fields into
ASSIGNMENT TIMEPHASED CUBE in project server 2010.<o:p></o:p>
Is it possible?<o:p></o:p>
<o:p> </o:p>
Please help me in this.<o:p></o:p>
<o:p> </o:p>
Thanks,<o:p></o:p>
Sarath<o:p></o:p>Once column is for assignment and another one is for Resource.
Assignment means when you crate a task then assign that task to resource then task become assignment.
when you will create report in for Resource_skill_resource you will be able to group by or filter resource as per their skill.
As far as Resource_Skill_R_Assignment is concerned you can group by or filter assignment for resource as per their skill
Resource CUBE: The
Resource Non Timephased and Resource Timephased OLAP cubes contain resource data. These two OLAP cubes do not contain any Total fields in common, but do contain several Dimensions in common (such as Booking Type and Resource List).
Assignment: The
Assignment Non Timephased, Assignment Timephased, MSP
Portfolio Analyzer, and MSP
Project Timesheet OLAP cubes contain assignment data. Each of these OLAP cubes includes many
of the same Total Fields (such as Actual Cost, Actual Overtime Cost, Actual Work, and Actual Overtime Work) and many of the same Dimensions (such as Assignment Owner and Project List)
kirtesh -
How can I add the expiration date at line item level
My User is selling voucher. The voucher is sell at line item. eg GV$5, GV$10,etc
Each voucher line item sold need to be entered with a EXPIRATION date of that voucher.
Maybe 3 months from issue, maybe 6months/1 year from issue.
How can I add this to the sales order line item level?
Which field can I used and how to configure?Hi Colin ,
The question is not very clear , but i assume that you are asking about the self expiry date of the particular material ,
1. The setting you can do by activating shelf life data in material master :Plant data/stor1
2. its better to have a batch managed material for that you can sort the material acording the self expiry date.
3. Once you maintain self expiry date system by default pick the material at the time of delivery
Note-Shelf life expiry it will give the life of the material from the day of manfacture,remaining shelf life also will give .
Hope it is helpful
Best regards
Venkat -
How can I add a new field for Belgium in T588M?
Hi experts,
I am trying to change the infotype 0002 screen for BElgium. This is how I am doing T588M > new entry > MP000200 > alt. screen 2012 > var. key 12 > feature p0002 >.
I also maintained 12 as the var. key for the countr yBE in P0002 feature. I want to add P0002-GBDEP (state) field which is already there for MP000200 screen 2000 which is the SAP standard screen. why it does not copy this field when I create this field for Belgium. HOw can I bring it for BEl. Please advise.
Thanks a ton,
JEss...As P0002-GBDEP is not included in screen '2012', you'll need to create an additional custom screen to show this field. Then, you'll need to config table 'T582C' to have 'MP000200' / screen '2012' to have this custom screen as an 'include' screen (e.g. if your new custom screen is ZP000200 / screen '0100', then in T582C, you'll need an entry with 'MP000200' '2012' ZP000200' '0100'.
-
How can I add the extra fields to a datasource usign "User Exist"?
Hallo guys,
I have a quesiton on an extractor.
I want to extend fields for an extractor, and the additional fields come from a third table (for the extractor, there is a view which 2 Tabels inner join.) The third table should have LEFT OUTER JOIN relation to the other 2 tables. So I have to use "User Exist" to add the fields from the third table to my data source.
How can I do it via user exist?
Thanks for any hint in advance.
Regards,
LiyingHi LiYing,
You can do this using a USER EXIT.
if you edit the ABAP program ZXRSAU01, you can add ABAP coding:
here an example for 1_CO_PA....:
<i> CASE i_datasource.
WHEN '1_CO_PA_.......
Data assignments
LOOP AT c_t_data INTO wa_s_copa.
IF ( NOT wa_s_copa-vrgar = 'F' ) OR ( wa_s_copa-curtype = 'B0' ).
wa_s_copa-zzratio = 1.
wa_s_copa-zztr_rate = 1.
wa_s_copa-zzcurkey_tc = wa_s_copa-rec_waers.
Company Code Currency Invoice *
ELSEIF wa_s_copa-curtype = '10'.
assume one exchange rate per invoice
SELECT SINGLE * FROM ce19991 INTO wa_ce1
WHERE belnr = wa_s_copa-belnr
AND paledger = '02'
AND vrgar = wa_s_copa-vrgar
AND versi = space
AND perio = wa_s_copa-perio.
MOVE wa_ce1-kursf TO lx_kursf.
MOVE wa_ce1-frwae TO wa_s_copa-zzcurkey_tc.
IF NOT wa_ce1-frwae EQ 'EUR'.
read rate ( table is buffered ).
CLEAR: wa_tfact, wa_ffact.
lx-datlo = 99999999 - sy-datlo.
SELECT single tfact ffact FROM tcurf into
(wa_tfact, wa_ffact)
WHERE kurst EQ 'M'
AND fcurr EQ wa_ce1-frwae
AND tcurr EQ 'EUR'
AND gdatu LE lx-datlo.
IF sy-subrc NE 0.
SELECT single tfact ffact FROM tcurf into
(wa_tfact, wa_ffact)
WHERE kurst EQ 'EURX'
AND fcurr EQ wa_ce1-frwae
AND tcurr EQ 'EUR'
AND gdatu LE lx-datlo.
ENDIF.
IF wa_tfact = 1.
wa_s_copa-zzratio = wa_ffact.
ELSE.
IF wa_tfact NE 0.
wa_s_copa-zzratio = 1 / wa_tfact.
ENDIF.
ENDIF.
ELSE.
eur : eur => always 1
wa_s_copa-zzratio = 1.
ENDIF.
IF lx_kursf < 0.
wa_s_copa-zztr_rate = lx_kursf * -1 .
ELSE.
CHECK lx_kursf > 0.
wa_s_copa-zztr_rate = 1 / lx_kursf.
ENDIF.
ENDIF.
ENDLOOP.
ENDCASE.
</i> -
How can I add a new field in selection screen for this report
*& Report ZGS_BARKODLA_HIZLI_GIRIS
report zgs_barkodla_hizli_giris.
tables: mara,
mseg,
mch1,
*mch1,
mkpf,
mchb ,
makt.
type-pools: esp1.
data: i_message_tab type esp1_message_tab_type,
wa_message_tab type esp1_message_wa_type ,
sc_count type i.
ALV
type-pools: slis, kkblo.
data: gs_layout type slis_layout_alv ,
gt_fldcat type slis_t_fieldcat_alv with header line,
gt_header type slis_t_listheader with header line,
gt_sortin type slis_t_sortinfo_alv with header line,
g_repid like sy-repid .
define add-fieldcat.
gt_fldcat-fieldname = &1.
gt_fldcat-ref_tabname = &2.
gt_fldcat-seltext_s = &3.
gt_fldcat-seltext_m = &3.
gt_fldcat-seltext_l = &3.
gt_fldcat-reptext_ddic = &3.
gt_fldcat-ddictxt = 'M'.
append gt_fldcat.
clear gt_fldcat.
end-of-definition.
types: begin of titab,
sel type xfeld,
matnr type matnr,
maktx type maktx,
charg type charg_d,
menge type menge_d,
erfmg type erfmg,
end of titab.
data : witab type titab.
data : itab type table of titab.
data : ok_code type sy-ucomm.
controls: tc_itab type tableview using screen 0100.
data: gv_header like bapi2017_gm_head_01,
gv_code like bapi2017_gm_code.
BAPI export parameters
data: gv_headret type bapi2017_gm_head_ret,
gv_matdoc type bapi2017_gm_head_ret-mat_doc,
gv_matyear type bapi2017_gm_head_ret-doc_year.
data : lv_objek like inob-objek .
data : ls_inob like inob .
data : imseg type ty_t_mseg.
data : wmseg type mseg.
data : answer.
data : count type i.
data : v_atinn type atinn.
BAPI movement details
data: i_goodsmvt_items type bapi2017_gm_item_create occurs 0
with header line.
data: i_return type bapiret2 occurs 0 with header line.
start-of-selection.
call function 'CONVERSION_EXIT_ATINN_INPUT'
exporting
input = 'Z_ORAN'
importing
output = v_atinn.
call screen 100.
*& Module status_0100 OUTPUT
module status_0100 output.
set pf-status '100'.
set titlebar '100'.
mseg-werks = 1000.
mseg-umwrk = 1000.
**added
sc_count = sc_count + 1.
if sc_count eq 1.
mseg-bwart = 313.
endif.
mkpf-budat = sy-datum.
**added
describe table itab lines tc_itab-lines.
endmodule. " status_0100 OUTPUT
*& Module user_command_0100 INPUT
module user_command_0100 input.
data field(20).
data: line_t like sy-index.
data: lines like sy-index.
data line_count like sy-loopc.
data: begin of cols,
screen like screen,
index type i,
selected(1) type c,
vislength like icon-oleng,
invisible(1) type c,
end of cols.
case ok_code.
when 'DELE'.
delete itab where sel eq 'X'.
when 'ENTE'.
check *mch1-charg is not initial.
read table itab into witab with key charg = *mch1-charg.
if not sy-subrc is initial.
witab-charg = *mch1-charg.
select single matnr from mch1 into witab-matnr
where charg eq witab-charg.
if not syst-subrc is initial.
set cursor field '*MCH1-CHARG'.
message e115(12) with *mch1-charg.
endif.
select single maktx from makt into witab-maktx
where matnr eq witab-matnr
and spras eq syst-langu.
witab-erfmg = 1.
concatenate witab-matnr witab-charg into lv_objek .
clear ls_inob .
select single * into ls_inob
from inob
where objek = lv_objek and
klart = '023' and
obtab = 'MCH1' .
select single atflv from ausp into witab-menge
where objek = ls_inob-cuobj and
klart = '023' .
append witab to itab.
**added
clear *mch1-charg.
**added
endif.
when 'SAVE'.
if mkpf-budat is initial.
set cursor field 'MKPF-BUDAT'.
message e055(00).
endif.
if mseg-lgort is initial.
set cursor field 'MSEG-LGORT'.
message e055(00).
endif.
if mseg-umlgo is initial.
set cursor field 'MSEG-UMLGO'.
message e055(00).
endif.
if mseg-bwart is initial.
set cursor field 'MSEG-BWART'.
message e055(00).
endif.
refresh imseg.
loop at itab into witab.
move-corresponding witab to wmseg.
append wmseg to imseg.
endloop.
call function 'ZMM_POPUP_WITH_DATA'
exporting
imseg = imseg
importing
answer = answer.
if answer eq 'Y'.
perform create_goods_movement.
endif.
when 'P--'.
clear ok_code.
perform paging using 'P--'.
set cursor field 'MARA-MATNR' line 1.
when 'P-'.
clear ok_code.
perform paging using 'P-'.
set cursor field 'MARA-MATNR' line 1.
when 'P+'.
clear ok_code.
clear lines.
perform paging using 'P+'.
set cursor field 'MARA-MATNR' line 1.
when 'P++'.
clear ok_code.
perform paging using 'P++'.
set cursor field 'MARA-MATNR' line 1.
when 'SORA'.
read table tc_itab-cols into cols with key selected = 'X'.
if sy-subrc is initial.
field = cols-screen.
field = field+5(10).
sort itab ascending by (field).
endif.
when 'SORZ'.
read table tc_itab-cols into cols with key selected = 'X'.
if sy-subrc is initial.
field = cols-screen.
field = field+5(10).
sort itab descending by (field).
endif.
when 'PRNT'.
perform write_alv.
endcase.
endmodule. " user_command_0100 INPUT
*& Module read_table OUTPUT
module read_table output.
mara-matnr = witab-matnr.
makt-maktx = witab-maktx.
mch1-charg = witab-charg.
mseg-menge = witab-menge.
mseg-erfmg = witab-erfmg.
line_count = sy-loopc.
endmodule. " read_table OUTPUT
*& Module write_table INPUT
module write_table input.
witab-matnr = mara-matnr.
witab-maktx = makt-maktx.
witab-charg = mch1-charg.
witab-menge = mseg-menge.
witab-erfmg = mseg-erfmg.
modify itab from witab index tc_itab-current_line.
endmodule. " write_table INPUT
*& Module exit INPUT
module exit input.
leave to screen 0 .
endmodule. " exit INPUT
*& Form create_goods_movement
form create_goods_movement .
clear : gv_header, i_return[], i_goodsmvt_items[].
gv_header-doc_date = gv_header-pstng_date = mkpf-budat.
gv_header-pr_uname = sy-uname.
GM with reference to reservation
loop at itab into witab.
i_goodsmvt_items-material = witab-matnr.
i_goodsmvt_items-entry_qnt = witab-erfmg.
i_goodsmvt_items-entry_uom = 'ST'.
i_goodsmvt_items-move_type = mseg-bwart.
i_goodsmvt_items-plant = mseg-werks.
i_goodsmvt_items-stge_loc = mseg-lgort.
i_goodsmvt_items-move_plant = mseg-umwrk.
i_goodsmvt_items-move_stloc = mseg-umlgo.
i_goodsmvt_items-batch = witab-charg.
append i_goodsmvt_items.
endloop.
find BAPI processing transaction
if gv_code is initial.
perform determine_bapi_code using mseg-bwart
changing gv_code.
endif.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gv_header
goodsmvt_code = gv_code
importing
goodsmvt_headret = gv_headret
materialdocument = gv_matdoc
matdocumentyear = gv_matyear
tables
goodsmvt_item = i_goodsmvt_items
return = i_return[].
cancel blocking process
loop at i_return where type eq 'E' or type eq 'A' or type eq 'X'.
exit.
endloop.
if sy-subrc ne 0.
refresh i_message_tab.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
wa_message_tab-msgid = 'M7'..
wa_message_tab-msgty = 'S'.
wa_message_tab-msgno = '060'.
wa_message_tab-msgv1 = gv_matdoc.
wa_message_tab-msgv2 = ''.
wa_message_tab-msgv3 = ''.
wa_message_tab-msgv4 = ''.
append wa_message_tab to i_message_tab.
else.
refresh i_message_tab.
call function 'BAPI_TRANSACTION_ROLLBACK'.
write a message as there is an unexpected error.
loop at i_return.
wa_message_tab-msgid = i_return-id.
wa_message_tab-msgty = i_return-type.
wa_message_tab-msgno = i_return-number.
wa_message_tab-msgv1 = i_return-message_v1.
wa_message_tab-msgv2 = i_return-message_v2.
wa_message_tab-msgv3 = i_return-message_v3.
wa_message_tab-msgv4 = i_return-message_v4.
append wa_message_tab to i_message_tab.
endloop.
endif.
call function 'C14Z_MESSAGES_SHOW_AS_POPUP'
tables
i_message_tab = i_message_tab.
endform. " create_goods_movement
*& Form determine_bapi_code
form determine_bapi_code using p_bwart type bwart
changing p_code type bapi2017_gm_code.
data: lt_t158b type table of t158b with header line.
clear p_code.
select tcode from t158b into corresponding fields of table lt_t158b
where bwart eq p_bwart.
loop at lt_t158b.
select single gmcode from t158g into p_code
where tcode eq lt_t158b-tcode.
if sy-subrc is initial.
exit.
endif.
endloop.
endform. " determine_bapi_code
*& Form paging
form paging using code.
data: i type i,
j type i.
case code.
when 'P--'. tc_itab-top_line = 1.
when 'P-'.
tc_itab-top_line = tc_itab-top_line - line_count.
if tc_itab-top_line le 0.
tc_itab-top_line = 1.
endif.
when 'P+'.
i = tc_itab-top_line + line_count.
j = tc_itab-lines - line_count + 1.
if j le 0.
j = 1.
endif.
if i le j.
tc_itab-top_line = i.
else.
tc_itab-top_line = j.
endif.
when 'P++'.
tc_itab-top_line = tc_itab-lines - line_count + 1.
if tc_itab-top_line le 0.
tc_itab-top_line = 1.
endif.
endcase.
endform. " paging
*& Form write_alv
form write_alv .
perform find_list_header.
perform fill_field_cat.
perform fill_sortinfo.
g_repid = sy-repid.
gs_layout-colwidth_optimize = 'X'.
gs_layout-zebra = 'X'.
answer = 'Y'.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_buffer_active = ''
i_callback_program = g_repid
i_save = 'A'
i_callback_top_of_page = 'TOP_OF_PAGE'
is_layout = gs_layout
it_fieldcat = gt_fldcat[]
it_sort = gt_sortin[]
tables
t_outtab = itab[].
endform. " write_alv
Form find_list_header
form find_list_header.
data : v_datum(10),
v_datlo(10),
v_dathi(10),
v_uzeit(8).
clear: gt_header, gt_header[].
gt_header-typ = 'H'.
gt_header-info = sy-title.
append gt_header.
clear gt_header.
gt_header-typ = 'S'.
gt_header-key = 'Çalıştırma Zamanı : '.
write syst-datum to v_datum.
write syst-uzeit to v_uzeit.
concatenate v_datum '/' v_uzeit into gt_header-info.
append gt_header.
endform. " find_list_header
Form fill_field_cat
form fill_field_cat.
refresh gt_fldcat.
clear gt_fldcat.
gt_fldcat-key = 'X'.
add-fieldcat 'MATNR' 'MARA' ''.
add-fieldcat 'MAKTX' 'MAKT' ''.
add-fieldcat 'CHARG' 'MSEG' ''.
gt_fldcat-do_sum = 'X'.
add-fieldcat 'MEINS' 'MARA' 'Olcu Birimi '.
gt_fldcat-do_sum = 'X'.
add-fieldcat 'ERFMG' 'MSEG' 'Adet'.
endform. " fill_field_cat
Form fill_sortinfo
form fill_sortinfo.
gt_sortin-up = 'X'.
gt_sortin-fieldname = 'MATNR'. append gt_sortin.
endform. " fill_sortinfo
Form top_of_page *
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
i_logo = 'ZKUTAS'
it_list_commentary = gt_header[].
endform. " top_of_pageHI,
if it is a normal report program then you can directly create a Selection screen field.
After the Type-pool you can use Parameters or Select-options to create the selection screen field..
If it is a Modulpool program then you can create a selection scren field like
SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.
PARAMETERS: p1(10) TYPE c.
SELECTION-SCREEN END OF SCREEN 1100.
defines a selection screens 1100 as subscreens.
The next screen number of screen 100 is 100 (statically-defined).
PROCESS BEFORE OUTPUT.
MODULE status_0100.
CALL SUBSCREEN area INCLUDING sy-repid number.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
CALL SUBSCREEN area.
MODULE user_command_0100.
look at the below link
http://help.sap.com/saphelp_nw2004s/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm
Regards
Sudheer -
How can I add a attachment field to my new form list
I have the setting checked yes for attachments. Then I click on the edit tab above then attach file, once I attach the file, it disappears and I cant see it after the record is saved. So how would I add a attachment to a record?
Hi Soupi,
From your description, my understanding is that you want to show attachments in list view.
By default, the list view only contain the Title column. If you want to show whether there is an attechment in an item, you can modify the view and show the Attachments column as Clicking List->Modify View, check "Attachments" in Columns section.
After the above, the result is like:
In the above image, test1 has an attachment, test1 doesn't have attachments.
Thanks,
Wendy
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How can I add my custom ringtone to iTunes 10.7?
I recently got an iPhone 5 and I want to add a custom ringtone to it. I created a 29-second clip of a song using a software called Audacity and then saved it as an .m4r file. Then, I tried the drag-and-drop method to add the file to my Tones playlist on iTunes; it did not show up anywhere in iTunes. Then I tried moving the file into the "Automatically Add to iTunes" folder; it still didn't work. I tried shortening the file name, and making the clip of the song shorter (to 20 secs), and nothing worked. Am I doing something wrong? Does anyone know how to solve this problem?
(FYI: I am using iTunes 10.7.0.21; I have Windows 7. I also tried using the "Create AAC Version" function on iTunes, but then I couldn't change the file type from .m4a to .m4r, so that's why I used Audacity.)
Thanks in advance.I found the answer to my own question! The following discussion really helped, so if you have the same problem, check it out: https://discussions.apple.com/message/18885997#18885997
-
How can we add user defined fields in My Account Profile?
Hi,
When adding new field for user,user groups,my resource,organizations and request all exist in the drop down menu list but the MyAccount(In the page where we add user defined fields).
Please help me to add user defined field in MyAccount also.
Thanks in advance.Hi,
As I said before it is not that straight forward.If you will decompile tcViewProfileAction .class using any java decompiler you will find out that data in setAccountProfile method is not getting set through formmetadata.xml . If you are well verse with struts then only you can achieve what you are trying to do.You need to extend tcViewProfileAction class and also tcViewProfileForm class and then you need to modify tjspViewProfileTiles.jsp .It will not be easy job.Usually in implementation we do not change action class until its absolutely required as oracle also do not recommend that so now its between you and your client to make a call if they want to go for such customization.I won't recommend you do that.
Regards
Nitesh
Maybe you are looking for
-
Impossible to send back a CSV file containing more than 8000 chars
Hello, I work on an application using Spring and I try to write a String of around 19000 chars in a CSV file that I send back to the client with the method PrintWriter.write (response.getWriter().write) of the object HttpServletResponse. Here is the
-
Ive just completed a short three minute movie and I am having an impossible time trying to exporting it to a web site. I would like it to be viewed in a Windows environment rather than QuickTime. I believe that I accurately provided the correct serve
-
Importing movies to purple iMovie from iPhone, iPad, and iPhoto
I have created movies on my iphone and on a Lumix camera. I am trying to figure out the best way to have all my movies in iMovie rather than iPhoto. I have already likely made the mistake of transfering my Lumix data to an iPad with iOS while I was i
-
Does anybody know which adobe product I should get for my PS3? If so, please reply to [email protected]
-
ORA-01013: User requested cancel of current operation (#1013)
Hi Guys, I have an application and in particular an append query that inserts rows into a linked table. I keep on getting this error, (although the code works fine in enterprise manager, and code-imports ok). I did not cancel the query but it seems t