Z Report of Transaction ME28.(Release Purchase Order)
Dear all,
I want to make Z Report for the Transaction ME28 (Release Purchase Order).
I am facing problem of GUI status in my Z Report. Actually Report is not displaying like ME28.
and all the menu and function keys are also not coming properly.
So, pls suggest me good solution.
Thanks & Regards,
Sandip Sonar.
I am attaching a copy of ME28. Please give it to your ABAP consultant.
He should be able to do the needful:
REPORT RM06EF00 NO STANDARD PAGE HEADING MESSAGE-ID ME.
Anzeigen Einkaufsbelege zur Belegnummer *
Tabellen *
INCLUDE FM06LTO1.
INCLUDE FM06LCFR.
**table added t16fc - SAPBY 6 Feb 98
TABLES: T16FG, T16FS, T16FV, T16FE, RM06B, T160B, T16FC.
DATA: BEGIN OF XEKPO OCCURS 100.
INCLUDE STRUCTURE EKPO.
DATA: END OF XEKPO.
*- Interne Tabelle der Zustände -
DATA: BEGIN OF ZUS OCCURS 10.
INCLUDE STRUCTURE T16FV.
DATA: END OF ZUS.
DATA: BEGIN OF ZUSKEY,
MANDT LIKE EKKO-MANDT,
FRGGR LIKE EKKO-FRGGR,
FRGSX LIKE EKKO-FRGSX,
END OF ZUSKEY.
Parameter und Select-Options *
PARAMETERS: P_FRGCO LIKE T16FC-FRGCO OBLIGATORY.
SELECT-OPTIONS: S_FRGGR FOR EKKO-FRGGR.
PARAMETERS: P_FRGSE LIKE RM06A-P_FRGSE DEFAULT 'X',
P_FRGRS LIKE RM06A-P_FRGRS,
P_FRGVO LIKE RM06A-P_FRGVO DEFAULT 'X',
set default to 'X' to show items as well - SAPBY
P_MITPOS AS CHECKBOX DEFAULT 'X',
set default to 'DEFAULT' - SAPBY
LISTU LIKE T160O-LISTU DEFAULT 'DEFAULT'.
SELECT-OPTIONS: S_BSTYP FOR EKKO-BSTYP,
S_EKORG FOR EKKO-EKORG,
S_EBELN FOR EKKO-EBELN MATCHCODE OBJECT MEKK
MEMORY ID BES,
S_BSART FOR EKKO-BSART,
S_EKGRP FOR EKKO-EKGRP,
S_LIFNR FOR EKKO-LIFNR MATCHCODE OBJECT KRED,
S_RESWK FOR EKKO-RESWK,
S_BEDAT FOR EKKO-BEDAT.
Hilfsfelder *
INCLUDE FM06LCEK.
DATA: XFRG1 LIKE EKKO-FRGZU,
XFRG2 LIKE EKKO-FRGZU.
DATA: XSELKB LIKE EKKO-BSTYP,
XSELKK LIKE EKKO-BSTYP,
XSELKL LIKE EKKO-BSTYP,
XSELKA LIKE EKKO-BSTYP.
FIELD-SYMBOLS: .
DATA: HFDPOS LIKE SY-FDPOS.
**workflow line added for workflow
DATA : LAST_USER_COMMAND LIKE SY-UCOMM.
Intitialisierung *
INITIALIZATION.
PERFORM ANFORDERUNGSBILD(SAPFM06L) USING XSELKB XSELKK
XSELKL XSELKA.
lines 67, 70 and 73 commented out -SAPBY
**listu = t160b-listu.
S_BSTYP-SIGN = 'I'.
S_BSTYP-OPTION = 'EQ'.
**if xselkb ne space.
S_BSTYP-LOW = 'F'.
APPEND S_BSTYP.
**endif.
IF XSELKK NE SPACE.
S_BSTYP-LOW = 'K'.
APPEND S_BSTYP.
ENDIF.
IF XSELKL NE SPACE.
S_BSTYP-LOW = 'L'.
APPEND S_BSTYP.
ENDIF.
IF XSELKA NE SPACE.
S_BSTYP-LOW = 'A'.
APPEND S_BSTYP.
ENDIF.
next two lines added to default the release code
IMPORT T16FC-FRGCO FROM MEMORY.
get parameter id 'ZRC' field t16fc-frgco.
P_FRGCO = T16FC-FRGCO.
Seketionsbild *
AT SELECTION-SCREEN ON LISTU.
PERFORM LISTUMFANG(SAPFM06L) USING LISTU.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FRGCO.
CALL FUNCTION 'HELP_VALUES_FRGAB'
EXPORTING
I_FRGOT = '2'
IMPORTING
E_FRGAB = P_FRGCO
EXCEPTIONS
OTHERS = 1.
AT SELECTION-SCREEN.
CALL FUNCTION 'ME_REL_CHECK_MANY'
EXPORTING
I_FRGOT = '2'
I_FRGCO = P_FRGCO
TABLES
T_FRGGR = S_FRGGR
T_T16FV = ZUS.
Beginn der Selektion *
START-OF-SELECTION.
NOT_FOUND = 'X'.
SET PF-STATUS 'FREI'.
SET TITLEBAR '001' WITH P_FRGCO.
PERFORM FRG_INIT(SAPFM06L) USING P_FRGCO P_MITPOS.
*- Lesen Belegköpfe -
SELECT * FROM EKKO APPENDING TABLE XEKKO
FOR ALL ENTRIES IN ZUS
WHERE FRGRL EQ 'X'
AND FRGGR EQ ZUS-FRGGR
AND FRGSX EQ ZUS-FRGSX
AND EBELN IN S_EBELN
AND BSTYP IN S_BSTYP
AND EKORG IN S_EKORG
AND LIFNR IN S_LIFNR
AND RESWK IN S_RESWK
AND BEDAT IN S_BEDAT
AND BSART IN S_BSART
AND EKGRP IN S_EKGRP
AND LOEKZ EQ SPACE.
IF P_FRGRS NE SPACE.
SELECT * FROM EKKO APPENDING TABLE XEKKO
FOR ALL ENTRIES IN ZUS
WHERE FRGRL EQ SPACE
AND FRGGR EQ ZUS-FRGGR
AND FRGSX EQ ZUS-FRGSX
AND EBELN IN S_EBELN
AND BSTYP IN S_BSTYP
AND EKORG IN S_EKORG
AND LIFNR IN S_LIFNR
AND RESWK IN S_RESWK
AND BEDAT IN S_BEDAT
AND BSART IN S_BSART
AND EKGRP IN S_EKGRP
AND LOEKZ EQ SPACE.
ENDIF.
SORT XEKKO.
*- Prüfen Freigabevoraussetzungen -
LOOP AT XEKKO.
MOVE-CORRESPONDING XEKKO TO ZUSKEY.
READ TABLE ZUS WITH KEY ZUSKEY BINARY SEARCH.
CHECK SY-SUBRC EQ 0.
XFRG1 = ZUS+9(8).
XFRG2 = XEKKO-FRGZU.
TRANSLATE XFRG2 USING 'X +'.
OVERLAY XFRG1 WITH XFRG2 ONLY '+'.
SEARCH XFRG1 FOR 'X'.
*---- Keine Freigabezuständigkeit -
IF SY-SUBRC NE 0.
DELETE XEKKO.
ELSE.
*---- Freigabestelle merken -
HFDPOS = SY-FDPOS.
ASSIGN XFRG2+SY-FDPOS(1) TO .
*---- Freigabe bereits erfolgt -
IF P_FRGRS EQ SPACE AND
EQ SPACE.
DELETE XEKKO.
ELSE.
*---- Freigabe noch nicht erfolgt -
IF P_FRGSE EQ SPACE AND
NE SPACE.
DELETE XEKKO.
ELSE.
*---- Freigabevoraussetzung fehlt -
IF XFRG1 CA '+' AND
P_FRGVO NE SPACE.
DELETE XEKKO.
ELSE.
EKKO = XEKKO.
PERFORM FRG_FEKKO_AUFBAUEN(SAPFM06L) USING HFDPOS.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
SORT XEKKO.
*- Lesen Belegpositionen -
IF P_MITPOS NE SPACE.
SELECT * FROM EKPO APPENDING TABLE XEKPO
FOR ALL ENTRIES IN XEKKO
WHERE EBELN EQ XEKKO-EBELN.
ENDIF.
*- Ausgabe -
LOOP AT XEKKO.
EKKO = XEKKO.
PERFORM EKKO_ANSCHRIFT(SAPFM06L).
PERFORM EKKO_AUSGABE(SAPFM06L).
IF P_MITPOS NE SPACE.
LOOP AT XEKPO WHERE EBELN EQ EKKO-EBELN.
EKPO = XEKPO.
PERFORM FC_ME_READ_HISTORY(SAPFM06L).
PERFORM EKPO_AUSGABE(SAPFM06L).
ENDLOOP.
ENDIF.
ENDLOOP.
Ende der Selektion *
END-OF-SELECTION.
IF NOT_FOUND NE SPACE.
MESSAGE S260.
IF SY-CALLD NE SPACE.
LEAVE.
ELSE.
LEAVE TO TRANSACTION SY-TCODE.
ENDIF.
ENDIF.
WRITE: /(81) SY-ULINE.
OK-Code-Eingabe *
AT USER-COMMAND.
**workflow inserted 6 Feb 98 by SAPBY
PERFORM WORKFLOW_AT_USER_COMMAND.
INS GSB 18/02/2004 - check user approving is not user that create
PO
if sy-ucomm = 'FRGU' or sy-ucomm = 'FRGS'.
loop at xekko.
if xekko-ERNAM = sy-uname.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
TITEL = 'Error'
TEXTLINE1 = 'As the creator of this pruchase order you cannot approve it
as well !'
leave program.
endif.
endloop.
endif.
PERFORM USER_COMMAND(SAPFM06L).
Seitenueberschrift *
TOP-OF-PAGE.
PERFORM TOP(SAPFM06L).
TOP-OF-PAGE DURING LINE-SELECTION.
PERFORM TOP(SAPFM06L).
**& form workflow_at_user_command
TEXT
---> p1 text
<-- p2 text
FORM WORKFLOW_AT_USER_COMMAND.
IF LAST_USER_COMMAND IS INITIAL.
LAST_USER_COMMAND = SY-UCOMM.
ENDIF.
IF SY-UCOMM EQ 'ZURU'.
PERFORM TRIGGER_WORKFLOW.
ENDIF.
CASE SY-UCOMM.
WHEN 'BU'.
IF P_MITPOS EQ 'X'.
CHECK LAST_USER_COMMAND <> 'FRGR'.
PERFORM TRIGGER_WORKFLOW.
ELSE.
CHECK LAST_USER_COMMAND = 'FRGS'.
PERFORM TRIGGER_WORKFLOW.
ENDIF.
WHEN 'FRGU'.
PERFORM TRIGGER_WORKFLOW.
ENDCASE.
LAST_USER_COMMAND = SY-UCOMM.
ENDFORM.
**& form TRIGGER_WORKFLOW.
TEXT
---> p1 text
<-- p2 text
FORM TRIGGER_WORKFLOW.
DATA : BEGIN OF ZEKKO OCCURS 20.
INCLUDE STRUCTURE ZEKKO.
DATA : END OF ZEKKO.
DATA : BEGIN OF YEKKO OCCURS 20.
INCLUDE STRUCTURE ZEKKO.
DATA : END OF YEKKO.
DATA : WFBAN LIKE EKKO-EBELN,
WFERN LIKE EKKO-ERNAM.
CLEAR : WFBAN, WFERN.
MOVE-CORRESPONDING XEKKO TO YEKKO.
CONCATENATE YEKKO-FRGZU 'X' INTO YEKKO-FRGZU.
APPEND YEKKO.
MOVE-CORRESPONDING XEKKO TO ZEKKO.
*XEKKO-KZ = 'F'.
APPEND ZEKKO.
SELECT SINGLE KOKRS KOSTL
INTO (EKKN-KOKRS, EKKN-KOSTL)
FROM EKKN
WHERE EBELN = XEKKO-EBELN
AND EBELP = '00010'.
if sy-subrc <> 0. " Cost centres not mandatory at XXX
exit.
endif.
CALL FUNCTION 'Z_ME_REL_EVENT_EKKO'
EXPORTING
I_CALL_UPDKZ = 'F'
I_WFBAN = EKKO-EBELN
I_FRGCO = T16FC-FRGCO
I_ERNAM = SY-UNAME
I_UCOMM = SY-UCOMM
TABLES
I_EKKO_NEW = YEKKO
I_EKKO_OLD = ZEKKO.
ENDFORM.
Similar Messages
-
Issue with ME28 - Release Purchase Order
Dear All,
One of our user is unable to release a purchase order through Transaction code ME28.
The role is assigned only with the Transaction Code ME28 with the correct Release code and Group.
We have tested from our end and see that the Auth Objects M_BEST_BSA and M_BEST_EKO are missing based on SU53. When we have added back it worked.
When i check in Su24 the Auth Obj M_BEST_BSA and M_BEST_EKO are not set to CHECK -> Value "NO".
I dont understand how this Transaction is working, when the behaviour of the Transaction ME28 is to release the purchase order why is the system asking for additional Auth Objects.
please advice.
RegardsHi
M_BEST_BSA and M_BEST_EKO are not set to CHECK -> Value "NO".
If the check is not set to the standard delivered SAP what is the value in SU24 ? Has it been changed to CHECK > YES or DO NOT CHECK ?
I am sure you are aware that SAP does not deliver all objects coded in the programme under AUTHORITY-CHECK Statement in the SU24 Indicators with a CHECK > YES that are in transaction ME28. SAP only deliver a fraction of the values in the proposal as YES and the rest must be maintianed by the security team as they are discovered to be relevant to your organisations need of the particular functions within the transaction.This will then keep PFCG updated with all the CHECK YES objects the next time you add transaction ME28.
In other words all the objects listed in SU24 ( that are CHECK ) for ME28 will all be coded in the programme somewhere but it depends on which bits of the functionality within ME28 you are using that determines if they are called. -
Report for released purchase order
Hai guru's
this is second time but i did't get any good replay please consider this, i want any standard report for released purchase order,means(i released two backdated po today next day i verify the report ME2n,those po are not display, the system take only document date not released date, now i am using CDHDR through this i got the report. but it is big process, so once check this and send your valuable solution.
PrasadHi Krishna,
You could use Me2N with the dynamic selection coupled with normal selection screen.
In Dynamic selection(3rd icon in screen).....you can select for which company code, release indicator as released....and save it as default variant.
hope this should solve your query
Sk. -
Error release purchase order using transaction code me29n
i have warning error this purchasing document number cannot be released.
while i enter me29n t code.why?
then how to release purchase order using me29n t code?
can anyone answer this two questions.hi
i have warning error this purchasing document number cannot be released. while i enter me29n t code.why?
is the release strategy is triggred for the po ?? check thisin P order in me23n ,in header level check release strategy tab ,
then how to release purchase order using me29n t code? can anyone answer this two questions.
just go to me29n >release strategy tab here just click on the release button in front of the release code -
Unprinted released purchase orders
Hello forum,
Is there any way from standard SAP (report) to watch, which purchase orders are released but they are NOT printed ?
Thanks in advance.Hi Stratos,
You can achieve this through Standard SAP. I am assuming that you have the print output, not set, as "send immediately when saving the application"
Please provide the list of P.O's which you are investigating in ME9F, provide the application as EF and Processing Status as 0 (Not processed)
This way, you will get the whole list of P.O's which have not been printed out, please note that outputs can only be processed on successfully released Purchase Orders.
Regards
Shailesh -
Fast entry transaction for entering purchase order confirmations
Does anyone know of fast entry transaction for entering purchase order confirmations similar to VL31N for inbound deliveries?
Thanksdear John,
if i m not mistaken you want to give confirmation control to your existing POs.
If the case is this you can opt for a BDC to be run for updation.
Ask your abaper to do this thing.
revert back if this is not the the case.
Njoy
Ashish -
Is ther any std report to know the overdue purchase order?
Hi,
Is ther any std report to know the overdue purchase order based on the delivery date.
regards,
vimalhi,
I don't think there is any report for your requirement...Pls contact ABAPer for the requirement...and refer the following reports and tables:
reports: ME2N/ME2M/ME2L
tables : EKET: delivery schedules for PO...
Regards
Priyanka.P -
Need Message On change of Released Purchase order
Hi
I need to display message On Edit of released purchase order through ME22N or on click of edit in ME23N
Kindly suggest exits for the same.Hi Arun,
Create implementation for BADI: ME_PROCESS_PO_CUST. In this get the release status of PO and raise a message.
Regards,
Vijay -
Report of Released Purchase Orders
I am looking for a report that will give me all purchase orders that was released, and the person that released it.
Thank you.Go to "ME2C" (List Display of Purchasing Documents for Material Group). Press "Shift + F4" (show dynamic selections). Open folder "Purchasing Document Header". Scroll to item "Release indicator" and double-click on the item. The item will appear on the right and can now be used as selection criteria in the list display.
Alternatively
You may use 'ME28' to display and consequently release PO's that are subject for release. You need to indicate a particular release code and release group. Once this is executed, all PO's that are still pending for release by that release code will be displayed -
Transaction ME23N; Create purchase order- Account assignment tab
Hello , do you know in which table the info for account assignment for a purchase order is kept?
e.g just like EKBE is used for Purchase order history.
thx.Table Description u2013 All Tables: Purchasing
EBAN Purchase Requisition
EBKN Purchase Requisition Account Assignment
EBUB Index for Stock Transport Requisitions for Materi
EINA Purchasing Info Record: General Data
EINE Purchasing Info Record: Purchasing Organization D
EIPA Order Price History: Info Record
EKAB Release Documentation
EKAN Vendor Address: Purchasing Document
EKBE History per Purchasing Document
EKBEH Removed PO History Records
EKBZ History per Purchasing Document: Delivery Costs
EKBZH History per Purchasing Document: Delivery Costs
EKEH Scheduling Agreement Release Documentation
EKEK Header Data for Scheduling Agreement Releases
EKES Vendor Confirmations
EKET Scheduling Agreement Schedule Lines
EKETH Scheduling Agreement Schedules: History Tables
EKKI Purchasing Condition Index
EKKN Account Assignment in Purchasing Document
EKKO Purchasing Document Header
EKPA Partner Roles in Purchasing
EKPB "Material Provided" Item in Purchasing Document
EKPO Purchasing Document Item
EKPV Shipping Specific Data on Stock Tfr. for Purch. D
EKRS ERS Procedure: Goods (Merchandise) Movements to b
EKUB Index for Stock Transport Orders for Material
EORD Purchasing Source List
EQUK Quota File: Header
EQUP Quota File: Item
T- Tables
T024 Purchasing Groups
T024E Purchasing Organizations
T024W Valid Purchasing Organizations for Plant
T024Z Purchasing Organizations
T027A Shipping Instructions, Purchasing
T027B Texts: Shipping Instructions
T027C Codes for Compliance with Shipping Instructions
T027D Compliance with Shipping Instructions: Texts
T069 Certificate Categories
T069Q Control Data for Source Determination and Checkin
T069T Certificate Categories: Text Description
T160 SAP Transaction Control, Purchasing
T160B SAP Transaction Control, List Displays, Purchasin
T160C SAP Transaction Control for List Displays in CALL
T160D Function Authorizations: Purchase Order
T160E Function Authorizations: Purchasing: Descriptions
T160I Control of Intrastat Reports
T160J Text Table for Intrastat Reports
T160L Scope of Purchasing Lists
T160M Message Control: Purchasing (System Messages)
T160O Description of Scope of List
T160P Entities Table Routines
T160Q Scope of List: Buyeru2019s Negotiation Sheet: Routine
T160R Routines for Buyeru2019s Negotiation Sheet
T160S Selection Parameters for Purchasing Lists
T160T Description of Selection Parameters
T160V Default Values for Purchasing
T160W Description for Default Values for Purchasing Ope
T160X Scope of List: Buyeru2019s Negotiation Sheet
T160Y Scope of List: Buyeru2019s Negotiation Sheet: Descrip
T161 Purchasing Document Types
T161A Linkage of Requisition Doc. Type to Purchasing Do
T161B Default Business Transaction Type for Import
T161E Release Codes
T161F Release Point Assignment for Purchase Requisition
T161G Release Prerequisite, Purchase Requisition
T161H Fields for Release Procedure, Purchase Requisitio
T161I Determination of Release Strategy
T161M FineTuned Control: Message Types
T161N Message Determination Schemas: Assignment
T161P Check of Document Type, Document Category, Item C
T161R REORG Control, Purchasing
T161S Release Indicator, Purchase Requisition
T161T Texts for Purchasing Document Types
T161U Texts for Release Indicator
T161V Shipping Specific Data for Stock Tfr. for Purch.
T161W Order Types for Stock Transfer
T161Z Additional Checks for Outline Agreements on Reorg
T162 Field Selection, Purchasing Document
T162K Field Selection, Account Assignment Fields, Purch
T162T Description of Field Selection Reference Key
T162X Description of Field Groups from T162/T162K
T162Y Groups: Field Selection
T163 Item Categories in Purchasing Document
T163A Check Item Category/Account Assignment Category
T163B Purchase Order History Categories
T163C Texts for Purchase Order History Categories
T163D Assignment Internal/External Confirmation Categor
T163E Confirmation Categories
T163F Confirmation Categories: Descriptions
T163G Confirmation Control
T163I Texts for Account Assignment Categories
T163K Account Assignment Categories in Purchasing Docum
T163KS Assignment of Tax Indicator to Account Assignment
T163L Confirmation Control Keys
T163M Confirmation Control Keys: Description
T163P Release Creation Profile
T163S Description for Release Creation Profile
T163X "Zombie" T163X
T163Y Texts for Item Categories
T165K Copying Options: Header Texts
T165P Copying Options: Item texts
T166A Supplement Text in Purchasing Document Printouts
T166C Print Relevant Purchasing Document Changes
T166K Header Texts in Purchasing Document Printouts
T166P Item Texts in Purchasing Document Printouts
T166T Change Texts in Purchasing Document Printouts
T166U Headings in Purchasing Document Printout
T167 Number Range Management for Purchasing Master Dat
T167T Transaction Description
T168 Screen Control, Purchasing
T168F Function Codes, Purchasing
T168T Screen Titles
T16FB Release Indicators: Purchasing Document
T16FC Release Codes
T16FD Description of Release Codes
T16FE Descriptions of Release Indicators: Purchasing Do
T16FG Release Groups
T16FH Descriptions of Release Groups
T16FK Release Statuses
T16FS Release Strategies -
Hello, everybody, help me with quota arragement and release Purchase Order
Hello everybody:
When maintain Quota arrangement today, a warning message poped up saying Quota arrangement for Material X10002 in plant 1855 not active. but X10002 does exist, I can maitnain it with MM02.
Why this happened? everyone.
what's more, all purchase order can not be released with me29n , but ok with me28. why is it so ? thank you in advance, everybody. couldn't thank you more.Hi,
Regarding your 2 nd Query.
ME29N - Indidual Release
Suppose when my PO is subjected to three release code, this transaction gives me an option to release the three levels altogether by the highest level ( ie the three level release will be able to perform the release if R1 and R2 have not released )
ME28 - Collective Release.
This needs to be released by inidviuals using their release code independently thereby the release is possible only with the three levels releases the same.
The names given to transaction codes is a little bit confusing unless until you are clear about the fucntionality.
Regards,
DilliB -
Report for advance payment relevant purchase order
Dear Sapgurus,
Logistics people raise one purchase order and release procedure also from logistic teqm onlly after we need approval from finance head we had created one more release finance procedure how they will identify these are purchase order i have to pay advance payment is their any report can u please tell me.
Regards
UmiAmit kulkarni,
For this requirement you have to do validation of the amount field for advance payment againest PO.
i thiought this is only way to get your requirement
May be this information is useful to you
Regards
Surya -
Standard Report or Transaction for Outstanding Purchased Materials?
Hello,
Is there a report or transaction that could be used to see a list of all pending purchased material requirements with requirement date?
So, pending Purchase Requisitions and Purchase Orders with a required delivery date? We want to create shortage lists for manufacturing.
(think like COOIS where you can see planned and production orders, but for purchased parts)
Thanks very much,
TimothyHi Ramagiri,
Thanks so much for your help. These are the two transactions I was trying to use... unfortunately I ran into a couple of problems...
I tried selecting only specific WBS elements in ME2L using the dynamic selection, and it didn't return any documents (I know this is incorrect)... so I ran it without the dynamic selection and just applied a filter, which is ok.
However, I can't find the MRP requirement date anywhere in this report, which is the main point - we are trying to find PO's that are later than MRP requirements. I can see the delivery date only if I open each PO from the results of ME2L search. Did I explain that problem ok?
Thanks again,
Timothy -
Standard report - Gross Weight sum by Purchase Order document
Hello,
Is there a standard SAP report that will give me the total Gross Weight for a Purchase Order?
I can find this information by going to SE16 - table EKPO - and doing a sum of Gross Weight (field BRGEW). However, I'm looking for a standard report that will give me this information as the user does not have SE16 access.
Any help would be greatly appreciated.Thank you for the information, however, I cannot specify a specific Purchasing Document in that transaction, nor does the transaction tell me what specific PO the weight is tied to.
-
Interactive alv report with migo miro and purchase order
hi all
to make my alv interactive i put the following code....
i dont know whether it is correct or not coz i hav not done alv before
FORM display.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
is_layout = wa_layout
I_CALLBACK_USER_COMMAND = 'HANDLE_USER_COMMAND'
it_fieldcat = it_fieldcat
TABLES
t_outtab = itab.
ENDFORM. "DISPLAY
FORM HANDLE_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
IF RS_SELFIELD-FIELDNAME = 'EBELN'.
READ TABLE ITAB INDEX RS_SELFIELD-TABINDEX.
SET PARAMETER ID 'ITAB-EBELN' FIELD ITAB-EBELN.
call transaction 'ME23N' AND SKIP FIRST SCREEN.
CLEAR RS_SELFIELD.
ENDIF.
ENDCASE.
ENDFORM. "HANDLE_USER_COMMAND
this code is working
but i hav some problems
when ever i double click on PO number
1. it always opne the last PO number of the my alv list
2. I want to open the migo with migo number when i double clik on the migo number
3. and same for the MIRO
plz help its very urgent...
points wil b rewarded.Hi,
Following report will explains how to do interactive list in alv report regarding purchase order. Kindly go through that one.
REPORT YMS_ALVINTERSAMPLE NO STANDARD PAGE HEADING LINE-SIZE 650
MESSAGE-ID ZZ_9838.
TYPE-POOLS: SLIS.
*type declaration for values from ekko
TYPES: BEGIN OF I_EKKO,
EBELN LIKE EKKO-EBELN,
AEDAT LIKE EKKO-AEDAT,
BUKRS LIKE EKKO-BUKRS,
BSART LIKE EKKO-BSART,
LIFNR LIKE EKKO-LIFNR,
END OF I_EKKO.
DATA: IT_EKKO TYPE STANDARD TABLE OF I_EKKO INITIAL SIZE 0,
WA_EKKO TYPE I_EKKO.
*type declaration for values from ekpo
TYPES: BEGIN OF I_EKPO,
EBELN LIKE EKPO-EBELN,
EBELP LIKE EKPO-EBELP,
MATNR LIKE EKPO-MATNR,
MENGE LIKE EKPO-MENGE,
MEINS LIKE EKPO-MEINS,
NETPR LIKE EKPO-NETPR,
END OF I_EKPO.
DATA: IT_EKPO TYPE STANDARD TABLE OF I_EKPO INITIAL SIZE 0,
WA_EKPO TYPE I_EKPO .
*variable for Report ID
DATA: V_REPID LIKE SY-REPID .
*declaration for fieldcatalog
DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
DATA: IT_LISTHEADER TYPE SLIS_T_LISTHEADER.
declaration for events table where user comand or set PF status will
be defined
DATA: V_EVENTS TYPE SLIS_T_EVENT,
WA_EVENT TYPE SLIS_ALV_EVENT.
declartion for layout
DATA: ALV_LAYOUT TYPE SLIS_LAYOUT_ALV.
declaration for variant(type of display we want)
DATA: I_VARIANT TYPE DISVARIANT,
I_VARIANT1 TYPE DISVARIANT,
I_SAVE(1) TYPE C.
*PARAMETERS : p_var TYPE disvariant-variant.
*Title displayed when the alv list is displayed
DATA: I_TITLE_EKKO TYPE LVC_TITLE VALUE 'FIRST LIST DISPLAYED'.
DATA: I_TITLE_EKPO TYPE LVC_TITLE VALUE 'SECONDRY LIST DISPLAYED'.
INITIALIZATION.
V_REPID = SY-REPID.
PERFORM BUILD_FIELDCATLOG.
PERFORM EVENT_CALL.
PERFORM POPULATE_EVENT.
START-OF-SELECTION.
PERFORM DATA_RETRIEVAL.
PERFORM BUILD_LISTHEADER USING IT_LISTHEADER.
PERFORM DISPLAY_ALV_REPORT.
*& Form BUILD_FIELDCATLOG
Fieldcatalog has all the field details from ekko
FORM BUILD_FIELDCATLOG.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'EBELN'.
WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'AEDAT'.
WA_FIELDCAT-SELTEXT_M = 'DATE.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'BUKRS'.
WA_FIELDCAT-SELTEXT_M = 'COMPANY CODE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'BUKRS'.
WA_FIELDCAT-SELTEXT_M = 'DOCMENT TYPE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKKO'.
WA_FIELDCAT-FIELDNAME = 'LIFNR'.
WA_FIELDCAT-NO_OUT = 'X'.
WA_FIELDCAT-SELTEXT_M = 'VENDOR CODE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. "BUILD_FIELDCATLOG
*& Form EVENT_CALL
we get all events - TOP OF PAGE or USER COMMAND in table v_events
FORM EVENT_CALL.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS
EXCEPTIONS
LIST_TYPE_WRONG = 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.
ENDFORM. "EVENT_CALL
*& Form POPULATE_EVENT
Events populated for TOP OF PAGE & USER COMAND
FORM POPULATE_EVENT.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'TOP_OF_PAGE'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-FORM.
ENDIF.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'USER_COMMAND'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
ENDIF.
ENDFORM. "POPULATE_EVENT
*& Form data_retrieval
retreiving values from the database table ekko
FORM DATA_RETRIEVAL.
SELECT EBELN AEDAT BUKRS BSART LIFNR FROM EKKO INTO TABLE IT_EKKO.
ENDFORM. "data_retrieval
*& Form bUild_listheader
text
-->I_LISTHEADEtext
FORM BUILD_LISTHEADER USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
DATA HLINE TYPE SLIS_LISTHEADER.
HLINE-INFO = 'this is my first alv pgm'.
HLINE-TYP = 'H'.
ENDFORM. "build_listheader
*& Form display_alv_report
text
FORM DISPLAY_ALV_REPORT.
V_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_GRID_TITLE = I_TITLE_EKKO
I_GRID_SETTINGS =
IS_LAYOUT = ALV_LAYOUT
IT_FIELDCAT = I_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
i_default = 'ZLAY1'
I_SAVE = 'A'
is_variant = i_variant
IT_EVENTS = V_EVENTS
TABLES
T_OUTTAB = IT_EKKO
EXCEPTIONS
PROGRAM_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.
ENDFORM. "display_alv_report
*& Form TOP_OF_PAGE
text
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LISTHEADER
i_logo =
I_END_OF_LIST_GRID =
ENDFORM. "TOP_OF_PAGE
*& Form USER_COMMAND
text
-->R_UCOMM text
-->, text
-->RS_SLEFIELDtext
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
READ TABLE IT_EKKO INTO WA_EKKO INDEX RS_SELFIELD-TABINDEX.
PERFORM BUILD_FIELDCATLOG_EKPO.
PERFORM EVENT_CALL_EKPO.
PERFORM POPULATE_EVENT_EKPO.
PERFORM DATA_RETRIEVAL_EKPO.
PERFORM BUILD_LISTHEADER_EKPO USING IT_LISTHEADER.
PERFORM DISPLAY_ALV_EKPO.
ENDCASE.
ENDFORM. "user_command
*& Form BUILD_FIELDCATLOG_EKPO
text
FORM BUILD_FIELDCATLOG_EKPO.
WA_FIELDCAT-TABNAME = 'IT_EKPO'.
WA_FIELDCAT-FIELDNAME = 'EBELN'.
WA_FIELDCAT-SELTEXT_M = 'PO NO.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_EKPO'.
WA_FIELDCAT-FIELDNAME = 'EBELP'.
WA_FIELDCAT-SELTEXT_M = 'LINE NO'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-SELTEXT_M = 'MATERIAL NO.'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'MENGE'.
WA_FIELDCAT-SELTEXT_M = 'QUANTITY'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'MEINS'.
WA_FIELDCAT-SELTEXT_M = 'UOM'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'I_EKPO'.
WA_FIELDCAT-FIELDNAME = 'NETPR'.
WA_FIELDCAT-SELTEXT_M = 'PRICE'.
APPEND WA_FIELDCAT TO I_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. "BUILD_FIELDCATLOG_EKPO
*& Form event_call_ekpo
we get all events - TOP OF PAGE or USER COMMAND in table v_events
FORM EVENT_CALL_EKPO.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS
EXCEPTIONS
LIST_TYPE_WRONG = 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.
ENDFORM. "event_call_ekpo
*& Form POPULATE_EVENT
Events populated for TOP OF PAGE & USER COMAND
FORM POPULATE_EVENT_EKPO.
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'TOP_OF_PAGE'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-FORM.
ENDIF.
ENDFORM. "POPULATE_EVENT
*& Form TOP_OF_PAGE
text
FORM F_TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LISTHEADER
i_logo =
I_END_OF_LIST_GRID =
ENDFORM. "TOP_OF_PAGE
*& Form USER_COMMAND
text
-->R_UCOMM text
-->, text
-->RS_SLEFIELDtext
*retreiving values from the database table ekko
FORM DATA_RETRIEVAL_EKPO.
SELECT EBELN EBELP MATNR MENGE MEINS NETPR FROM EKPO INTO TABLE IT_EKPO.
ENDFORM.
FORM BUILD_LISTHEADER_EKPO USING I_LISTHEADER TYPE SLIS_T_LISTHEADER.
DATA: HLINE1 TYPE SLIS_LISTHEADER.
HLINE1-TYP = 'H'.
HLINE1-INFO = 'CHECKING PGM'.
ENDFORM.
FORM DISPLAY_ALV_EKPO.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE = I_TITLE_EKPO
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = I_FIELDCAT[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT =
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS = V_EVENTS
TABLES
T_OUTTAB = IT_EKPO
EXCEPTIONS
PROGRAM_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.
ENDFORM.
Thanks,
Sankar M
Maybe you are looking for
-
Training and Event Management Implementation based on competencies
Dear Friends, My client is going ahead for Training and Event Managment Implementation. They have a basic requirement to start with and that is : 1) They have done competency mapping for all its employees and they want that the competencies of each e
-
Certain albums won't play on Iphone but still play perfectly fine in Itunes
Since I updated my Iphone to IOS5, certain albums won't play. They work perfectly fine in Itunes on my imac and the still appear in my library on the Iphone, but it won't start playing. The strange thing is, they are all albums from this year. All th
-
Hai, I want some information in ABAP Implementation. Please give me some idea and share with me. bye visu
-
Which cisco wireless bridges support point to multipoint
hi all i am really new to wireless. i am looking for information as which cisco wireless bridges support point to multipoint configuration. i have a cisco 1230G access-point will it support the same . any help would be great. regards sushil
-
Problem with Connection Pooling
Hi, I am using netbeans for developing web appliccation .I make datasource and then calliing that datasource but i am facing some error while calling. The Code is.. private javax.sql.DataSource getMyDatabase() throws javax.naming.NamingException { ja