Suggest me a function module
Hi all,
Suggest me a function module that accepts Company code , Bussiness entity , land or any of the combinition of above three and returns unit ie data element LEINS.
Useful answers are rewarded.
Thanking u all in advance
Hello Kiran,
did you speel LEINS correctly ? because i can't find en 4.6C any data element with that name. Do you mean "MEINS"?
If you refer to MEINS, you can use Function module "MSR1_MD_UNIT_GETLIST"
that gives you all the units for land. I't acess to table T006A
Thanks
Similar Messages
-
Can any one suggest me a function module or BAPI for the below requirement.
Hi all,
I have a requirement in which i need to send an IDoc for each item of the delivery document linked to the shipment document.
previously i have called the function module in a BADI, but now the requirement has changed.No BADI or USEREXIT has to be used.Instead i need to create a custom program and call the function module in a form in the program.My doubt is how can i get the tables needed in the function module from the program? previously i got the tables as online parameters in the BADI.
the function module will be trigerred at the time of saving of the document.
I understand that i need to pass the tables in the program, but is there any way (function module or a BAPI) that can be used to directly get the data of the BADI?
please help me as soon as possible.hi,
my transaction is VL02N change outbound delivery. -
Function module to read the directory list and also run in background
Hi All,
I need to read few files from a folder in the server and upload the data in the file using a BDC. This process has to happen in the background as I am going to schedule the program. I had used the function module "EPS_GET_DIRECTORY_LISTING" to list the file names, it is working properly but when I schedule the program this function module does not work, the jobs gets finished in 0 secs. I am suspecting that it is not running in back ground. Can any one suggest me the function module which runs in background to read the files or an alternate method.
AjeethaThanks for the reply.
Sorry, this function module is working properly, why I assumed it is not working is that the background job got completed in 0 secs which made me feel that the function module is not working. Also I am subsequently copying the file to another folder and deleting it from the source folder, actually thiese two functionalities are not working in background. which added to my conclusion that all the function modules are not working in background. I am using two methods to copy and delete files, they are
CL_GUI_FRONTEND_SERVICES=>FILE_COPY,
CL_GUI_FRONTEND_SERVICES=>FILE_DELETE.
as these are not working in background, now I need to replace them with a method or function module which will run in background.
As I have mentioned earlier, my main objective is to upload the data in the file using a bdc. If I am not able to delete the file in the source folder, then duplicate upload will happen which I have to avoid. So, if someone could help me to find a way to delete the file will be of great help to me.
Ajeetha -
Function Module to obtain date
Hi all
Can anyone suggest me the function module which satisfies below scenario:
Suppose i enter FROM date as :18.07.2006
and TO date as :20.07.2006
I should get number of days between these two dates as 1 and value :19.07.2006.
Thanks in advance
Regards
Neha KapoorHi neha,
1. just copy paste
2. It will list ALL THE DATES which fall in between,
and also the NUM OF DAYS.
3.
report abc.
PARAMETERS : FROMDATE TYPE SY-DATUM DEFAULT '20060701'.
PARAMETERS : TODATE TYPE SY-DATUM DEFAULT SY-DATUM.
perform mydays using fromdate todate.
FORM
FORM MYDAYS USING MYFROMDATE MYTODATE.
DATA : CURDATE TYPE SY-DATUM.
DATA : NUMOFDAYS TYPE I.
CURDATE = MYFROMDATE + 1.
DO.
IF CURDATE >= MYTODATE.
EXIT.
ENDIF.
NUMOFDAYS = NUMOFDAYS + 1.
WRITE :/ CURDATE.
CURDATE = CURDATE + 1.
ENDDO.
WRITE :/ '------- Num of days ' , numofdays .
ENDFORM. "MYDAYS
regards,
amit m. -
POPUP_UNIT_CONVERSION SAP Function module in Transformation routine
Hi Experts,
I'm using above function module to convert the value of measuring document. I have the unit value in and unit value out, I need help on how to achieve this with function module in the routine... I wrote below code but it is giving me errors...
CALL FUNCTION POPUP_UNIT_CONVERSION
EXPORTING
VALUE_IN = 'SOURCE_FIELDS-DESIR'
INDICATOR_VALUE = ' '
UNIT_IN = 'SOURCE_FIELDS-MSSIE'
UNIT_OUT = 'SOURCE_FIELDS-RECDU'
POSITION_COLUMN = '20 '
POSITION_ROW = '5'
IMPORTING
VALUE_out.
RESULT = VALUE_out.
Can any of you guys used this before , can you please sugget the code. Thanks
-GaneshHi Ganesh,
I suggest to use Function Module UNIT_CONVERSION_SIMPLE. The Function Module you mentioned seems to be applicable for dialog processing.
The coding could look as follows:
CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
EXPORTING
INPUT = SOURCE_FIELDS-DESIR
UNIT_IN = SOURCE_FIELDS-MSSIE
UNIT_OUT = SOURCE_FIELDS-RECDU
IMPORTING
OUTPUT = RESULT.
Best regards,
Sander -
Function module to identify users - fowarded work items
Hi
Pls can anyone suggest an appropriate function module to identify the users of the forwarded work items?
The onyl input i have is the user name.
the scenario is : UserA had fwd'ed a workitem XYZ to UserB and I need to find programatically all the details and the user of the workitem XYZ like who had forwarded to UserB. Since i dont have the work item number or dont want to restrict with date range, i wish to get this info purely with the user id only. pls can anyone suggest some functions?Hi Prabhu
First, get the Work item IDS:
Go to table SWWUSERWI, supply USER_ID as your User (User B) and FORWARDED flag = 'X'.
You will get all workitems forwarded to THAT user (USER_ID) - User B
Now Get "Who dared to forward them to me (the user which you have" :
Now use FM SWL_WI_GET_HISTORY , supply WI_ID as fetched above
You will get the History in table HISTORY. From this table, keep only records where WI_ID matches the above, METHOD = 'SWW_WI_FORWARD'
You will be left with step history for that WI ID where it was forwarded. The field METH_USER will contain the user name of the guy (culprit) who forwarded the WI
Regards,
Modak -
Function module to update Vendor address using address number from KNVK
Hi ,
I need to update the Vendor contact information in tables ADRC,ADR2,ADR3,ADR6 and KNVK.
Could any one suggest me a function module or BAPI?
It is bit urgent requirement. Please advice.
Thanks in advance for your help.
KumarHi,
Please try this BAPI and FM.
BAPI_BUPA_ADDRESS_CHANGE.
BAPI_VENDOR_CHANGE
BAPI_VENDOR_EDIT
VENDOR_UPDATE
Regards,
Ferry Lianto -
Function Modules, for listing Cost centers Under a manager
Hi All,
1. Can any one please suggest me any Function Module available for listing the cost center under a manager, given only the Manager's username or pernr.
2. And also the Function Group which has the collection of Function Modules which deals with operations and reporting on Cost centers from a Manager's Role (basically on budjet Monitoring aspects).
Thanks and Regards,
GirimuruganIf this is the followup of the previous post (responsible person) and you wanted to get a list of cost centers based on that using a FM , i doubt that there is a FM available for that. You have to read the table to get the info.
When you say manager, he could be a manager for a HR organisation but the cost organization may be different. in a typical set up it would be a cost center group (which will have set of cost centers under it) and this will be linked to a hr organization.
All this is purely based on how cost center hierarchy (standard hierarchy) and hr organization maintained and how they are linked.
Regards
Raja -
Material group updation by using function modules
Hello All,
I would like to add , update and delete material group From database tables T023 and T023T according to the given Excel input file.Could you please suggest me any function modules are there apart form MATL_GROUP_UPDATE .
if i am using this function module i am getting the follwing error
'Class does not exist or is not valid on this date'.
Could you please send me any sample code.
Thanks in advance,
Arvind.Hello Narendran,
Thanks for your quick reply.
i need to do the following fucntions to the tables t023 and t023t.
1) adding material group
2) Updating the material group
3) Deleting the material group
according to the status field in the excel input file as shown below
Status ungültig Referenzen MGS Beschreibung deutsch Beschreibung englisch 中文 Beschreibung russisch
N H4*** Kohlen Carbon 炭 Уголь
N H4100 Kohlebürsten Carbon brushes 炭刷 Угольные щетки
N H4900 Sonstige Teile aus Kohle, techn. Kohle Other parts made from carbon, techn. carbon 由炭,工程用炭制成的其他零件 Прочие виды изделий из угля, технический уголь
U J2100 Polyphenylenether (PPESIB) Polyphenylene oxide (PPO) 聚苯氧化物(聚苯撑氧,聚苯撑氧化物)(PPO) Полифенилэфир (PPESIB)
D x J2400 Sonstige styrolhaltige Polymere Other Polymers Containing Styrene 其他含苯乙烯聚合物 Прочие виды полимеров, содержащие стирол
Note:Status :N means add the corresponding material group H4***
U means update the material group Description in t023t
D means delete the material group form the table t023t
in all languages
Could you please tell me any other fucntion modules are there.
As per your suggession we can add the material groups then what about Updation and deletion of material groups.
Also suggest me shall i go for normal modify , delete and update statements in my program to aceive the above functionality
2) The excel file format is also not constant they can change the columns
as per their wish i mean for exp in the above excel at col1 Status field is there and at col4 (MGS ) material group and remaining columns are description of the material group in different languages(sorry the excel alignment is not clear above) .
They can change this and they can place status at col5 and MGS at col6 .
Could you please advice me how to handle this situation in my program
Thanks in advance,
Arvind. -
Very important and urgent - i need info regarding a function module
hi all,
can any one suggest me a function module which calculate the
difference in two dates and give answer in days.
some one suggest me the following function m odule
CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'
EXPORTING
beg_da = wpv_dati
end_da = wpv_datf
IMPORTING
no_cal_day = wpv_days
Please suggest any other function module.
or i can use this Function module onlyHi,
U can use the following function module.
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
EXPORTING
I_DATUM_BIS = date1
I_DATUM_VON = date2
I_KZ_EXCL_VON = '0'
I_KZ_INCL_BIS = '0'
I_KZ_ULT_BIS = ' '
I_KZ_ULT_VON = ' '
I_STGMETH = '0'
I_SZBMETH = '1'
IMPORTING
E_TAGE = days
EXCEPTIONS
DAYS_METHOD_NOT_DEFINED = 1
OTHERS = 2
Reward if useful.
Regards,
Rajesh Akarte -
Function module for fiscal year
Hi all,
can you please suggest me the function module for automatic generation of fiscal year.
Thanks and regards,
S.Latha.Hi Latha,
Please find below the code for auto generation of the fiscal year.
l_date = sy-datum. "l_date should declared of type sy-datum
Use the function module to get the period
CALL FUNCTION 'MC_PERIODE_ZUM_DATUM'
EXPORTING
idate = l_date
iperkz = l_p " 'P'
iperiv = l_periv "V6
IMPORTING
eperid = l_period
EXCEPTIONS
wrong_period = 1
OTHERS = 2.
l_fiscal = l_period+0(4).
l_p - 'P' i. e. Is the period indicator (Period according to fiscal year variant)
l_periv - 'V6' i.e. Is the Fiscal year variant. Here it is V6 which relates country 'US'.
l_period - gives you the Fiscal period.
l_fiscal - The first four digits of l_period gives you the 'Fiscal year'.
Hope this helps you !.
Thanks & Regards,
MM Jaffer.
Edited by: MohammedJaffer on Aug 10, 2010 12:53 PM -
Suitable Functional module for ABAP consultant
Hi all,
I am an ABAPer with one and half years of experience.
Can some body suggest me a functional module which will be easier to learn for me as I have no domain experience.
Also please tell me the marketwise hottest module these days such that there are projects as well as demand in the market.
Also please tell me about higher end modules in SAP.
Plaese clarify the role a technofunctional has to play I mean is techno-functional has basically functional but aid to technical person or he has to do both functional as well as technical work.
Thanks.
Edited by: sandeep deshpande on Apr 29, 2008 8:15 PMHi Santanu
I am a SAP ABAP Technical Consultant with 2.5 years of Experience. Now i want to shift to a functional module to become a Techno-Functional. I am B.Tech in IT and i love to do coding. But i also want to know Business Process.
Please help us here: where in any of that paragraph do you provide any useful information about yourself that would allow any of us to:
So can you suggest me what would module would be best for me.
You have SAP experience. You know of SAP Modules. You work in the industry. You are your own person. How is anyone on here qualified to give you advise without any context?
Step back - what do you enjoy doing? Which module have you learned about that you find interesting? Which one have you done more ABAP in? Which one might your current employer let you get experience in?
I think you have the answer you just need to think it through a bit.
Regards
Colleen -
Function module to caclculate employee workin time??
Hi ,
I have a requirement where in i need to calculate employee per month working time , i am using
CATT_PERSONAL_WORKING_TIMES but the problem with this FM is that it gives the working time on per day basis ,Please
Suggest me some functional module where in i can fetch the working time for the entire monthhi,
pls go thru this post. it might help u.
function module to calculate total working hours of the employee
thanks -
Function module for uploading file in background
hi friends
i am working on Inbound IDOC interface where in which i am creating a function module for that,
in which based on the idoc received , the interface has to choose the file from the shared folder and it has to move its contents to an internal table
can anybody suggest me what function module can i use.
we cant use GUI_upload,or cl_gui_frontend_services=>gui_upload
because this requires an user to interact in mines it is not the case
thanks in advance
with regards
s.janagarhi,
check this thread,you will get idea how to transfer data from file to internal table.
[https://forums.sdn.sap.com/click.jspa?searchID=17706879&messageID=6281020] -
Function module to read Purchase Requestions
Hi all,
As you must be knowing that in /SAPAPO/RRP3 transaction we can create the Purchase Requisitions.
Now my requirement is that I want to read all the Purchase Requisitions from today onwards for all product and location combination.
Please suggest me any Function Module or any BAPI which can solve this problem.
Any pointer on this will be helpful.
Thanks in advance.
Satyam.Can try FM /SAPAPO/DM_PO_READ.
or
/SAPAPO/RRP_REQUISITION_CREATE
Manish
Maybe you are looking for
-
"The project appears to be damaged, it cannot be opened"
I have created a project in Premiere Pro Creative Cloud CS6 but when I try and open it in a single-app subscription version and also the copy we have as part of the creative suite I get the following error - "The project appears to be damaged, it can
-
We are evaluating XI for ANSI X12 EDI , Have some EDI Quesitions using SEEBurger Adapter. 1) Does SEEBurger Adpater has ANSI X12 Enveloping and De-Enveloping capabilities ??? If Yes,how this is configured /Developed. 2) Does SEEBurger Adapter has
-
How to get the cost center for the retro balance.
Hi All I have this report that gives the retro balance. I get the information from RT and BAL. The problem is it doesn't show the Cost Center for the retro amounts. C1 holds the current periods payments not the retro ones. Does any one know how can i
-
I guess there is Y2k glitch in Forte
Hi All, I have my earlier version of product installed on client machine, before Jan 1, 2000. And today i re-installed my product with some upgrades, thro Environment console, on the same environment. It worked on the server machine properly, but whe
-
Does anybody have an idea what's going on?