Reg Funcion module
Is there any function module to display the date but if the date falls on the weekend then it should display the next available weekday.?
Reply me ASAP.
Regards,
Shobana.
Hi,
Use the Function module <b>HOLIDAY_CHECK_AND_GET_INFO</b> Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the date is a holiday by checking the parameter HOLIDAY_FOUND.
data: ld_date like scal-datum default sy-datum,
lc_holiday_cal_id like scal-hcalid default 'CA',
ltab_holiday_attributes like thol occurs 0 with header line,
lc_holiday_found like scal-indicator.
CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
EXPORTING
date = ld_date
holiday_calendar_id = lc_holiday_cal_id
WITH_HOLIDAY_ATTRIBUTES = 'X'
IMPORTING
HOLIDAY_FOUND = lc_holiday_found
tables
holiday_attributes = ltab_holiday_attributes
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
HOLIDAY_CALENDAR_ID_MISSING = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
OTHERS = 7.
if sy-subrc = 0 and
lc_holiday_found = 'X'.
write: / ld_date, 'is a holiday'.
else.
write: / ld_date, 'is not a holiday, or there was an error calling the function'.
endif.
Regards
Sudheer
Similar Messages
-
ERROR while uploading data from EXCEl to sap using ALSM_EXCEL FUNCION MODULE
Hi Experts,
I am uploading excel data into sap suing function module ALSM_EXCEl_TO_INTERNAL_TABLE , used this funcion module in the program while running the program one blank excel sheet is opening and data is not uploading into internal table . even same blank sheet is opeining if we user
CONVERT_EXCEL_TO_INTERNAL function module also.
can you please tell me why this error is coming how to over come this error.
My excel sheet data records are less then 10000.
Thanks & regards
kiranHi Taranam,
Use FM ALSM_EXCEL_TO_INTERNAL_TABLE.
Regards,
Atish -
How to create bapi funcion module
Hi,
I am getting an error while activating bapi funcion module that "REPORT/PROGRAM statement missing, or program type is i(INCLUDE)".
Can any body resolve this error.Hi Jyoti,
Have you checked this??
http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm -
K7D Master does not recognize 1GB Reg ECC modules
I have an older K7D Master (2 CPU) which runs fine with 256 MB and/or 512 MB modules (all Kingston REG Ecc). The board also runs fine with 2 x 512 MB non ECC.
But when I use Kingston 1GB modules Reg ECC (KVR266X72RC25/1024) I get an error:
"AWARD Bootblock BIOS V1.0
BIOS ROM Checksum Error
INSERT System Disk ....
The modules don't work when only one is installed, nor when both of them installed, nor in any combination with de 256/512 MB modules.
I already use BIOS v1.91, I cleaned CMOS, installed another PSU (500W). All to no avail.
Doesn't the K7D master support the 1 GB modules? Or do I need other modules (brand/specs)? ???
Thanx.How many modules are you talking about? If you try to use 4 of them, I can imagine it won't work.
Also, are they trouble free?
Try Memtest86 on each of the sticks.
I see this on the MSI product page:
Quote
• Supports eight memory banks using four184-pin DDR DIMM
• Supports DDR SDRAM DIMM
• Supports a maximum memory size of 4GB (registered DDR only)
Note: Because of limitations imposed by the personal computer architecture and BIOS, the user-accessible memory is less than 4 Gbytes even if 4 Gbytes of physical memory is installed. -
Reg Adapter Module in SAP PI 7.11
Hi,
I am trying to develop an Adapter Module using SAP NWDS and I am referring http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?quicklink=index&overridelayout=true for the same.
Now I am stuck on page 11 (page 16 of the pdf).
Does the value of Remote interface have to be strictly com.sap.aii.af.lib.mp.module.ModuleRemote (similarly for other parameters)?
Are these values dependent on the Default EJB Package that we use (mentioned on page10). Because the name of my package is com.companyname.adaptermodule and is as per the naming convention that we follow.
Thank you,
Pankaj.Hi,
Ok. Actually I thought that the names are dependent on the default EJB package-name that we specify in previous step; but now these two do not seem to be related to each other (name-wise)
The question seems to be answered for now. Thanks to Stefan.
Thank you,
Pankaj. -
Reg: Oracle Module to custom module movement
Hello Team,
Could you please understand the below requirement and give us some ideas on it.
We have one module which is registered with Oracle where it has Oracle forms and reports. Now, we have license problems with them and planning to create it as a custom module objects.
I am sure, my explanation won't help you to understand better. We have one customized module with oracle, which needs to be independent now.
Any idea/any suggestions are most welcome.
Thanks/SureshHi Suresh,
Pl.visit following links which surely help to register your custom module/application to oracle.
http://onlineappsdba.blogspot.in/2007/10/creating-custom-application-in-oracle.html
http://beginapps.blogspot.in/2007/09/oracle-application-server-10g.html
HTH
Sanjay -
Reg DAQ module: Very Urgent
Hi,
I would like to ask some queries related to the NI products.
We are going to design one system to measure the movements of throat and abdomen using 3-axis accelerometer. For that, we have 3 ideas to design the same. Out of these, we preferred the NI LabVIEW.
The following parameters to be considered:
To measure the analog signals with the help of 3-axis accelerometer(sensor)
From the o/p of sensor, we will convert the analog signals to acceleration.
After the above, we are going process the above said requirement.
For this, a separate DAQ module is available. I would be very much grateful if you tell me the cost of the module.
Regards,
Madhusudhanan
N. Madhusudhananduplicate post
Posting the exact same question in multiple places is irritating. -
Hi All,
When i execute the function module SAPWL_GET_SUMMARY_STATISTIC in CRM ABAP 6.0 passing the values below,
PERIODTYPE
HOSTID
STARTDATE
it's not showing any values in the summary.
it's showing the exporting parameters as,
RFC_ERROR_TYPE L
SUMMARY_AVAILABLE N
HITLISTS_N_PROFILES_AVAILABLE A
if this function module will not work means kindly provide me the solution for calculating
Average Response Time as in tcode st03 - Instance - total - Workload Overview.
Average CPU Time and some more fileds.
Regards,
SureshHi
I used the FM mentioned and found the details as below:
VKORG
TABNAME TVKO
FIELDNAME VKORG
LANGU EN
POSITION 0001
OFFSET 000006
DOMNAME VKORG
ROLLNAME VKORG
CHECKTABLE
VTEXT
TABNAME TVKOT
FIELDNAME VTEXT
LANGU EN
POSITION 0002
OFFSET 000014
DOMNAME TEXT20
ROLLNAME VTXTK
CHECKTABLE
LENG 000020
Shiva -
Reg: Function Module thats used to check the status of JOBS and mail it
Hi Experts,
Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
Please help me,Hello Nagaraj,
You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
ABORTED TYPE C,
FINISHED TYPE C,
PRELIMINARY TYPE C,
READY TYPE C,
RUNNING TYPE C,
SCHEDULED TYPE C.
Following is the link for the same:
http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
Warm Regards,
Riki Dash -
I know of one function module BAPISDORDER_GETDETAILEDLIST which give batch numbers related to all items in a particular sales order. we can give sales order no as input and get batches.
But I want a function module which returns sales ordrer no and item no corresponding to a batch number when this is given as input.
Please let me know if there's any such module.
thanks in advance.
regards
jawaharHi,
Please check these FM.
ME_MAINTAIN_SOURCE_LIST
ME_POST_SOURCE_LIST
ME_GENERATE_SOURCE_LIST
Regards
Kiran Sure -
Reg function module POSTING_INTERFACE_CLEARING
Dear experts,
I have a requirement in tcode FB05(Posting with clearing: Initial screen). In that i need to select the radio button 'Transfer Posting with Clearing'. I dont know exactly what happens here. I have to use function module POSTING_INTERFACE_CLEARING to post and clear the document. Can anybody tell me what this function module will do and by guiding me in this regard. Kindly help me in giving sample code as to how to handle this.
thks in advance,
ramHello Ram
Have a look at thread [POSTING_INTERFACE_CLEARING|POSTING_INTERFACE_CLEARING; and the links provided there.
You may also want to have a look at transaction FCC1 (Payment Cards: Settlement). The report RFCCSSTT is used to settle open items payed with credit cards:
... FB05
PERFORM posting_interface_start.
PERFORM fb05_posting.
PERFORM posting_interface_end.
... and Settlement
Regards
Uwe -
How to call a private attribute from a funcion module?
Guys,
I am trying to call a private attribute but of course it does not recognize the attribute. I am not very familiar with ABAP Objects, so i need some help on this. What is the solution as i need to get values from the fields which are inside the private attribute of the class CL_HRPA_INFOTYPE_CONTAINER. The private attribute name is a_primary_record.
Any help will be appreciated.
Thanks
NahmanHi Sushanth,
We save the text not as fields in a ztable directly but as a text.Please check the format below since it is based on a working code....
first you need to create a text in s010 transaction...
there should be some key based on which you plan to save the text..imagine it is Purchase order then..PO+item numner is always unique.eg:0090010(900PO/item10).so in the code you can append these two and they will be unique..so you can always retrieve them,overwrite,save them anytime you need
**************data declarations
TYPES: BEGIN OF TY_EDITOR,
EDIT(254) TYPE C,
END OF TY_EDITOR.
data: int_line type table of tline with header line.
data: gw_thead like thead.
data: int_table type standard table of ty_editor.
****************fill header..from SO10 t-code..when you save you need the unique key..youfill it here and pass it in save_text function module
GW_THEAD-TDNAME = loc_nam. " unique key for the text -> our unique key to identify the text
GW_THEAD-TDID = 'ST'. " Text ID from SO10
GW_THEAD-TDSPRAS = SY-LANGU. "current language
GW_THEAD-TDOBJECT = 'ZXXX'. "name of the text object created in SO10
*To Read from Container and get data to int_table
CALL METHOD EDITOR ->GET_TEXT_AS_R3TABLE
IMPORTING
TABLE = int_table
EXCEPTIONS
ERROR_DP = 1
ERROR_CNTL_CALL_METHOD = 2
ERROR_DP_CREATE = 3
POTENTIAL_DATA_LOSS = 4
others = 5.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop data from int_table and save to int_line-tdline appending it.
*save the text
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
HEADER = GW_THEAD
TABLES
LINES = InT_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
IF SY-SUBRC 0.
ENDIF.
*To pass to Container
CALL METHOD EDITOR ->SET_TEXT
hope that the above sample with helps you solve the problem
Please check and revert,
Reward if helpful
Regards
Byju -
Need the name of the funcion module for master data planning
Hi all,
i need to know the name of the function module to call in a planning function in order to do a master data planning.
thanks a lot!Hello Giancarlo,
You cannot do master data planning in BPS. Master data has to be maintained separately in the BW system.
Cheers
Aneesh -
Hi All,
I have file to idoc scenario where I need to use adapter module on the sender side. Can any one please s-e-n-d me links for the adapter module documents since I need to learn it from scratch.
Thanks,
Siva.hi,
Check this link
Webinars
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
Re: Developing a module for the sender file/FTP adapter
Regards,
Syed.
Edited by: syed umar on Nov 21, 2008 6:43 AM -
Hi All,
I am creating a function module to update data into a customized table. In that funciton module, i want to handle exception. But i dont know how to proceed with that.
Can you please any one help me out in this regard.
POINTS PROMISED.
Regards,
BuvanaHi,
After calling function module write.
if sy-subrc <> 0
RAISE EXCEPTION.
endif.
Reward if helpful.
Regards,
Umasankar.
Maybe you are looking for
-
Can't load photos into iCloud photo stream for sharing (from iMac)
In iPhoto, I select an event, hit "Share >> iCloud", then "add new stream", then get the dialog box, then enter a friend's email, then hit "share". then get message "xx photos were posted". But when I look at my iCloud there is only an empty data st
-
Outlook Connector User DN Pattern Syntax
Hi, Please let me know if I have posted this in the wrong place. We have recently setup Comm Suite 5 and are in the process of testing the Sun Java System Connector for Microsoft Outlook. We are trying to use the option in the Deployment Configurator
-
In iphoto '09, Ihave 2 or 3 copies of the same picture. Is there a way to merge them and delete the extra pictures?
-
Be aware that there is a Verizon wireless phishing scam . Victims get an E mail purported to be from Verizon. It is a bill. If you get this very official looking E mail, forward it to [email protected]
-
Hello, I have a large project in FrameMaker that must be reviewed. How to you have someone who does not have FrameMaker 8 installed on their workstation review your documents? Is Save As PDF for review the only way? Or is it easier for the reviewer t