Function module to modify fields in an interactive report
use fm POPUP_GET_VALUES.
data : itabt like sval occurs 0 with header line.
itabt-TABNAME = 'MARA'.
itabt-FIELDNAME = 'MATNR'.
append itabt.
itabt-TABNAME = 'MARD'.
itabt-FIELDNAME = 'LGORT'.
append itabt.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
POPUP_TITLE = 'Give value'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE =
TABLES
FIELDS = itabt
EXCEPTIONS
ERROR_IN_FIELDS = 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.
My requirement is in this I want only the second fields on changemode,The first fields should be dsiabled as it is a primary field.
Is this the right function module ?If so how do I incorporate the above functionality else what is alrternative functiuon module.
very urgent
hi,
use
itabt-TABNAME = 'MARA'.
itabt-FIELDNAME = 'MATNR'.
itabt-FIELD_ATTR = '03'.
"but then you must give an input for the field
itabt-VALUE= 1000.
append itabt.
A.
Message was edited by:
Andreas Mann
Similar Messages
-
Function module to modify the vendor confirmation data
Hi,
I am using ME_CONFIRMATION_UPODATE to add a new record to table EKES, ie I am able to see the vendor confirmation in purchase order. Can I use the same function module to modify the same record in above table EKES or anyother function module is there? My requirment is to change the delivery date once again in confirmation tab in purchase order.
Please help,
Thanks,
Vengal Rao.Hi All,
I could use the same function module and change the delivery date, i thing I changed is the data in field KZ , instead of 'I' used 'U'. to update the existing data.
Thanks,
Vengal Rao. -
Function module to modify the user roles & profiles
Hi All,
I am working on user maintenance and i need a function module to modify the user roles & profiles.
Thanks in Advance.
Phani.i used the below fms
BAPI_USER_ACTGROUPS_ASSIGN for assigning the roles.
delete the profiles of the user qnd assign the profiles to the user:
BAPI_USER_PROFILES_DELETE
BAPI_USER_PROFILES_ASSIGN
i used the above FMs for my requirement.
Regards,
Phani. -
Simple way to change color of field in an interactive report
Is there a simple way with css to change the color of a field in an interactive report. I want certain fields to stand out.
Can you provide an example and where the code is inserted in APEX? TY.jfr620 wrote:
Is there a simple way with css to change the color of a field in an interactive report. I want certain fields to stand out.On what basis?
The appearance of cells based on the report structure can be controlled using CSS: +{message:id=10373505}+
Conditional formatting based on cell values is better handled using the built-in highlighting, or Dynamic Actions/JavaScript, which provide better separation of concerns than generating HTML in the query: +{message:id=10493230}+
(For even better separation, use the Dynamic Action to apply <tt>class</tt>es rather than setting style properties directly, and use separate CSS rules to apply the formatting.) -
Function Module for splitting(field) in CO02 t-code
Function Module or enhancement for splitting(field) in CO02 t-code Need function module for inserting a value in field(Max No of splits) in Transaction CO02
Message was edited by:
Mohan KumarYou can use this SAP enhancement PPCO0012 to display your own additional
information on a separate tab page in the production order header. You
can also make user fields avaialble for input, change them, and return
the changes to the order header. -
Function module to create FIELD CATALOG
I am displaying data through ALV using SET_TABLE_FOR_FIRST_DISPLAY method of class CL_GUI_ALV_GRID.
is there any function module available to create the field catalog for that??
the F.M. "REUSE_ALV_FIELDCATALOG_MERGE" is giving some error for that. any other function moudle is available or not??
how to use above function module for that??Hi,
There are many ways in which to build a field catalog, some of which can be found below:
Building a fieldcatalog based on a dictionary structure/table
This Method requires you to create a dictionary structure via
SE11 and pass that in the 'I_STRUCTURE_NAME' parameter.
The below example will be for all of EKKO but you could create a new
structure containing only the fields you require.
*For Function module ALV (report)
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat LIKE LINE OF it_fieldcat.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'EKKO'
CHANGING
ct_fieldcat = it_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*For object ALV (Screen)
DATA: gd_fieldcat2 type LVC_T_FCAT.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_BUFFER_ACTIVE =
I_STRUCTURE_NAME = 'EKKO'
I_CLIENT_NEVER_DISPLAY = 'X
I_BYPASSING_BUFFER =
CHANGING
ct_fieldcat = gd_fieldcat2
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
Regards,
Shyamala
Edited by: Shyamala S on May 25, 2009 3:21 PM -
Function modul for updating field contact in tab but000
Hello experts,
does anybody know a fm in order to update the field
'contact' in tx bp , in tab strip status ?
I have to update this field for many cp and in tx bp I only
can select this field on tab strib status.
Now I want to make a programm and so I need a fm.
Thanks for help
GerdHi Gerd,
Look at function module 'BAPI_BUPA_CENTRAL_CHANGE' . The importing parameter CENTRALDATA has got field CONTACTALLOWANCE and that is what you are aiming to change.
Don't forget to commit the changes.
Cheers,
Surendar
Edited by: Surendar Sangwan on May 15, 2008 3:10 PM -
Function Modul for read field label
hi all
i search a function modul for read the field label from data element.
Example for data element matnr, i must have field label text material.
Thx abap_beginHi,
If you give input parameters type, field and table you get data element using
RP_PRINT_GET_DATA_ELEMENT
Try also
KL_TABLE_INFO_GET
But not sure if this futfill your requirement... -
Function Module to modify provider specific settings in rsdichapro
Hi guys,
does anybody know the function module used to modify the provider specific settings for an InfoCube.
Thanks in advance.
AlexHi there!
For me it worked just by going to se16 and changing the records one by one. I wanted to modify the provider-specific properties and in specific the constant that restricts the infocube values and is used for logical partitioning (RSDICHAPRO-CHACONST) and it worked from there.
Br
Angelo -
Regarding BAPI/Function Module for updating fields FAKSK and LIFEX
Hi All,
I have a requirement wherein i need to update the fields FAKSK(Billing block ) and LIFEX(External Identification number).
We have already tried using the function Module WS_DELIVERY_UPDATE and also BAPI_OUTB_DELIVERY_CHANGE but we didnt find both the fields in any of the above BAPI or function module.
To be more specific to the requirement we need to remove the Billing block and update the LIFEX filed.
If anyone have come accross such situation Please advice.
Thanks ina dvahi satya ranjan,
put an append to structure 'vbkok' which is used as input parameter for WS_DELIVERY_UPDATE / WS_DELIVERY_UPDATE_2.
enter faksk and lifex and data field plus an active-flag for every data field.
e.g.:
ZZKZTRSPG ZZKZTRSPG CHAR 1 0
ZZTRSPG TRSPG CHAR 2 0
find include 'LV50SFZ2' in WS_DELIVERY_UPDATE am implement like this:
if vbkok_wa-ZZKZTRSPG <> space .
perform likp_bearbeiten_vorbereiten(sapfv50k).
if not vbkok_wa-ZZKZTRSPG eq space.
likp-trspg = vbkok_wa-zztrspg.
endif.
perform likp_bearbeiten(sapfv50k).
endif.
regards
marcus -
Function Module to modify MARC table
Hi all,
Is There any Function Module which modifys the table MARC.
please suggest.
regards,
chandra.Hello Reddy,
Check this sample code:
*& Report ZYTEST02 *
report zytest02 .
parameters:matnr like bapimathead-material,
maktx like bapi_makt-matl_desc default 'Mat. autm. AE',
werks like bapi_marc-plant,
vkorg like bapi_mvke-sales_org,
vtweg like bapi_mvke-distr_chan.
start-of-selection.
perform material_create using matnr
maktx
werks
vkorg
vtweg.
*& Form material_create
* text
* -->P_MATERIAL text
form material_create using value(p_matnr)
value(p_maktx)
value(p_werks)
value(p_vkorg)
value(p_vtweg).
tables: mara.
* shift p_matnr right deleting trailing space.
* translate p_matnr using ' 0'.
data: headdata like bapimathead occurs 0 with header line.
data: clientdata like bapi_mara.
data: clientdatax like bapi_marax.
data: salesdata like bapi_mvke.
data: salesdatax like bapi_mvkex.
data: plantdata like bapi_marc.
data: plantdatax like bapi_marcx.
data: return like bapiret2.
data: taxclassifications like bapi_mlan occurs 0 with header line.
data: commitmessages like bapi_matreturn2 occurs 0 with header line.
data: returnmessages like bapiret2 occurs 0 with header line.
data: materialdescription like bapi_makt occurs 0 with header line.
data: charx value 'X'.
* Kopfdaten
headdata-material = p_matnr.
headdata-matl_type = 'FERT'.
headdata-ind_sector = 'M'.
* Sichten die gepflegt werden sollen
headdata-basic_view = charx. "Sicht auf Grunddaten
headdata-sales_view = charx. "Sicht auf Vertriebsdaten
* Daten für die Sicht GRUNDDATEN 1
materialdescription-langu = sy-langu.
materialdescription-matl_desc = p_maktx.
append materialdescription.
* Mandantenspezifische Materialdaten
clientdata-base_uom = 'ST'.
clientdatax-base_uom = charx.
clientdata-trans_grp = '0001'.
clientdatax-trans_grp = charx.
* Materialdaten auf Werksebene
plantdata-plant = p_werks.
plantdatax-plant = p_werks.
plantdata-loadinggrp = '0001'.
plantdatax-loadinggrp = charx.
* Verkaufsdaten
salesdata-sales_org = p_vkorg.
salesdatax-sales_org = p_vkorg.
salesdata-distr_chan = p_vtweg.
salesdatax-distr_chan = p_vtweg.
* Steuerklassifikation
taxclassifications-depcountry = 'DE'.
taxclassifications-tax_type_1 = 'MWST'.
taxclassifications-taxclass_1 = '1'.
append taxclassifications.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
headdata = headdata
clientdata = clientdata
clientdatax = clientdatax
plantdata = plantdata
plantdatax = plantdatax
* FORECASTPARAMETERS =
* FORECASTPARAMETERSX =
* PLANNINGDATA =
* PLANNINGDATAX =
* STORAGELOCATIONDATA =
* STORAGELOCATIONDATAX =
* VALUATIONDATA =
* VALUATIONDATAX =
* WAREHOUSENUMBERDATA =
* WAREHOUSENUMBERDATAX =
salesdata = salesdata
salesdatax = salesdatax
* STORAGETYPEDATA =
* STORAGETYPEDATAX =
importing
return = return
tables
materialdescription = materialdescription
* UNITSOFMEASURE =
* UNITSOFMEASUREX =
* INTERNATIONALARTNOS =
* MATERIALLONGTEXT =
taxclassifications = taxclassifications
returnmessages = returnmessages
* PRTDATA =
* PRTDATAX =
* EXTENSIONIN =
* EXTENSIONINX =
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = charx
importing
return = commitmessages.
* commit work and wait.
* Für den Fall das es notwendig wird die Exclusive Sperre wegräumen
CALL FUNCTION 'DEQUEUE_EMMARAE'
EXPORTING
matnr = p_matnr.
* if return-type ne 'S'.
format color col_negative.
loop at returnmessages.
write: / returnmessages-message.
endloop.
* endif.
loop at commitmessages.
write: / commitmessages-message.
endloop.
endform. " material_create
If useful reward.
Vasanth -
Linking Function Module to R/3 table in Crystal Reports
Hi Experts,
I am creating a report wherin I am linking a function module to a R/3 table. When I try to preview this report, I am getting "Failed to retrieve data from database" and then"Invalid Argument Provided".
If I exclude either FM or Table from report, both return data to the report.
It is Crystal Reports 2008
SAPGUI 720
CRDB OpenSQL dll is 12.3.0.601
Thank you
IMSHi all,
This issue is apparently fixed by applying FP3.1.
Will do so and update the post here.
Cheers
IMS -
How to modify standard or custom Interactive Reports
Hello everyone!
Is there a possibility to modify SAP standard Interactive Reports? Where can this be done?
Also if I create a new custom Interactive Report using Wizard in WebUI I don't find any transaction where I can modify it. Should I use some SAP GUI transaction to do this? Or even BEX Analyzer? Perhaps there is SAP Documentation about how to do it but I wasn't able to find it.
Many thanks in advance for any help! Kind regards,
SashaSasha
To do this, you need to be logged in with the ANALYTICSPRO business role (standard). Once you access the web UI you will have the option to Search reports. Doing this will show you both the standard reports and the ones modified by you. If you want to modify the SAP delivered reports, select the report, click the Copy button and then rename it etc. You then walk through the wizard and make the changes you need.
You can also modify the ones you created by clicking on Edit.
Once you have created your new reports, go to t-code ordywb, then make sure the Show Custom Reports checkbox is clicked. This will show you the identifier for your custom report - this is what you put against your logical link in the nav bar profile to enable the users to run the reports.
Hope this helps!
Lisa -
Function module to generate a unique number in report based on descrepency
hi friends,
i have a object that..
Every discrepancy Should Have a unique number in the report, which calls based on the discrepancy (dc_qty)-(recd_qty)=shortage
the shortage value will be always positive,n not <=0..
is there any function module which should generate a unque no
based on passing MBLNR..
or any other way...
Thanks n regards
harishuse following funtion module
call function 'NUMBER_GET_NEXT'
exporting
nr_range_nr = '01'
object = 'ZBDCMSC2N'
importing
number = file_no
exceptions
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
in This
Creat a number Range object(ZBDCMSC2N') using transction SNRO.
for any problem revert back.
regards
Rajesh -
Updating a new field in an Interactive Report
I created an Interactive Report based on a table. I recently had to add a new field to the table, I was able to make the IR report show the new field. However, when I go the form page to create a new record I get this error:
ORA-06550: line 1, column 89: PL/SQL: ORA-00904: "BUDGET_MONTHLY_AMOUNT": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
If I run the Update process, I do not get any errors but the record does not get updated.
By looking at the DML process' source, I don't see where (if at all) I need to make changes.
Has anybody else seen this? Any help is greatly appreciated.Hello Omar.
At this time you cannot retrospectively add a table based column to an IRR once you have created the IRR.
You will have to delete the IRR and recreate it i n order for your new column to appear.
It is for this reason that we typically construct report regions using the 'Classic' report format until the users have confirmed the content is correct. Then we convert it to an IRR.
Kind regards
Simon Gadd
Maybe you are looking for
-
Dear Sir we have created document type by one user and i want to restrict for other user for change in that document type with user specific eg. user 1 created document with doc type dev and save user 2 has creation authorisation of save doc t
-
Display Table on Several Pages
Hi Guru's, I have created a form wich contains a table (for example Faglflext), this table is very big and cannot to be displayed on only one page. But my problem is when I do a print preview when I run the form, the table is not fully displayed, on
-
No download options anywhere on any website
Today I noticed nothing gets downloaded while trying to listen a sound file (mp3, wav., etc.) when I choose Download, regardless if I choose "just once or always"? If I choose "complete action using Sound Player", the audio file will play BUT YOU CAN
-
Schoolboy error - poor DVD quality from movie created under iSight
I have mistakenly created a movie using 'iSight' settings when first opening the project Having now spend 10's of hours editing this piece of work, and burnt to DVD via iDVD, the resulting quality on DVD is horrible - lots of video separation.....whi
-
URGENT: strange rendering issue
Hi all, So I'm having the weirdest issue when I try to render out a graphic in Hi-res. I've already done it in low-res(draft settings) and it looked fine. But now in hi-res (best settings) I get the same issue every time: The rendered file suddenly