Is there any Function module available for GR IR for purchase order
Hi
Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
One way to create a custom fuction to fetch the details from MSEG and BKPF.
Can somebody suggest a better solution.
Thanks in advance.
Ruhi Hira
Which table in BAPI_PO_GETDETAILS exactly has these information ?
PO_HEADER_TEXTS
PO_ITEMS
PO_ITEM_ACCOUNT_ASSIGNMENT
PO_ITEM_SCHEDULES
PO_ITEM_CONFIRMATIONS
PO_ITEM_TEXTS
PO_ITEM_HISTORY
PO_ITEM_HISTORY_TOTALS
PO_ITEM_LIMITS
PO_ITEM_CONTRACT_LIMITS
PO_ITEM_SERVICES
PO_ITEM_SRV_ACCASS_VALUES
RETURN
PO_SERVICES_TEXTS
EXTENSIONOUT
NFMETALLITMS
Regards
Ruhi Hira
Similar Messages
-
Is there any function Module available?
Hi,
Could you please tell me whether the function module is available for the scenario below.
If we pass RFC Name to the function module it should return success or failure message for the particular target server maintained in the RFC.
We need to check with the help of RFC we just need to know whether the particular target server is running fine or not?
Please help me in this regard.
Thanks & Regards,
SwathiHi Swathi,
Actually there is a program available that can check an RFC destination (regardsless of what type it is). In fact within transaction SM59, behind the "Connection Test" button this report is runned and the results shown on screen.
I have made a small ABAP objects method to encapsulate this.
This method has an interface and ABAP code:
-->INTERFACE:
import: RFCDEST TYPE RFCDEST (OPTIONAL) - Destination to test
change: REACHED TYPE BOOLEAN - Is destination active?
change: DETAILS TYPE RFCSI - RFC system info (see FM RFC_SYSTEM_INFO)
-->ABAP CODE:
METHOD reach_rfc_destination .
* Test RFC destination connection (all types)
DATA:
loc_rfcsi TYPE rfcsi.
* Answer is unknown at the start of the method
CLEAR:
loc_rfcsi,
reached. " In this way it is always set to GC_FALSE
* Only if an RFC Destination is supplied
IF rfcdest IS SUPPLIED
AND rfcdest NE space.
* Clear memory area before call
* so no details about previous RFC test calls do exist
FREE MEMORY ID '%_rfctest'.
* Remote test call
SUBMIT rsrfctes
WITH dest = rfcdest AND RETURN. "#EC CI_SUBMIT
* Collect possible RFC information
IMPORT rfcsi TO loc_rfcsi FROM MEMORY ID '%_rfctest'.
* Reached
IF loc_rfcsi IS INITIAL.
* Answer is not reached
reached = gc_false.
ELSE.
* Answer is reached
reached = gc_true.
details = loc_rfcsi.
ENDIF.
ENDIF.
* Housekeeping
CLEAR:
loc_rfcsi,
sy-subrc.
ENDMETHOD.
This will supply you with gc_false (=constant value with space) or with gc_true (=constant value with X).
When gc_true the destination is OK and reachable.
Regards,
Rob. -
Is there any Function Module to delete the Responsibility for buyer
Hi,
I am able to insert a responsibility for a buyer using the FM, BBP_UPDATE_ATTRIBUTES. Can any one can tell me is there any FM to delete the responsibity for buyer. The BBP_UPDATE_ATTRIBUTES is not working for deletion and It is taking lot of time when i am trying to delete rsponsibility by using the transactio code PPOSA_BBP .
I found one badi, HRBAS00INFTY but there are no exporting or changing parameters in that badi to write some logic to delete.
The FM ,RH_BASE_UPDATE_DB_DIALOG is getting executed and updating the data base tables after the above badi got executed. can i use this FM ,RH_BASE_UPDATE_DB_DIALOG directly to delete the responsibility?I think it is not recomended.
can any one give me some idea.Hi. You can use transaction PP01 instead of PPOMA_BBP.
You might have to make some settings in table T777I to allow the responsibility to be maintained from PP01, but it it a lot faster than PPOMA_BBP, and you could use an ECATT or call transaction on PP01.
You can also delete all the infotype using PP01, basically delete all the responsibility in 1 go if that is any use? Try all this in a test system first toget used to it though.
Regards,
Dave. -
Is there any function module for converting text to hyperlink?
Hello all,
I am designing an application in BSP wherein the user can enter hypertext values for some
of the data enteries in the database table. Is there any function module available for converting
text into hypertext. Eg. if the user enters 'www.mypersonalwp.com' then it should convert this
text value into a hyperlink.
Thanks in advance.
Gurmahima.Hi,
Refer the given below link
http://help.sap.com/saphelp_erp2004/helpdata/EN/85/ce25c2d7ae11d3b56d006094192fe3/content.htm
Hope it helps you
Thanks
Arun Kayal -
QM : is there any function module to find inspection lot characterstics
Hi All,
is there any function module to find all characterstics for an inspection lot.
i need exact data which qe51n transaction is fetching .
thanks in adv ,
VarmaHi uvs,
1. we can use the fm BAPI_INSPOPER_GETCHAR.
regards,
amit m. -
Is there any function module for getting distribution list name
Hi all,
Is there any function module for getting distribution list name when there is same description for two distribution list name.
or
help me how to fetch the correct distribution name when there is same description.
In order to send mails.
Tell me ASAP.
thanks
sagar.http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
list of Fms -
Is there any function module which will upload storage locations for a mat
Hi gurus,
Is there any function module or BAPI to extend the storage locations of material which is done through <b>MMSC</b> transaction. I need to write a program to upload new storage locations for some materials.Please advise.
Thanks ,
Sam.You can do this using the BAPI_MATERIAL_SAVEDATA
Regards,
Rich Heilman -
Any function module available for...
hi all,
i need a function module to do a goods receipt for the PO using
movement type 161,
movement ind B,
goodsmvt code '01'.
i couldnt able to post using BAPI_GOODSMVT_CREATE as iam getting
'NO GOODS RECEIPT POSSIBLE FOR PO XXXXXXXX XXXXX'.
So is there any function module other than bapi to do a goodsmvt with my requirements.
Thanks in advance,
Prem.hi,
the code i use is,
loop at gt_final into gs_wa_final.
gt_item-move_type = '161'.
gt_item-entry_uom = gs_wa_final-meins.
gt_item-stge_loc = gs_wa_final-lgort.
gt_item-entry_qnt = gs_wa_final-menge.
gt_item-entry_uom_iso = gs_wa_final-meins.
gt_header-ref_doc_no = gs_wa_final-submi.
gt_item-base_uom = gs_wa_final-meins.
gt_header-doc_date = gv_last_date.
gt_header-pstng_date = sy-datum.
gt_item-ind_propose_quanx = 'X'.
gt_item-serialno_auto_numberassignment = 'X'.
gt_item-material = gs_wa_final-matnr.
gt_item-plant = gs_wa_final-werks.
gt_item-po_number = gs_wa_final-ebeln.
gt_item-po_item = gs_wa_final-ebelp.
gt_item-mvt_ind = 'B'.
append gt_item.
clear gt_item.
*call bapi goodsmvt create to do the gr
set update task local.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gt_header
goodsmvt_code = gt_bapigm_code
importing
goodsmvt_headret = gs_headret
tables
goodsmvt_item = gt_item
goodsmvt_serialnumber = gt_serialno
return = gt_return.
call bapi_transaction_commit to commit if success
if gt_return-type <> 'E'.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
else.
call function 'BAPI_TRANSACTION_ROLLBACK'.
endif.
After executing iam getting an error mess in gt_return[]
'NO GOODS RECEIPT POSSIBLE FOR PO XXXXXXXXXX XXXXX'
i cant understand y the function module is returning this error message,
can any one help me in this issue,
Thanks in adavance,
Prem. -
Is there any function module for purchase order change
Hi Experts,
Is there any function module for purchase order change or i need to do new recording in me22n.
Thanks,
SenthilHi
Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
Regards,
Viven -
Hi is there any function module for radix conversion
Hi,
I need to convert number of base 36 to decimal number. Is there any function module for that.
i.e) z to 35
10 to 36
11 t0 37Hai,
This program perfectly converts a number from one number system to another number system.
REPORT Z_RADIX_CONVERSION.
PARAMETERS:
P_S_RAD(2) TYPE N, " Source Radix
P_D_RAD(2) TYPE N, " Destination Radix
P_S_NUM(5) TYPE C. " Source Number
*" Data declarations...................................................
Work variables *
DATA:
W_LEN TYPE I,
W_FACT TYPE I,
W_D_NUM(5) TYPE N,
W_T_LEN TYPE I,
W_NUM TYPE C,
W_NUM1 TYPE I,
W_REM TYPE I,
W_INDEX TYPE I VALUE 20,
W_T_NUM(30) TYPE C,
W_T_NUMBER(5) TYPE N.
IF P_S_RAD GE 1 AND
P_S_RAD LE 16 AND
P_D_RAD GE 1 AND
P_D_RAD LE 16.
IF P_S_RAD EQ 01 AND P_S_NUM CO '0 ' OR
P_S_RAD EQ 02 AND P_S_NUM CO '01 ' OR
P_S_RAD EQ 03 AND P_S_NUM CO '012 ' OR
P_S_RAD EQ 04 AND P_S_NUM CO '0123 ' OR
P_S_RAD EQ 05 AND P_S_NUM CO '01234 ' OR
P_S_RAD EQ 06 AND P_S_NUM CO '012345 ' OR
P_S_RAD EQ 07 AND P_S_NUM CO '0123456 ' OR
P_S_RAD EQ 08 AND P_S_NUM CO '01234567 ' OR
P_S_RAD EQ 09 AND P_S_NUM CO '012345678 ' OR
P_S_RAD EQ 10 AND P_S_NUM CO '0123456789 ' OR
P_S_RAD EQ 11 AND P_S_NUM CO '0123456789A ' OR
P_S_RAD EQ 12 AND P_S_NUM CO '0123456789AB ' OR
P_S_RAD EQ 13 AND P_S_NUM CO '0123456789ABC ' OR
P_S_RAD EQ 14 AND P_S_NUM CO '0123456789ABCD ' OR
P_S_RAD EQ 15 AND P_S_NUM CO '0123456789ABCDE ' OR
P_S_RAD EQ 16 AND P_S_NUM CO '00123456789ABCDEF ' .
W_LEN = STRLEN( P_S_NUM ).
W_T_LEN = W_LEN - 1.
DO W_LEN TIMES.
W_NUM = P_S_NUM+W_T_LEN(1).
CASE W_NUM.
WHEN 'A'.
W_NUM1 = 10.
WHEN 'B'.
W_NUM1 = 11.
WHEN 'C'.
W_NUM1 = 12.
WHEN 'D'.
W_NUM1 = 13.
WHEN 'E'.
W_NUM1 = 14.
WHEN 'F'.
W_NUM1 = 15.
WHEN OTHERS.
W_NUM1 = W_NUM.
ENDCASE.
W_D_NUM = W_D_NUM + W_NUM1 * ( P_S_RAD ** W_FACT ).
ADD 1 TO W_FACT.
SUBTRACT 1 FROM W_T_LEN.
ENDDO.
ELSE.
WRITE'Invalid Number'(003).
ENDIF.
ELSE.
WRITE'Enter radix between 1 and 16 '(002).
ENDIF.
W_T_NUMBER = W_D_NUM.
IF P_D_RAD = 1.
DO W_D_NUM TIMES.
WRITE'O'.
ENDDO.
ELSE.
WHILE W_T_NUMBER NE 0.
W_REM = W_T_NUMBER MOD P_D_RAD.
CASE W_REM.
WHEN 10.
W_T_NUM+W_INDEX(1) = 'A'.
WHEN 11.
W_T_NUM+W_INDEX(1) = 'B'.
WHEN 12.
W_T_NUM+W_INDEX(1) = 'C'.
WHEN 13.
W_T_NUM+W_INDEX(1) = 'D'.
WHEN 14.
W_T_NUM+W_INDEX(1) = 'E'.
WHEN 15.
W_T_NUM+W_INDEX(1) = 'F'.
WHEN OTHERS.
W_T_NUM+W_INDEX(1) = W_REM.
ENDCASE. " CASE W_REM.
SUBTRACT 1 FROM W_INDEX.
W_T_NUMBER = W_T_NUMBER DIV P_D_RAD.
ENDWHILE.
ENDIF.
WRITE:
/10 'The Equivallent number in Base'(001),
P_D_RAD,
'is',
W_T_NUM.
<b>Reward points if helpful .</b>
regards,
rama pammi -
Is there any function modules or BAPI's
Is there any function modules or BAPI's that would delete the original partner and then add a new partner.Iam using BAP
bapi_alm_notif_data_modify
But iam not able to change partner in notification header
Please give your input for sovling itDear Rama,
In the bapi_alm_notif_data_modify, there are 2 structure
NOTIFPARTNR STRUCTURE BAPI2080_NOTPARTNRI OPTIONAL
NOTIFPARTNR_X STRUCTURE BAPI2080_NOTPARTNRI_X OPTIONAL
Pass yr partner value in NOTIFPARTNR, and against the value make it "X" in the NOTIFPARTNR_X , then u can change the partner value.
Give point if helpfull
Thanks -
Is there any function module to give absolute value of a number?
Hi,
Is there any function module to give absolute value of a number?
That has similar functionality to the Built in Function ABS.
Please let me know.
Thanks,
cshi,
why are you looking for any function module.
You can easily get it by mathematical function ABS .
Syntax : <Turget Variable> = ABS <Source Variable>
\[removed by moderator\]
Anirban Bhattacharjee
Edited by: Jan Stallkamp on Jun 27, 2008 4:19 PM -
Is there any function module to convert the date format
Dear ABAPers,
Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.
I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.
Thanks & Regards,
Ashok.hi,
create custom function module or copy the below code in the report ..and use it
the out put for below is :----Convert a DATE field into a full format date eg. March 23, 2000
FUNCTION Z_CONVERT_DATE_INTO_FULL_DATE.
""Local interface:
*" IMPORTING
*" VALUE(DATE) LIKE SY-DATUM
*" EXPORTING
*" VALUE(FORMATTED_DATE)
*" EXCEPTIONS
*" INVALID_DATE
TABLES: TTDTG.
DATA: BEGIN OF T_DATE,
YYYY(4) TYPE C,
MM(2) TYPE C,
DD(2) TYPE C,
END OF T_DATE.
DATA: DAY(3) TYPE N.
DATA: VARNAME LIKE TTDTG-VARNAME.
IF DATE IS INITIAL.
CLEAR FORMATTED_DATE.
EXIT.
ENDIF.
check document date format
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
EXPORTING
DATE = DATE
EXCEPTIONS
PLAUSIBILITY_CHECK_FAILED = 1.
IF SY-SUBRC NE 0.
RAISE INVALID_DATE.
ENDIF.
MOVE DATE TO T_DATE.
CONCATENATE '%%SAPSCRIPT_MMM_' T_DATE-MM INTO VARNAME.
SELECT SINGLE * FROM TTDTG WHERE SPRAS = 'EN' AND VARNAME = VARNAME.
WRITE T_DATE-DD TO DAY.
CONCATENATE DAY ',' INTO DAY.
CONCATENATE TTDTG-VARVALUE DAY T_DATE-YYYY INTO FORMATTED_DATE
SEPARATED BY SPACE.
ENDFUNCTION.
the output is :--Convert a DATE field into a full format date eg. March 23, 2000
Regards,
Prabhudas -
Is there any function module? Fiscal week no problem
Hi friends,
I want how to get physical week for given date.
Ie for 01-04-2009 week no is 1.
Is there any function module?
Pls suggest
Regards
MoosaHi,
Use the below code.
DATA: v_ersda TYPE sy-datum VALUE '20090618'.
DATA: v_month(2) TYPE c,
v_week(2) TYPE c,
v_full_week LIKE scal-week.
MOVE v_ersda+4(2) TO v_month.
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING
date = v_ersda
IMPORTING
week = v_full_week
EXCEPTIONS
date_invalid = 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.
MOVE v_full_week+4(2) TO v_week.
WRITE:/5 'Month = ', v_month.
WRITE:/5 'Week = ', v_week.
Regards,
Kumar Bandanadham -
Is there any function module that brings out profile planner
Hello experts,
Is there any function module that brings out profile planner (I want to set planner profile as u201CSAP800u201D. I am using 7KE1 transaction.
Example: I know, the FM - K_KOKRS_SET_BATCHINPUT will set the controlling area to 'CTIC' for the entire batch input process.
Thanks in advance.look at these fms..
CACS_PROFILE_PARTNER_READ
CACS_PROFILE_SHOW
Maybe you are looking for
-
I am unable to import Raw files taken with my new camera Canon SX60HS.
I am running Elements 12, I have just downloaded and installed Adobe Camera Raw v 8.7.1 as it indicates that it supports raw files taken with this camera model. I continue to get the error that nothing imported as it did not contain supported file t
-
External display lost after resume from sleep on Macbook 4,1
Hi, I'm connecting an external display (with a max res of 1920x1080) on a Macbook 4,1 early 2008 (graphics : Intel GMA X3100) with OS X 10.5.8. It's connected with an official Apple MiniDVI>DVI converter and a DVI cable. I had to reset the PRAM and
-
Where can I find the app upgrade feature in genius???
Please see the screen shot above. This was from an article dated 2010 when genius first came out. It stated that genius had a feature that would let you know what apps that you had installed on an iphone could be upgraded to the app made for ipad. Ha
-
Purchase groups question org-structure
Hi All, One of our buyer left the company and now we want to remove him from the drop-down list of the purchase groups which one gets in SC basic data tab. For this, I was trying to remove the flag for this buyer as pur.grp in PPOMA_BBP, but before I
-
Why, with all the technology Verizon so proudly touts in all its commercials, can we not find out our local calling area on the web site? Instead, we're directed to go look it up in the paper phone book. Give me a break. It's all stored away in a dat