Function module to get posting date from posting year and posting period
Hi all,
I need a function module which will return posting date when posting period and fiscal year is passed to it..
Thanks and regards,
Puja.
Hi puja
try this FM
this will solve ur problem
G_POSTING_DATE_OF_PERIOD_GET
G_POSTING_DATE_OF_YEAR_GET
FCJ_CHECK_POSTING_DATE
Cheers
Snehi Chouhan
Similar Messages
-
Function module to get the dates from the year and the period
Is there a function Module to get the dates from the year and the period
Check with :
To get last day of period use .
LAST_DAY_IN_PERIOD_GET.
To get last of month Use :
RE_LAST_DAY_OF_MONTH
HRVE_LAST_DAY_OF_MONTH
LAST_DAY_OF_MONTHS
ISB_PREVIOUS_PERIOD_DATE_GET
Thanks
Seshu -
Function Module to get Last date of previous year
Is there any function module to get the Last date of the previous year. e.g, if i give date as 03/02/2009 the output should be 31/12/2008.
pls use below 2 FM's
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = -1
olddate = curent_date
IMPORTING
newdate = w_prevdate.
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
day_in = w_prevdate
IMPORTING
last_day_of_month = w_lastdayprevmonth
EXCEPTIONS
day_in_no_date = 1
OTHERS = 2. -
Function module to get order data from delivery
hi ,
is there any function module to which i can pass the delivery number and get the order number (s) and other data .
basically i want the order currency.
pls help.
<removed by moderator>
Edited by: Mike Pokraka on Aug 21, 2008 9:44 AMHi Surendra,
If your requirement is just to retreive the Order number for a given delivery then you can go with following:
Just go to LIPS table, there you can get the Order Number and ITEM from VGBEL and VGPOS fields for given Delivery Number VBELN.
You can also do the same by using VBFA table.
Also have a look to the following thread:
Re: Getting sales order number against Delivery Number
Hope this will help.
Regards,
Nitin. -
Is there any function module to get the data from st06?
Hi,
I'm new to this forum.
I would like to know if there is a way (maybe some function modules) to collect information like system architecture, and databases as displayed in transaction st06?
I would like to call it from external program in order to view part of the data available in st06.
Thanks,
Erez Gordon.have a look at function group SMON.
Not sure if these are remote enabled, otherwise create a wrapper function module (RFC).
Edited by: Micky Oestreich on Dec 11, 2008 9:37 AM -
Fun. Module to get MSEG data based on EBELN and EBELP
I need to get records from MSEG by passing EBELN and EBELP.
I have written SELECT query.
I am getting the data, but it is taking much time in Production.
Is there any Function module to get MSEG data based on EBELN and EBELP.
ThanksHi ,
You can select from table EKBE based on purchase order number and Item number .
Please reward if useful. -
ABAP Function Module Example to move data from one Cube into Another
Hi experts,
Can any please help out in this ..?
A Simple ABAP Function Module Example to move data from one Cube into Another Cube
(How do i send the data from one client to another client using Function moduel).
Thanks
-Upen.
Moderator message: too vague, help not possible, please describe problems in all technical detail when posting again, BI related? ("cube"), also search for information before asking.
Edited by: Thomas Zloch on Oct 29, 2010 1:19 PMThis is the start routine to duplicate records in two currencies.
DATA: datew TYPE /bi0/oidateto,
datew2 TYPE rsgeneral-chavl,
fweek TYPE rsgeneral-chavl,
prodhier TYPE /bi0/oiprod_hier,
market TYPE /bic/oima_seg,
segment TYPE /bic/oizsegment.
DATA: BEGIN OF S_DATA_PACK OCCURS 0.
INCLUDE STRUCTURE /BIC/CS8ZSDREV.
DATA: END OF S_DATA_PACK.
S_DATA_PACK[] = DATA_PACKAGE[].
REFRESH DATA_PACKAGE.
LOOP AT S_DATA_PACK.
move-corresponding s_data_pack to DATA_PACKAGE.
if DATA_PACKAGE-loc_currcy = 'EUR'.
DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalgrc.
DATA_PACKAGE-CURRENCY = 'USD'.
APPEND DATA_PACKAGE.
DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalloc.
DATA_PACKAGE-CURRENCY = 'EUR'.
APPEND DATA_PACKAGE.
else.
DATA_PACKAGE-netval_inv = DATA_PACKAGE-/bic/zsdvalgrc.
DATA_PACKAGE-CURRENCY = 'USD'.
APPEND DATA_PACKAGE.
endif.
ENDLOOP.
This is to load Quantity field
RESULT = COMM_STRUCTURE-BILL_QTY.
This is to load Value field
RESULT = COMM_STRUCTURE-NETVAL_INV.
UNIT = COMM_STRUCTURE-currency. -
Function Module to get PO details based on Plant and PO date
Hi
1. Is there any Function Module to get PO details based on Plant and PO date?
2. Is there any Function Module to get Material document details based on PO number?
Thanks
Narendrahi,
check these standard reports.
ME2L - By vendor
ME2M - By material
MSRV3 - By service
ME2K - By account assignment
ME2C - By material group
ME2B - By tracking number
ME2N - By PO number
ME2W - By supplying plant
also chck this func module.
REPL_LIST_PURCHASE_ORDER_READ
reward if hlpful. -
Function module to get md04 data
I need function module to get below data of the material as per the mrp area.
Thanks,
KiranHello Kiran and Kumar
As I have explained in the following thread, BAPI_MATERIAL_STOCK_REQ_LIST should be used instead of MD_STOCK_REQUIREMENTS_LIST_API.
Material shortage report after mrp run.
BR
Caetano -
Function module to derive start and end dates from fiscal year and period.
Hi,
I want to know a function module to derive start and end dates from fiscal year and period.
ie: If I have say fiscal year '2010' and period '07', then the start date of this period would be '01.10.2010'.
Thanks.
Moderator Messge: Basic Date questions are not allowed.
Edited by: kishan P on Oct 18, 2010 4:45 PMHi,
This is one of my exit that display the calmonth (offset -12). Usefull when I have to retrieve in a KF a complete rolling year depending one calmonth.
S_VMUCMN is my selection variable
S_TXTCMN_M12 is my text variable calmonth-12
S_TXTCMN_M0 is my text variable for selected calmonth.
WHEN 'S_TXTCMN_M12'.
IF i_step = '2'.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'S_VMUCMN'.
CLEAR l_s_range.
" First day of the selected month
CONCATENATE loc_var_range-low '01' INTO l_calday.
CALL FUNCTION 'YFRBW_FUM_CAL_DATE_IN_INTERVAL'
EXPORTING
date = l_calday
months = 12
signum = '-'
IMPORTING
calc_date = l_calday.
l_s_range-low = l_calday+0(6).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF.
Thus, in KF header you have to put the two text variable to display the complete period.
Hope it helps, -
Function module to get the details from table COEP
hi all,
I have to select the data from COEP table based on OBJNR.i don't have any other key information.so i have to select the data based on OBJNR only.
can any one please tell me is there any function to get the data from this table.
Thanks.Hi
Try the fun module
K_CO_OBJECT_BALANCE_GET
see the sample select statement for COEP
clear cobrb_tab.
refresh cobrb_tab.
select objnr " Object No
rec_objnr1 " Ref Object No
bureg " Dostribution Rule
lfdnr " Sequence No
perbz " Settlement Rule
konty " Acct Assign Category
bukrs " Company Code
kostl " Cost Center
into table cobrb_tab
from cobrb
where kostl in rn_kostl.
sort cobrb_tab by objnr rec_objnr1.
delete adjacent duplicates from cobrb_tab comparing objnr.
Get the Settlement Costs from COEP Table
clear it_set_tab.
refresh it_set_tab.
if not cobrb_tab[] is initial.
select kokrs " Controlling Area
belnr " Acc Document
buzei " Line Item
perio " Period Block
wkgbtr " Value in CO Curr
lednr " Ledger No
objnr " Object No
gjahr " Fiscal Year
wrttp " Actuals
versn " Version
kstar " Cost Element
beknz " Dr/Cr Indicator
parob1 " Partner Object
into table it_set_tab
from coep
for all entries in cobrb_tab
where lednr = c_lednr and
wrttp = c_wrttp2 and
versn = c_versn and
gjahr = p_gjahr and
objnr = cobrb_tab-objnr and
parob1 = cobrb_tab-rec_objnr1 and
beknz in (c_o, c_a).
endif.
Reward points for useful Answers
Regards
Anji -
Receive POST data from another URL and process using Struts
Hi there
We have a website and as of now we are receiving some data from another URL which is received as an appended part of the URL. My application uses Struts and we process the received data and send back a response.
Now my question is, I have been asked to change this behavior because there are more parameters now which cannot be passed through the URL. I am supposed to get the data from the other URL as POST data (as a form) and I have to create a new Struts action to receive this data, process it and send the response back to the requesting URL.
Please explain me how to do this using some example code snippets.
Thanks a lotLookup in XI is used to call the target data storage system and get data from there to your mapping programme.
In XI you can do Lookup in Message Mapping, Java Mapping and in XSLT Mapping. Previously Lookup in XI was system dependent. But now what ever the system are i.e. SAP system or non-sap system(Oracle,MS SQL etc) lookup API are same.
Overview of Lookup
- Lookups are used to identify/request the data from mapping program.
- It interrupt the process and looking for data which was stored in target system.
- It get that data and comeback to process and continue with that data.
Types of Lookups in XI
- JDBC Lookup: JDBC lookup is used for accessing data from database (non SAP).
- RFC Lookup: RFC lookup is used for accessing the SAP Data.
- SOAP Lookup: SOAP lookup is used for accessing data from Webservice
Steps to perform Lookup in Mapping
Import package com.sap.aii.mapping.lookup.*;
Create connection to the target Database system.
// Determine communication channel created in ID
Channel channel = null;
channel = LookupService.getChannel("DB-SYSTEM-NAME","DB-CHANNEL-NAME");
// Get system accessor for the channel.
DataBaseAccessor accessor = null;
accessor = LookupService.getDataBaseAccessor(channel);
Build the Query String.
Getting Result
// Execute Query and get the values.
DataBaseResult resultSet = null;
resultSet = accessor.execute(Query); -
Function module for access OM Data from infotype 1001
We had a function module for accessing OM data viz. Infotype 1001. Could you let me know.
Advanced thanks,
Dasaradh kosanaHi Dasaradh,
Do you want the fm which fetches the data from HRP1001 , if this is the case you can use this FM RH_READ_INFTY_1001.
Reward Points if it is helpful
Regards,
Kiran I -
Function module to get the sequence numbers based on PERNR & payroll period
Hi,
Right now i am using the function module 'CU_READ_RGDIR' to get the sequence number based on the PERNR. Once i get the data i am filtering based on payroll periods (begin date and end date). Is there any function module to get the sequence number directly based on PERNR and payroll period dates? if so could you let me know.
Thanks
SatyaI think thats the only way
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = p0001-pernr
TABLES
in_rgdir = it_rgdir
EXCEPTIONS
no_record_found = 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.
check whether "Pay date for payroll result" with in Start Date and
End date, and "Reason for Off-Cycle Payroll" is initial
LOOP AT it_rgdir WHERE paydt >= v_begda
AND paydt <= v_endda AND
void IS INITIAL
AND ocrsn IS INITIAL
AND srtza = 'A'.
v_seqnr = it_rgdir-seqnr.
ENDLOOP.
Hope this helps.
Thanks
Kiran -
Function Module to get usage by supplying measuring point and equipment no
Hi,
I want to know what is the function module to get the usage on giving the measuring point,equipment number and month.Thanks in advance.
Regards,
SGRTry this Function Module : ALM_ME_EQUIPMENT_GETDETAIL
-
Function Module to get planned Quantity from posting date
hi,
i need one function module which takes plant and posting date date as an input parameter and get the Planned quantity for that range of that ...i dont want to fetch it from material since the report is run for the whole plant(werks).so it has got a lot of data entries so i need a function for that...
is there any function module which will fetch this data ...
Edited by: sonal musale on Jun 23, 2008 3:53 PMHi,
I have also the same problem. Any solution you have for this one?
Thanks,
Raymond
Maybe you are looking for
-
Posting Partial Payments throught incoming REMADV - Payment Advice
Hi , I am trying to post payment differences as partial payments whilst processing incoming payment advices via EDI using IDOC message type REMADV. In table T076A (auto-clearing with payment advice notes), I have configured the company code with paym
-
Parallel Sessions on Datapump Export (10.2.0.4)
Hi, We are using Oracle 10.2.0.4 on Solaris and I'm exporting a table using Datapump export. The export includes a query which selects from three tables based on relevant conditions. The parfile specifies 'parallel=4' and the dumpfile setting uses %U
-
Installing Mac OS X on a 2nd internal Hard Drive
I just purchased a 2nd hard drive for my PowerMac G5 2.5 GHz machine. I want to install Mac OS X on the new drive and use it as the main drive. However, when I try booting from the Mac OS X (Black dvd disc) my machine won't boot. The screen crashes a
-
Acrobat Preview Handler Windows Server 2012
We have installed a Windows 2012 server standard virtual terminal server for a client. It has now had both Acrobat X and Acrobat XI installed to attempt to rectify the preview handler issue. When selecting a PDF file to preview, Windows will display
-
Hi expert I use Berkeley DB with lots of short transactions. It seems the performance is limited because commit will cause disk flush/sync. To improve performance I commit several sequential transactions with NOSYNC flag, then commit last transaction