Suggest a function module?
Does anybody know of any function module(s) that will let me read MARC-MMSTA and STKO-STLST for a given material number? I need to pull these fields into an ASP.NET application and would rather not use RFC_READ_TABLE.
Thanks
Why don't you just write your own if you can't find one ?
Writing a function module to return data is simple...basically passing some parameters and run a query then return your results.
Or you can use se11, enter the table name and do a where used. This will show you what programs and function modules the fields are used in.
Similar Messages
-
Suggestions for Functional module
Hello experts,
I Have done B.Sc(Mathematics) and MCA & have learnt SAP/ABAP but do not have any real time project experience,now my problem is i want to go in SAP/SD module but i do not have any have any domain knowledge as such.Can i begin my career in SAP/SD(functional) module as a fresher starting from the first step,will i be able to do it? UR suggestions are very much important for me coz i am in dilemma.plz help me.
thnks n regards,
Ashmita.Dear,
First of all Its good - IF you have 2 areas of knowledge in SAP ERP.
Secondly most functional areas in SAP required minimum real time experience in each areas. Atleast minimum know about process, steps involved, tasks performed in any funcational area you choose.
The second part is obtaining a real time job in your expertise area. Everyone are a fresher once and only thing you have to keep in mind is - FACE INTERVEW QUESTIONS AND ANSWER THEM CORRECTLY WITH CONFIDENCE. The client has to get confidence that you can achieve something on your own for their requirments.
GOOD LUCK and GO AHEAD. Concentrate on each and every topic and try to compare them with real time process with imagination and how they related in ERP.
Regards,
Syed Hussain. -
Function module for getting the open qty
HI experts,
I have a PO quantity(EKPO_MENGE).against same PO and item item(EBELN and EBELP) if Goods receipt has happened (MSEG_ERFMG) then i need to calculate the open qty.and also by netting the open quantity if multiple GRs has done against the same PO and item.
Can you suggest any function module to get this open PO quantity.Hello,
Hope this link can help you.
[Po Open Quantity;
Thanks
Jayant -
Function Module for Changing delivery date
Hi Friends ,
I am held up with a scenario of changing the delivery date while creating purchase order. Could you please suggest any function module to change the delivery date in purchase order if it is less than 5 days.
With Regards ,
Sudhir S
Moderator message: please do some own research before asking.
Edited by: Thomas Zloch on Feb 21, 2011 11:45 AMHi praveen for u r requirement there is no need of any FM
Try this code
parameters:
p_date like sy-datum,
p_no type i.
data:
w_date like sy-datum.
w_date = p_date - p_no.
write: / w_date .
it is enogh for u r requirement
plzz reward if it is usefull...
for any further quiries my mail id is [email protected]
plzz dont forget to reward -
BAPI/Function module to release request.
Hi All,
I want to release the request from my ABAP program. Can anybody suggest me Function Module or BAPI for that. I tried BDC for the same but release get canlled.I want to release the request from my ABAP program.
Not suggested.
Reason:No consistency no object test no inactive object test been take place with this method.may be on the edge.
Amit. -
Function Module for Installment Customer Payments
Hello,
I am trying to create a payment due report for our customers. We use installment payment terms for our customers. Therefore, when run at the end of September 2011 this report has to only show the invoice amount, tax and discount that is due as of that date. Is there a function module that I can use to get the split based on these installment terms?
The only other option is to do the calculation manually within the program i.e. read the installment percentage from the table T052S and calculate the values per invoice. However, it seems as if there would be a easier way to do this. Can someone please suggest any function modules that can be used to calculate the net due, discount and tax amounts per installment period?
Thanks,
RugmaniHi Suresh,
You have a standard IDOC function module to create the customer Master for Message Type DEBMAS is IDOC_INPUT_DEBITOR and the process code is DEBM.
You can use that combination and you can create customer master with the IDOC's in your system.
Thanks,
Mahesh. -
Function Module - Customer Installment Payment Due
Hello,
I am trying to create a payment due report for our customers. We use installment payment terms for our customers. Therefore, when run at the end of September 2011 this report has to only show the invoice amount, tax and discount that is due as of that date. Is there a function module that I can use to get the split based on these installment terms?
The only other option is to do the calculation manually within the program i.e. read the installment percentage from the table T052S and calculate the values per invoice. However, it seems as if there would be a easier way to do this. Can someone please suggest any function modules that can be used to calculate the net due, discount and tax amounts per installment period?
Thanks,
RugmaniDear Rugmani,
Provide you url which is helpful to you....i think you must have to create a z-report for this purpose.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/TRZP/TRZP.pdf
regards
Ajit -
Function Module to fetch Customer Number from Sales Order or Process Order
Hi Gurus,
I am looking for a Function module which gives me customer number from Sales order or Process order.
Please let me know of any FM's available.
Regards,
MadanHi,
Thanks for your response.
I am actually looking for function modules which take "Sales Order" or "Process Order" as input (import parameter) and return Customer Number as output (export parameter).
Please suggest some function modules you know any.
Many Thanks,
Madan -
Need function module or Bapi name for uploading CJ02 tcode
Hi All,
When i am trying to record the data for TCODE : CJ02 i need to enter the project Definition and enter the WBS element it takes me to the screen then i should select the WBS element and attach a file for that selected WBS element . The option for me to attach the attachment of file will be available on the application area(Services for the Object).
Now the problem when i try to do recording in SHDB this option like create attachement is not visible in the recodring . Kindly suggest me what can i do such that i attach the file for the particular project def and WBS element.
Either suggest any function module or other procedure .......
Regards,
Sana.
Edited by: Misbah Sultana on Nov 5, 2009 10:33 AMHi,
try using BAPI
BAPI_PROMO_CHANGESITEPLANNING
or
BAPI_PLANNEDORDER_CHANG
THANKS
ravi -
Function Module to update the file path/name into Infopackage
Hi Experts,
I have some flat files which will be loaded to the directly daily. My requirement is to update the file name into the infopackage dynamically. Please suggest any function module or program for it.
Thanks,
KittuIn Higher versions, we can use the below code:
call method CL_GUI_FRONTEND_SERVICES=>ENVIRONMENT_GET_VARIABLE
exporting
VARIABLE = 'TEMP'
importing
VALUE = LV_TMP
exceptions
CNTL_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.
call method CL_GUI_CFW=>FLUSH
exceptions
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
others = 3.
if SY-SUBRC <> 0.
Error handling
endif.
concatenate lv_tmp '\' into folder_path.
But need to know in the lower versions like 3.1h and 4.0, -
Function module for Fiscal period ( monat field name)
Hi ,
please suggest the function module for (monat) Fiscal period. our reqirement is default to previous accounting period from the current month.
Thnks
SrinivasHi,
Refer to the following code:
DATA: LV_FISCAL_YEAR_VAR(2) TYPE C,
LV_PERIOD LIKE T009B-POPER.
CALL FUNCTION 'CCODE_GET_FISCAL_YEAR_VARIANT'
EXPORTING
COMPANY_CODE = S_BUKRS-LOW
IMPORTING
FISCAL_YEAR_VARIANT = LV_FISCAL_YEAR_VAR
EXCEPTIONS
COMPANY_CODE_NOT_FOUND = 1
OTHERS = 2.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
I_DATE = P_BUDAT
* I_MONMIT = 00
I_PERIV = LV_FISCAL_YEAR_VAR
IMPORTING
E_BUPER = LV_PERIOD
* E_GJAHR =
EXCEPTIONS
INPUT_FALSE = 1
T009_NOTFOUND = 2
T009B_NOTFOUND = 3
OTHERS = 4 -
Function modules for Individual Work maintenance
Hi all,
We're planning to use the functionality of individual work for our customer. And we're planning to use custom screens rather than GUI for creation, maintenance, deletion etc - as GUI screens seem to have some bugs (especially when you try to delete an individual from a student on PIQST00)
So are there any function modules (RFC if possible) related to individual works (for creation, maintenance, deletion etc)? I looked up some function modules but they didn't turn out to be as "functional" as we expected considering our requirements.
If no function module exists to meet our requirements, could you suggest any functional modules for its infotypes (for same purposes)?
Thanks in advanceHello Rob,
Thanks for the reply!
Well I already checked those functions with starting HRIQ_INDIV. However none of them seemed to work for me. For instance, HRIQ_INDIVWORK_MAINTAIN. You cannot maintain (neither create ) individual work or anticipated submit date infotypes with that function I guess. Besides that, when I want to test the function and enter some import parameters it needs, let's say creating individual work - therefore opera = inse -, it directs me to Individual Work maintenance screen in module catalog in GUI with an pop-up error!
I need a function like HRIQ_RFC_MODULE_CREATE for instance when you are able to fill all infotypes related to a study modue... To give another example, I can say it can be HRIQ_ADV_ADVASSGNMT_CREATE_RFC when you are able to assign an advisor to a student with all the info needed just like you would do in PIQST00.
However, the function modules related to individual work are not as functional as the function modules I named above.
Should I go for infotype function modules? -
Hello APO gurus,
I am new APO technical, Can anybody please suggest Remote function modules for PPM creation, change and Delete
Thanks
sureshHi,
These are BAPI Remote Function modules you can use for create , change and delete PPMs
BAPI_PPMSRVAPS_GETLIST - Read PPMs, Plans and Dependent Operations
BAPI_PPMSRVAPS_SAVEMULTI_30A - Maintenance of Production Process Models and Plans.
I hope useful for PPMs
Thanks
sreeni -
Function Module to calculate age
Hi Abapers,
Kindly suggest some function module which can calculate age of a person by taking date of birth till date.
Thanks in advance,
RadhikaHi Radhika,
Check this program
REPORT ZTEST.
DATA : BIRTH_DATE LIKE SY-DATUM,
DAYS TYPE NUM2,
MONTHS TYPE NUM2,
YEARS TYPE NUM2.
BIRTH_DATE = '19830307'.
CALL FUNCTION 'HRCM_TIME_PERIOD_CALCULATE'
EXPORTING
BEGDA = BIRTH_DATE
ENDDA = SY-DATUM
IMPORTING
NOYRS = YEARS
NOMNS = MONTHS
NODYS = DAYS
EXCEPTIONS
INVALID_DATES = 1
OVERFLOW = 2
OTHERS = 3.
WRITE : / YEARS , 'years' , MONTHS , 'months' , DAYS , 'days'.
Regards,
Satish -
Function module to change the value for pricing condition type
Hello experts,
I want to change the value for pricing condition type for an item in the transaction CRMD_ORDER.
I used many function modules but none are working.
Please kindly suggest a function module that will change the value for a condition type .
I have used the following function module but its not working, please correct the coding if anything needs to be changed or added. Please help me .
Thank you.
CLEAR PRCD_COND.
SELECT SINGLE * FROM PRCD_COND WHERE KPOSN = WA_ORDERADM_I-GUID AND
KSCHL = COND_TY.
IF SY-SUBRC = 0.
* MOVE-CORRESPONDING PRCD_COND TO L_COND_CHG.
* CLEAR L_COND_CHG-KBETR.
L_COND_CHG-STUNR = PRCD_COND-STUNR.
L_COND_CHG-KBETR = COND_PRC.
* L_COND_CHG-KSCHL = COND_TY.
INSERT L_COND_CHG INTO TABLE T_COND_CHG.
L_HEAD_GUID = CRMD_ORDERADM_H-GUID.
L_ITEM_GUID = WA_ORDERADM_I-GUID.
INSERT L_HEAD_GUID INTO TABLE HEAD_GUID.
INSERT L_ITEM_GUID INTO TABLE ITEM_GUID.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
IT_HEADER_GUID = HEAD_GUID
IT_ITEM_GUID = ITEM_GUID
IMPORTING
ET_ORDERADM_H = LT_ORDERADM_H
ET_ORDERADM_I = LT_ORDERADM_I
ET_PRIDOC = IT_PRIDOC_RD
ET_DOC_FLOW = T_DOC_FLOW
* CHANGING
* CV_LOG_HANDLE =
* EXCEPTIONS
* DOCUMENT_NOT_FOUND = 1
* ERROR_OCCURRED = 2
* DOCUMENT_LOCKED = 3
* NO_CHANGE_AUTHORITY = 4
* NO_DISPLAY_AUTHORITY = 5
* NO_CHANGE_ALLOWED = 6
* OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRI_COND.
INSERT L_PRI_COND INTO TABLE PRI_COND.
LOOP AT IT_PRIDOC_RD INTO LS_PRIDOC_RD.
MOVE-CORRESPONDING LS_PRIDOC_RD TO L_PRIDOC_CHG.
L_PRIDOC_CHG-PRIC_COND = PRI_COND.
L_PRIDOC_CHG-REF_GUID = LS_PRIDOC_RD-GUID.
L_PRIDOC_CHG-COND_CHANGE = T_COND_CHG.
INSERT L_PRIDOC_CHG INTO TABLE PRIDOC_CHG.
ENDLOOP.
LOOP AT LT_ORDERADM_H INTO LS_ORDERADM_H .
MOVE-CORRESPONDING LS_ORDERADM_H TO L_HEADER.
INSERT L_HEADER INTO TABLE HEADER.
ENDLOOP.
LOOP AT LT_ORDERADM_I INTO LS_ORDERADM_I.
MOVE-CORRESPONDING LS_ORDERADM_I TO L_ITEM.
INSERT L_ITEM INTO TABLE ITEM.
ENDLOOP.
L_FIELD-FIELDNAME = 'STUNR'.
INSERT L_FIELD INTO TABLE FIELD.
L_FIELD-FIELDNAME = 'KBETR'.
L_FIELD-CHANGEABLE = 'X'.
INSERT L_FIELD INTO TABLE FIELD.
L_INPUT-FIELD_NAMES = FIELD.
L_INPUT-REF_KIND = 'E'.
L_INPUT-REF_GUID = LS_PRIDOC_RD-GUID.
L_INPUT-OBJECTNAME = 'PRIDOC'.
INSERT L_INPUT INTO TABLE INPUT.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
IT_PRIDOC = PRIDOC_CHG
IMPORTING
ET_EXCEPTION = EXCEPT
CHANGING
CT_INPUT_FIELDS = INPUT.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH EXCEPT.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
IT_OBJECTS_TO_SAVE = HEAD_GUID
* IV_UPDATE_TASK_LOCAL = FALSE
* IV_SAVE_FRAME_LOG = FALSE
* IV_NO_BDOC_SEND = FALSE
* IT_ACTIVE_SWITCH =
IMPORTING
ET_SAVED_OBJECTS = SAVED
ET_EXCEPTION = EXCEPT
ET_OBJECTS_NOT_SAVED = UNSAVED
* CHANGING
* CV_LOG_HANDLE =
* EXCEPTIONS
* DOCUMENT_NOT_SAVED = 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.
COMMIT WORK AND WAIT.Hi,,
To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to Update with immediate start
Alternatively u can use this function module.
CRM_STATUS_DATA_SAVE_DB
BAPI_CUSTOMERCRM_CHANGE (If u wish to use a bapi for this).
Also , Let me know what error you got when implementing other function module.Does the function module didnt return any error but still the value is not changed for pricing condition type?
Maybe you are looking for
-
How to change TEXT EDITOR in SMARTFORMS
Dear All, How to change TEXT EDITOR in SMARTFORMS i am getting editor like Microsoft Word but i want the regular editor. I am using ECC 6.0 GUI 710 thanks, RP
-
Hello All! I'm planning to uninstall the Livetype Version that comes with my FCE4 upgrade and re-install the original LiveType version that comes with my FCE-HD that was released 3 years ago Will this work without problems with Leopard? (OS X 10.5.4)
-
Regarding Making DB Connect Delta Capable with external Sources
Hi Everyone! Although as standard DB Connect does not support Delta, this much I have understood. Lately I came across an article from Shreekant Shiralkar and Bharat Patel, BW System Managers, Bharat Petroleum, India in an old BW Expert Article...
-
Suggestions how to resize/compress images to be stored in a DB?
Hi, Powerbuilder 11.5.1 application running on SQL Anywhere 11 DB We are investigating possibilities to store images relating to rows in our table, we will probably do it as suggested, using Long Binary data type. However, what would be really neat i
-
Loggon Application Failure - Blue screen
Hope somebody can help. Basically I am unable to boot my iMac, It gets as far as the blue screen and then hangs. I rebooted in verbose mode and it goes all the way through to 'Loggon Application Window Started' and I get the nice blue screen and a cu