Function module converts sy-datum to date according to user settings in SAP
Hi experts,
I need such a function module which converts sy-datum to a date format
according to user settings in SAP.
Thanks,
Yogesh
Use these function modules.
CONVERSION_EXIT_PDATE_OUTPUT
CONVERT_DATE_TO_EXTERNAL
Please mark points if the solution was useful.
Regards,
Manoj
Similar Messages
-
Formatting a date according with user settings (user defaults)
Hi All,
I need to format a date I receive via JS in YYYYMMDD format according with user defaults <b>without</b> server side action (I know, this is not a good issue, but they want it).
My solution is to write a JS function (there are a lot of it on WWW) which accepts two strings and formats the first according to the second, something like:
userFormattedDate = formatDate('20060613','DD.MM.YYYY');
paying attention to generate 'DD.MM.YYYY' string on server side, according to user settings.
But if this isn't a weblog, where is the question? :-D
The question is: is there a JS function (in DatePicker or dateNavigator BSP) provided by standard libraries which serves similar functionality?
Does exist a JS public standard library?
Thanks.
DanyHi Durairaj,
Tags <% %> are for server side actions.
The question is about obtaining the same effect, but client side.
Thanks.
Dany -
Function Module for getting the desired date
Hi All,
I need a function module where in get the date value from Current date - 540 days.
i,e System Date - 540 days = ????
Thanks
Sureshprevious FM works good , this is for ur info , to give in month, date and year instead of onlly days
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = sy-datum
months = '00'
days = '07'
years = '00'
signum = '-'
IMPORTING
calc_date = w_due_date.
Message was edited by: chandrasekhar jagarlamudi
Message was edited by: chandrasekhar jagarlamudi -
Function Module to change the master data attachments?
Dear Experts,
In SAP we can enclose the attachments for the Master data. Do we have any standard function module to change the Master data attachments.
Let me know if any?
Thanks and regards,
ReddyHi Reddy,
Please make use of function module :
BINARY_RELATION_CREATE_COMMIT
For detailed information on how to use the FM please see the thread below:
USE OF THIS fUNCTION MODULE
Regards,
Dilek A. -
How to make this function module as RFC to get data from different system?
Hi
I am trying to use following function module . This function module is used to copy data from one cube to another cube within same system however I need a this should happen across two different system. How can I use this function module to make it remote call to different system and do the same function what it is doing ?
Name of function module -
RSDRT_INFOCUBE_DATA_COPY
Any help would be really helpful
AGHI,
let us say you want to copy the data of a cube in system A to a cube in system B .
1) create a RFC function module in system B (in this function module call the function module RSDRI_CUBE_WRITE_PACKAGE to update the data), this RFC function module should have same parametersa as RSDRI_CUBE_WRITE_PACKAGE .
2) write a program in system A .. read the data from the infocube using the function module RSDRI_INFOPROV_READ and call the RFC function module in system B that you have created..
for the details of the parameters to pass to these two function modules use the RSDRT_INFOCUBE_DATA_COPY and get the required code
Thanks
mahesh -
Function Module to read EDIDC table data.
Dear All,
I am retrieving data from EDIDC table depending upon the creation date and message type. But it is consuming a lot time and hence while going for more than one month data , it gives run time error.
I found while going through debugger that maximum time is consumed by the SELECT query in retrieving the EDIDC data.
Is there any Function Module for retrieving EDIDC table data.
If so kindly let me know.How can a fm replace this performance issue ? You have only two fields to be passed such as creation date and message type.
For the table EDIDC there is a secondary index 3 for message type. Did you use that ? What is your query written ?
If you look into the standard report RSEIDOC2, the field for creation date used is UPDDAT. It implies usage of secondary index 2
Refer line no 114
Regards
Kesav -
Functional module for Getting Material classification data.
Please tell me Functional module for Getting Material classification data like class type , class, characteristics and characteristics values for material.
Dear,
FM:
CLAF_CLASSIFICATION_OF_OBJECTS
Table KLAH Class Header Data
- KSML Characteristics of a Class
Regards,
R.Brahmankar -
Function Module/Document to change Reversal date for FI document.
Can anyone please provide me with the Function Module/Document to change Reversal date for FI document.
Hi Vikram,
Normally, you post a reversing document in the same period you posted the original document. The period of the original document must be open to post a reversing document. If the period is not open, you can overwrite the posting date field with a date in an open period, such as the current period.
Regards,
Manoj. -
Can generic function module extractions possible with CRM data sources.
Hi Friends,
can generic function module extractions possible with CRM data sources.
90% extractions are generic function module extractions.
How is it possible without BW adapters..
It's very urgent ...Please.
Thanks,
Basava RajuHi Madhu,
Just curious ... if you already have a generic FM extractor then just go into it and find out where it is reading the data from. If its reading data from the CRM system then thre is no need for any BW adapter ... just in case you need any ABAP help ... post here ... I may be of use to you.
Best regards,
Kazmi -
Function module to create Inspection setup data
Hi all,
Please tell me a function module to create inspection setup data(The tab found in MM01).
Thank you.HI Sanu,
Check with
QIBP_INSPPOINT_CREATEFROMDATA
QPLEXT_INSPECTION_LOT_CREATE
QPLEXT_INSP_CREATE_REQ_CONF
for more info search wiht QINSPCREATE* in the SE37.
hope it helps you.
Thanks! -
Hiding a column in ALV GRID function module if it doesnt have data
Hi ,
I am using alv grid function module, in output i dont want to display the fields which dont have datawe dont know which column has no data..... we have to do it dynamically
This code does that dynamically, Here the field2 & Fiels4 are not displayed.
TYPE-POOLS:slis,abap.
TYPES:BEGIN OF ty_stru,
field1 TYPE c,field2 TYPE c,field3 TYPE c,field4 TYPE c,
END OF ty_stru.
DATA:itab TYPE TABLE OF ty_stru,
wa_stru TYPE ty_stru,
lv_repid TYPE sy-repid,
wa_fieldcat TYPE slis_fieldcat_alv,
it_fieldcat TYPE TABLE OF slis_fieldcat_alv,
it_details TYPE abap_compdescr_tab,
wa_components TYPE abap_compdescr,
lf_ref_descr TYPE REF TO cl_abap_structdescr,
lv_field TYPE abap_compname.
FIELD-SYMBOLS:<fs> TYPE ANY,
<fs1> TYPE ANY.
lf_ref_descr ?= cl_abap_typedescr=>describe_by_data( wa_stru ).
it_details[] = lf_ref_descr->components[].
wa_stru-field1 = 'A'.wa_stru-field3 = 'C'.APPEND wa_stru TO itab.
wa_stru-field1 = 'X'.wa_stru-field3 = 'Y'.APPEND wa_stru TO itab.
IF NOT itab[] IS INITIAL.
LOOP AT it_details INTO wa_components.
ASSIGN wa_components-name TO <fs>.
CHECK sy-subrc = 0.
SORT itab BY (<fs>) DESCENDING.
CONCATENATE 'WA_STRU' '-' <fs> INTO lv_field .
ASSIGN (lv_field) TO <fs1>.
CHECK sy-subrc = 0.
READ TABLE itab INTO wa_stru INDEX 1 TRANSPORTING (<fs>).
IF sy-subrc = 0 AND ( NOT <fs1> IS INITIAL ).
wa_fieldcat-fieldname = wa_components-name.
wa_fieldcat-seltext_m = wa_components-name.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ENDIF.
ENDLOOP.
lv_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = lv_repid
it_fieldcat = it_fieldcat[]
TABLES
t_outtab = itab[].
ENDIF. -
Save_text Function module is not update the data in the notification, Help!
Here is the code snippet, does anybody know why? Thanks!
form update_root_causes
tables p_it_root_causes type zqmtxt_t
using notif_no.
data:
ls_header type thead,
lit_lines type standard table of tline,
lwa_line like line of lit_lines,
lv_index type i value 0.
field-symbols:
<fs> like line of p_it_root_causes.
fill the header
ls_header-tdobject = 'QMEL'.
ls_header-tdname = notif_no.
ls_header-tdid = 'LTXT'.
ls_header-tdspras = sy-langu.
fill the lines table
fill from line #2 ...
lv_index = 0.
loop at p_it_root_causes assigning <fs>.
if lv_index gt 0.
lwa_line-tdformat = '*'.
lwa_line-tdline = <fs>-qmtxt.
append lwa_line to lit_lines.
endif.
lv_index = lv_index + 1.
endloop.
update the save_text
call function 'SAVE_TEXT'
exporting
header = ls_header
insert = 'x'
tables
lines = lit_lines.
call function 'COMMIT_TEXT'
exporting
object = ls_header-tdobject
name = ls_header-tdname
id = ls_header-tdid
language = ls_header-tdspras.
endform. " UPDATE_ROOT_CAUSESHi Anthony,
Two things you can check:
1. Ensure the notification number you are passing is valid, i.e. it has the requisite number of leading 0s (apply CONVERSION_EXIT_ALPHA_INPUT to ensure to the field notif_no before passing it to ls_header)
2. In the function module to SAVE_TEXT - INSERT should be 'X' not 'x'
Please check.
Adi -
Function Module for Creation of classification data for a Routing
Hi
Can you please let me know if there are any function modules/Bapi's to create Classification data for a Routing?
THanks
ShekarFor creating classification data, have a look at the function group CTMS and function module CTMS_DDB_SET_VALUE_INTERNAL.
Not sure what you mean by "Routing".
For BAPIs also look into the function group CLBPA, that sits in the same development package CLCL as the function group CTMS.
Hope this helps. -
Is there a Function module to get customer hierarchy data?
Howdy,
I'm writing a report where the user can, on the selection screen, enter a customer number or a hierarchy node and then the program has to get all the higher level nodes and and lower level nodes for the selected Sales area.
eg. for the following hierarchy:
A
->B
--|-> D
--|-> E
-> C
---|-> F
---|-> G
if node b was selected it would pull back:
KUNNR HKUNNR
A blank
B A
C A
D B
E B
F C
G C
Anyone know if there is a Function module that can do this?
ThanksHi Victoria,
even i was using the same FM "RSNDI_SHIE_STRUCTURE_GET3"
my code goes like this...
i am passing hierarchy name and node name...this is for cost element hierarchy.
please check the code and tell if i am missing anything.
o/p i am getting is all 0's.
report ztest5.
tables : ZREPCODMAP.
data: itab type standard table of ZREPCODMAP with header line.
TYPES: BEGIN OF STRUC,
RESULT type RSSH_S_NODEBYNAMEWOL,
ZREPCODMAP-REPDSELM,
END OF STRUC.
DATA: itab1 type standard table of struc with header line.
data: w_hiesel like RSNDI_S_HIESEL.
w_hiesel = '1000KES'.
*data: w_nodebyname type RSNDI_T_NODENM.
data: tab type standard table of RSNDI_S_HTAB with header line.
data: lsubrc type SY-SUBRC.
select * from ZREPCODMAP into table itab where PROFIT_CTR <> ' '.
loop at itab.
concatenate itab-CO_AREA itab-REPDSELM INTO itab1-RESULT.
*write: itab1.
break-point.
CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_GET3'
EXPORTING
I_S_HIEKEY =
i_s_hiesel = w_hiesel
i_s_subtreesel = itab1-result
I_T_NODENAME =
I_NO_NODENM_TABLE = w_flag
IMPORTING
E_S_HIEDIR =
e_subrc = lsubrc
TABLES
E_T_HIEDIRT =
e_t_hierstruc = tab.
E_T_MHIERNODE =
E_T_THIERNODE =
E_T_HIERINTVL =
E_T_NODENAMES = tab.
E_T_NODEATTR =
E_T_LEVEL =
E_T_MESSAGE =
write: tab.
*write: lsubrc.
endloop.
Thanks & Regards,
Vijaya -
Function Module to send Vendor Master Data from SRM to ECC
Hi Guys
I heard there is a function module in SRM which can send Vendor Master Data from SRM to ECC please confirm for me if there is such a function Module and what is it called. ThanksHi,
Vendor Master data is replicated to SRM from ECC. Standard Transactions (BBPGETVD,..) will be used to replicate the data from ECC.
Vendor Master will exists in ECC, so there is no point in sending the same back from SRM to ECC. If the requirement is the other way around, we can use the transaction BBPGETVD in SRM system.
Hope this helps.
Regards,
Hemanth
Maybe you are looking for
-
I have a project that has 3 different songs playing in the background. All 3 play at different levels/volumes. How can I adjust them to all play at equal levels?
-
hello, i just want to ask, if a certain string converted into a hash code can be retrieve/turn back to it's original form? ex. String n = "alice"; ---> int value = n.hashCode(); can "value" return to "n" as (alice)? can they provide example code in o
-
Error in configuring SOA from jdev 11g TP4
i get an error while configuring SOA from jdev 11g, error is in Test DB setting in first step. These are the details DB Connection String : localhost:1521:XE DB User Name: adrs_soainfra DB Password: welcome1 error is "There was a problem in establish
-
How do I get rid of "Consumer group survey"?
I have some sort of bug that highlights words on an internet page like a hyperlink, when you hover the mouse over them it is some coupon that takes you to some survey and prize competition. I have cleared my history, but I don't know how to clear the
-
Rolling multiple BW instances into 1
G'day! We're a global company. We have one BW instance for each region, unfortunately, each region has their own business processes, their own master data. The same goes with R3 box. I'm wondering if anybody from here has done a project where they