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 AM
Hi 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.
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 -
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 -
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 -
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 -
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 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 -
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 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 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 -
Functional module to get the File from a given Directory
Hi all,
I am using a FM name 'subst_get_file_list' to get the file from a given directory but it is accepting only 40 Character length file only my requirement is to accept file name other than 40 char,
give me good sugestion
regards
paulHi Paul,
Check the Function Module Gayathri has given. ie. 'SO_SPLIT_FILE_AND_PATH'.
In the exporting parameter FULL_NAME , give the path name and in the importing parameter stripped_name , you will get the filename.
Check this code.
REPORT ZSHAIL_SPLITFILE.
data: it_tab type filetable with header line,
gd_subrc type i.
tables: rlgrap.
data: path type string,
file_name type string.
parameters file_nam type rlgrap-filename .
data: user_act type i.
at selection-screen on value-request for file_nam.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
WINDOW_TITLE = 'select a file'
DEFAULT_EXTENSION = '*.txt
DEFAULT_FILENAME = ''
FILE_FILTER = '*.txt'
INITIAL_DIRECTORY = ''
MULTISELECTION = abap_false
WITH_ENCODING =
CHANGING
file_table = it_tab[]
rc = gd_subrc
USER_ACTION = user_act
FILE_ENCODING =
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 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.
if user_act = '0'.
loop at it_tab.
file_nam = it_tab-filename.
endloop.
endif.
path = file_nam.
CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
EXPORTING
full_name = path
IMPORTING
STRIPPED_NAME = file_name
FILE_PATH =
EXCEPTIONS
X_ERROR = 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.
at selection-screen.
message i001(zmess) with file_name.
Regards,
SP. -
Function module to get holiday class from work schedule for current day
I need to determine what the public holiday class value is for the current day in a user exit. Is there an SAP function module that can return me this data? This would be the information that is displayed when pressing the work schedule button from infotype 0007
Function module HOLIDAY_CHECK_AND_GET_INFO is closer to what I need. This function module returns an X if the day is a holiday. I will create a Z program and instead of returning an X for a holiday I will return the THOL-KLASS (holiday class) value.
-
Function module to get due date by terms of payment
Hi,
Is there any function module which can give me the due date when I pass
1) Terms of payment
2) Baseline date
Read the terms of payment and use the properties of the terms of payment ( Like Fixed date ) to get to the due date.
Thanks in advance.,
RajHi,
I had the same problem, as J_1A_SD_CI_DUEDATE_GET does not work when FI document is not created yet.
This is the way I used and it works:
CALL FUNCTION 'FI_TERMS_OF_PAYMENT_PROPOSE'
EXPORTING
i_bldat = sy-datum "if baseline is filled, value here is ignored
i_budat = sy-datum
i_cpudt = sy-datum
i_zfbdt = vbdkr-zfbdt "baseline due date
i_zterm = vbdkr-zterm "payment terms
IMPORTING
e_zbd1t = lv_zbd1t
e_zbd2t = lv_zbd2t
e_zbd3t = lv_zbd3t
e_zfbdt = lv_zfbdt
EXCEPTIONS
terms_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
ELSE.
CALL FUNCTION 'J_1B_FI_NETDUE'
EXPORTING
zfbdt = lv_zfbdt
zbd1t = lv_zbd1t
zbd2t = lv_zbd2t
zbd3t = lv_zbd3t
IMPORTING
duedate = z_duedate.
ENDIF.
Hope it helps.
Regards,
Fernando -
Function Module to get the data like in LS26
Hi Gurus,
We are designing a new program and we need to get information about the "available stock", "putaway stock" and "pick quantity" for some storage types. So this is exactly what the LS26 shows.
Do you know any Function Module that can extract or calculate this information?
I would really appreciate any suggestion.
Thank you in advance
Edited by: Abel Raya on Jul 4, 2011 11:39 AMI don't think there is a function module exists. But you can get the details from table LQUA for item details and LEIN for header records.
-
Function Module to Calculate Due Date from Payment Terms?
I'm writing an aged debtor report as the SAP standard one isn't quite right for our requirements. Is there a function module that will calculate the payment due date if I give it the payment terms and the base line date?
I did a search in SE37 but couldn't see one which fitted my requirements (I was searching on CALCDUEDATE and variantions of).
Any suggestions welcome, thanks.
GillHi,
Use the FM FI_TERMS_OF_PAYMENT_PROPOSE for calculating the Payment due date
call function 'FI_TERMS_OF_PAYMENT_PROPOSE'
exporting
i_bldat = gv_bldat
i_budat = gv_budat
i_cpudt = sy-datum
i_zfbdt = gv_zfbdt
i_zterm = gv_terms_paym
i_bukrs = gv_comp_code
importing
e_zbd1t = gv_zbd1t
e_zbd1p = gv_zbd1p
e_zbd2t = gv_zbd2t
e_zbd3t = gv_zbd3t.
Regards,
Dwaraka.S
Maybe you are looking for
-
For some reason I just can't wrap my brain around this one. I want to be able list a series of times in a form select following these guidlines: Starting: 10:00 am Ending: 8:00 pm Frequency: Every 15 minutes Display Format: hh:mm tt Value Format: Mus
-
NO SOUND (I tried everything) ENVY 14 BEATS EDITION
ENVY 14 BEATS EDITION 2001tx Product #: LZ812PA#ACF WINDOWS 7 ULTIMATE 64-bit Service Pack 1 Location: Tokyo I read through these forums and literaly tried all the solutions, hopefully you will prove me wrong and give me the answers I need. So my pc
-
Glassfish v3, BlazeDS, and authentication.
Hi, I'm looking for documentation about how to configure BlazeDS security with Glassfish v3. I've found this: http://anachronymous.com/2009/01/flex-blazeds-and-glassfish-part-1.html ...but it's for Glassfish v2. Most of it should be the same, but s
-
Anyone else having trouble getting new version of Flash to work w. Safari?
I read on the TUAW.com site this AM that Adobe released a new version of Flash Player (8.0.24) that closes a security hole. Keeping a security hole around doesn't sound like a great idea so I went to update. Well after updating Flash Player on my MBP
-
How to upload the file in the virtual disk?
I have created a virtual drive called Z.But I don't upload file(image). I could not find how to write the file path. <cfif len(attributes.background_file)> <cfset upload_folder =( ".....")"> <cffile action = "upload" fileField = "background_fil