Need a Function Module for fetching the prior date-Urgent!!
Hi All,
I need a function module which will give the prior date with respect to the no: of days days that are entered as input.
Can anyone please help me to fing one function module which acts as the above.
Required very urgently!!!
Thanks and Regards,
Neethu
Hi Neethu,
Please run the report 'ZRECTIFY_FM_DOCUMENTS' in your system.
Before running the report, create the following selection texts for the parameters/select-options as given below:
P_BUKRS: Company code
S_GJAHR: Fiscal year
S_BELNR: FI document no.
P_TEST: Test run
For More information please refer <b>SAP Note: 309619</b>
Best Regards,
Johnny.
Similar Messages
-
Need a function module for fetching description of fields in a table
Hi experts,
I have a requirement where i need to fetch the descriptions of all the fields of a given database table.
I am looking for a function module that gives the descriptions of a field. Please suggest a way.
Points will be rewarded.
Thanks in advance.Use FM DDIF_FIELDINFO_GET to get information about a field. Pass table name and Fieldname.
Use FM DDIF_FIELDLABEL_GET if you need only the field label.
Use FM DDIF_TABL_GET for getting information of all fields of a particular table.
Regards,
Lakshmi.
Edited by: Santhanalakshmi V on Jun 11, 2008 5:26 PM -
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 -
I need a function module for covert TRIP START DATE to TRIP FISCAL YEAR
Actually my req is
TRIP START DATE (z object) is coming from TRIP MASTER DATA TABLE.
based on TRIP START DATE I have to update the fields like
1.TRIP FISCAL YEAR,
2.TRIP CALENDER YEAR,
3.TRIP FISCAL YEAR PERIOD
4.CALENDER MONTH
in the cube.
my FISCAL YEAR START from JULY 1st to JUNE 30th.
i need a code for update rules.
please help me out. its very urgent.
Thanks in Adv.Hi Satya,
Check these FM.
GM_GET_FISCAL_YEAR
'FTI_FISCAL_YEAR_MONTH_GET'
DATE_GET_WEEK
MC_PERIO_CONVERT_TO_WEEK_MONTH
UMC_FISCPER_TO_CALQUARTER
GET_CURRENT_YEAR
'GET_CURRENT_YEAR' or FM 'FTI_FISCAL_YEAR_MONTH_GET'
You can use GET_CURRENT_YEAR to find the Fiscal year of the entered date.
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
Enter the date you need in the place of sy-datum.
FTI_FISCAL_YEAR_MONTH_GET Returns fiscal year for specific date
Kindly reward points by clicking the star on the left of reply,if it helps.
Regards,
Vijay. -
Reg: function module to fetch the overall taxs for a sales order
Hi Experts,
I need a fuction module which fetches all the taxes for a sales order with the tax values.
(i.e) i need a function module with displays the overall tax values and not line itemwise..
Regards,
Vikram.SHi,
Check if it works
POS_SALES_DOCUMENT_HEAD_TAXES -
Creation of function module for updating the ztable
Hi,
I am sending the requirement for ceation of function module for updating the ztable.
Requirement----
Table Updation rule (New record)
While creating a new record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO-------> Sales Delivery no in case of sales orderShipment no in case of transfer order
UNAME----
> User ID
ZORDTYPE----
> SALEOR in case of sales orderTRANSF in case of transfer order
ZREFDOCNO----
>Sales Order no in case of sales orderPurchase Order no in case of transfer order
ZREFDOCNO1----
>Delivery no in case of transfer order
The table handling function will calculate the following fields
Table field Probable Values
ZREQNO----
>Running serial number (incremented by 1 for each new record)
ZREQDAT -
>System date
ZREQTIME----
> System time
ZSTATUS----
>OPEN (for all new records)
Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
Table Updation rule (Status Update)
While updating a record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO----
>Sales order no in case of sales orderShipment no in case of transfer order
ZSTATUS----
>CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
The table handling function will calculate the following fields
Table field Probable Values
ZSTATDAT----
>System date
ZSTATTIME----
> System timeDo you have to create/update new record in Ztable through Function Module ?
or you need to write FM only for validation?
Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
Let me know clearly what exactly u need ?
Regards,
Kiran -
Function module for converting the foreign currency to words
hi,
can anybody tell me about the function module for converting the foreign currency to words format.
Like 25.50 USD
should be "Twenty Five Dollar & Fifty Sents."
foreign currency can be anyone like USD, JPY, EUR etc.
Regards
Nitin VarshneyHi,
Try using the FM SPELL_AMOUNT
Check this wiki
[SPELL_AMOUNT|https://wiki.sdn.sap.com/wiki/display/Snippets/SpelltheAmountenteredin+words]
Regards
Sarves -
Function module for displaying the location
Hi,
Could anyone tell the Function module for displaying the location in our system without a file name while downloading, when the user press f4.
thanks* read the default pathname on application server
call function 'FILE_GET_NAME'
exporting
* CLIENT = SY-MANDT
logical_filename = lc_logical_filename_ftappl
operating_system = sy-opsys
* parameter_1 = ' '
* PARAMETER_2 = ' '
* USE_PRESENTATION_SERVER = ' '
* WITH_FILE_EXTENSION = ' '
* USE_BUFFER = ' '
importing
emergency_flag = l_emergency_flag
file_format = l_file_format
file_name = l_file_name_ftappl
exceptions
file_not_found = 1
others = 2. -
Standard function module for checking the sales organization and plant
Hi all,
Does have standard function module for checking the relationship between sales organization and plant?
Thanks a lot!
Ninahi
good
check these BAPIS
BAPI_SALESGROUP_GET_DETAIL Sales Group: Display Name
BAPI_SALESOFFICE_GET_DETAIL Sales Office: Display Name
BAPI_SALESOFFICE_GRP_EXIST Sales Office / Sales Group: Existence Check
BAPI_SALESORG_EXIST Sales Organization: Existence Check
BAPI_SALESORG_GET_DETAIL Sales Organization: Display Data
BAPI_SALESORG_OFFICE_EXIST Sales Organization / Sales Office: Existence Check
PLANT=>
BAPI_PROMO_GETSITEPLANNING Detailed Data for the Plants Involved in a Promotion
thanks
mrutyun^ -
Function Module for Posting the Delivery Doument
Dear Experts,
Could you please send me the Function Module for Posting the Delivery Doument.
Thanks & Regards,
Ashok.Hi,
What do you mean by POSTING the delivery document?
Are you mentioning the creation of Goods Issue? -
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. -
Function Module for calculating hours between dates and their times.
Hi all,
Is there any standard function module for calculating the time difference in hours between two dates with start and end times.
Regards,
Sudipto.Sudipto,
How're you ????????????????????
Check out the following Function Module:
SD_DATETIME_DIFFERENCE (Give the difference in Days and Time for 2 dates)
Regards,
Abir
Don't forget to award Points * -
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 -
Need a Function Module for Week Calculation
Dear Experts,
I want a function module which calculate the week number.
Suppose for date 04.05.2010
week is 19...........
i want to fetch through function module.
i have already tried function module like GET_WEEK_INFO_BASED_ON_DATE & DATE_GET_WEEK
throgh both function module output is come out is 18.
but i need 19.
when i pass 02.01.2010
then it giving 53 week of 2009.
plz. help me as soon as possible.
Thanks,Jan 2 2010 was indeed 53rd week of 2009, so SAP FMs are returning right value. I would strongly recommend to consult your functional consultant before assuming Jan1 2010 as week 1 of 2010.
[quote from wikipedia|http://en.wikipedia.org/wiki/ISO_8601#Week_dates]
'If 1 January is on a Monday, Tuesday, Wednesday or Thursday, it is in week 01. If 1 January is on a Friday, Saturday or Sunday, it is in week 52 or 53 of the previous year (there is no week 00). 28 December is always in the last week of its year.'
Regards,
Pawan.
Edited by: Pawan Kesari on May 4, 2010 4:56 PM -
Function Module for getting the Sales Price for a condition type
Hi,
I am looking for a standard function module to which I can pass my condition type(new customizing) and it will return the sales price. The customer is going to create some new condition type to manitain the sales price. I'll have the necessary information like material/sales org/distribution channel, customer and need the standard function module to read the condition records for that condition type(as configured) and give me the price. PLease help if you know of a standard function module performing this.
Thanks in advance.
Regards
MalthiHi malthi ,
welcome to sdn
for material sales area u can look for the validations is table MVKE.
the classification of the conditions is in tables like A901, a902 etc which in my opinion holds the condition types per classification .
put a A* in se11 and this will give the list of tables per classification .
u need to get the conditions as per kschl and dmbtr and
etc..
like this ..
Get Condition Values for Material/Plant combination
IF NOT i_a916[] IS INITIAL.
SELECT knumh kappl kschl krech
kbetr konwa kpein kmein
INTO TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a916
WHERE knumh EQ i_a916-knumh AND
kappl EQ i_a916-kappl AND
kschl EQ i_a916-kschl AND
loevm_ko NE 'X'.
ENDIF.
Get Condition Values for Material/Plant/Ordertype/
Customer combination
IF NOT i_a925[] IS INITIAL.
SELECT knumh kappl kschl krech
kbetr konwa kpein kmein
APPENDING TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a925
WHERE knumh EQ i_a925-knumh AND
kappl EQ i_a925-kappl AND
kschl EQ i_a925-kschl AND
loevm_ko NE 'X'.
ENDIF.
just check this Fm if u can apply ur condition over here ..
ME_GET_PRICE_CONDITION
regards,
VIjay.
Maybe you are looking for
-
How to make entire node attribute elements as read-only ?
Hi Experts, I have an requirement to make all fields of an form view (based on one context node) in UI to be shown in Display mode. Any idea on how to acheive that ? I know get_i_xxxx method. But, they should be coded for each attribute seperately. A
-
Merging Report and Form's portlet
I made the Form and corresponding Report. I tried to insert in the Form's "After displaying the page", code: begin portal30.wwv_component_control.run_as_portlet (p_module_id=>2280059543); end; It works, Form passes the parameter and report is display
-
Manager Desktop - No objects found
Hello, I am actually trying to implement the manager desktop in my client but it is not working. When I enter in the transaction "PPMDT" and select Personal Data I was expected to see the direct subordinate employees, and the directly reporting emplo
-
How to voiceover in Premiere Pro CC?
I was able to in CS5, but how do you do voiceover in CC? I did the same thing as in CC and there's no "Enable track for recording" button. Please help me.
-
OracleOraHome92Agent - OIA & Oracle HTTP Server - Apache JServ Cant Startup
Recently i have 2 oracle 9i database server {A} & , and my task is to migrate all the data from {A} To {B}. I used [Orcale Management Server - OMS] to login for connect both server for data manipulation. However, when i used [Discover Nodes] in the [