Sample code for slow moving material report?
Hi all,
I have a requirement to display slow moving mateial report on a particular goods issue date and material wise.
The basic requirements are
1. Movement type '261' and material, plant are select-options.
2.last goods movement date based on parameter.
3. Display the quantity available
but here i am getting a problem that i couldn't find the last goods movement for that particular material with specific storage location as one material document containing more than one item. So please help? Also what logic i have to use to display quantity available?
Please specify the sample code or logic for above requirement?
Any custom slow moving report codes also very helpful?
Thanks,
Vamshi
>
VAMSHI KRISHNA wrote:
> Solved.
....Shaved.
Similar Messages
-
Report for slow moving material.
Hi friends
I want to create report for slow & fast moving materials..
I have to add following fields in the report
Material, Unit of Measure, Current Stock, Value, Last consumption date, Last movement date...
Now I dont have all these fields toghether in any of the datasources..
What I need to do? Should I create new Datasource with all these fileds..
Has anyone done this kind of report before?
Please suggest..
Regards
SwatiHello,
For slow moving materials , use can use InfoSet to design the same.The infoset will have 0Material on the left hand side and the DSO which holds the transcation data.
or
u can install the standard content 'slow moving material' query and multiprovider 0ic_mc01.
You can get some help from there.
or
try searching in forums with the messgae "slow moving items".you will get useful info.
Regards,
Dhanya -
Slow moving items report for project stock
Hi ALL,
We are using project stock to manage all of our inventory. As the standard slow moving items report (MC46) does not contain project stock (special stock Q), we would like to develop a report then. "Slow moving" should be identified by material, plant, storage location and WBS.
Has any had this experience? What's the main data logic for this report?
Thanks a lot!!Dear,
Do One thing.. First goto MB5B - stocks on posting date and select to display only special stock indicator Q (Project). By this you can abstract all Project materials. Save the output into Excel. (The main aim is first abstract the project stock materials into a list with a suitable transactions - MB5B or MB52).
Then run MC50 or MC46 using these materials saved in excel file.
Try this.
Regards,
Syed Hussain. -
WM report for slow moving items
Hello,
Is there any report in WM for slow moving items (or Dead stock)?
Regards,Hi,
I agree with Frenchy.
You can check the following as well (and create your own slow moving criteria): tcode MCLD and make sure that the list displayes field "Number of Movements". With this you can get an idea of which material moves and which ones don't. You can limit this then by movement type to base your criteria on for example sales.
Also see the other reports under Warehouse --> Standard Analysis.
Cheers,
Hein -
Transaction code MC46 for slow moving
Dear Experts
I need to take the list of slow moving material with last transaction date.I was tried with MC46 transaction and it gave me the list.
But i'm not able to under stand the logic , for example one part number shows Days since consumption is 417 days. And i checked up the transaction for that material , last transaction was 01.04.2006.It was correct.But many regular part number show 22 days , but even those parts are transacted daily.
If possible any can explain me the logic how the days are arrived and some parts mentioned as "no consumption"
Thanks in advance
SureshHi Suresh
It appears that the recent transactions were internal like sloc to sloc or qi to unrestricted etc - transaction that may not have had any accounting impact.
Please check the last date when any of your stock movement had an accounting impact like GR, GI etc and see whether the data tallies
Please reward points if this helps you -
Hi,
Can anyone wil give me an idea how to calculate the slow moving material for the last 3 and 6 months with out inbuilt report and without using no of records fields provided by SAP.. can we calculate based on the good issue based on last 3 and 6 months.. my requirement is client wants to now which is material which is does not have movements in past 3 tro 6 months...
Thanks
AnjaliCheck the below PDF.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11291595-0501-0010-c881-e02c27261b55
Hope this helps. -
hey
there is a standard query for Slow moving items based on 0IC_MC01. I need to find out the last goods issue and last goods receipt date on this query.
Any one has any ideas ?
thanks
Laura.Hi Laura
There is a standard query for slow moving items based Multi Provider 0IC_MC01
and query is : Query 0IC_MC01_Q0001 is available as of 3.0B (role: SAP_BW_0ROLE_0003).
But if you get some msg: Redesign Slow Moving Inventory
then do this following
Please change the definition of the MultiProvider 0IC_MC01 and the underlying Query 0IC_MC01_Q0001. These changes are included with SAP BW
1. Administrator Workbench
-> Change definition of 0IC_MC01
-> Activate navigational attributes
0MATERIAL__0DIVISION
0MATERIAL__0MATL_CAT
0MATERIAL__0MATL_GROUP
0MATERIAL__0MATL_TYPE
-> Identification
mark ALL displayed characteristics/navigational attributes
-> Save, check and activate 0IC_MC01
2. BeX Analyzer
-> Change definition of 0IC_MC01_Q0001
-> remove characteristic 0CALMONTH (free characteristics)
-> add characterstics 0MATL_GROUP (rows) and restrict it to
variable 0S_MATG
-> remove calculated key figure 0IC_MC01_CK0003 (columns)
-> add new selection "All materials" accordingly to
example "All customers" (columns)
- use InfoProvider 0MATERIAL instead of 0CUSTOMER
- supress this structural element in the properties
-> add key figures 0ISSVS_VAL and 0RECVS_VAL (columns)
-> Save, check and activate 0IC_MC01_Q0001
The selection "All materials" provides all material numbers that are
stored in BW. So you can identify materials that have had no movements
within in the selected period. These materials show no values in key
figures 0ISSVS_VAL and 0RECVS_VAL.
For information purposes you can also add other key figures.
You can also add other characteristics in the drill down for grouping
purposes, like e.g. 0DIVISION.
If you want to have similar reports with 0PLANT you can also create
a similar MultiProvider/Query with 0MAT_PLANT instead of 0MATERIAL.
Hope you got some idea and help
Atul -
Dear Friends,
while i execute MC46 for Slow Moving Items.. Reports showing some material wrong data.. i generated for 30 days
HSD -- Showing data perfect 9 days no consumption ( after 31st 12 2011 no issues done.. checked thru mb51)
Brake OIl showing 30 days no consumption but when i check mb51 days before issues done..
is there any material specific or any configuration left.
please advicewhen you said consumption which movement type is used?
-
we want to use slow moving items report. so we are using mc46 for the same. I want to know materials that are not consumed from 180 days so i have entered 180 in Period: last consumption field & ran the report. The result what i am getting is not inline with the mb51 movement comparision.
Can anybody let me know the logic of MC46 tcode. what movement types will be considered ?
An example: one material has got GR (101) posting on 7th July 2011. the same material has been issued to sub contractor (541 o) on 8th july 2011. but when mc46 is ran with 400 days, in result i am getting 182 days (no consumption).
how is this possible.Hi,
This report is directly linked to the material consumption, 541 is just a transfer and not consumption when 543 will be posted the material consumption history will be updated and then the report will give values accordingly. So it will anytime check for consumptions you can test this by entering unplanned consumption in your material master for any period and then try running this report.
Regards
Chandra Shekhar -
Need case studies and sample code for all concept of ABAP
Hello,
Can anybody provide me the case studies and sample code for learning different concepts in ABAP programming like: module pool, ALV, interactive reports, BDC, Smart Form etc.? As I want to do some practical application by which i can learn more.
Thanks & Regards,
Vikram RawalIn this link You can find Step by Step Scren Shot document :
http://www.201interviewquestions.com/docs/User%20exits.ppt
http://erpgenie.com/abaptips/component/option,com_docman/task,doc_details/gid,27/
<b>
Reprots</b>
http://www.sapgenie.com/abap/reports.htm
http://www.allsaplinks.com/material.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
<b>Dictionary</b>
http://sapabap.iespana.es/sapabap/manuales/learnabap/
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ea31446011d189700000e8322d00/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBDIC/BCDWBDIC.pdf
<b>ABAP objects</b>
Please check this online document (starting page 1291).
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
Also check this links as well.
http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
http://www.futureobjects.de/content/intro_oo_e.html
http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm
/people/ravikumar.allampallam/blog/2005/02/11/abap-oo-in-action
<b>
SAPScripts</b>
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
SAP SCRIPT FIELDS
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
scripts easy material
http://www.allsaplinks.com/sap_script_made_easy.html
Check these step-by-step links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
<b>Smartforms material</b>
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
<b>
BAPI</b>
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
<b>List of all BAPIs</b>
http://www.planetsap.com/LIST_ALL_BAPIs.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://www.planetsap.com/Bapi_main_page.htm
http://www.topxml.com/sap/sap_idoc_xml.asp
http://www.sapdevelopment.co.uk/
http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
<b>ALV programs.</b>
http://www.geocities.com/mpioud/Abap_programs.html
. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
<b>ALV</b>
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - http://www.sapgenie.com/abap/reports.htm
http://www.allsaplinks.com/material.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
<b>Top-of-page in ALV</b>
selection-screen and top-of-page in ALV
<b>ALV Group Heading</b>
http://www.sap-img.com/fu037.htm
<b>ALV</b>
http://www.geocities.com/mpioud/Abap_programs.html
<b>
RFC Destination</b>
Re: SM59
<b>
ALE/ IDOC</b>http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
<b>Table Control</b>
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table%20control%20in%20abap.pdf
<b>
ABAP transactions</b>
http://www.easymarketplace.de/transactions-a-e.php?Area=4soi&name=volker&pw=vg&
Regards,
Priyanka. -
BW Slow moving item report in MC46 (R3) Format
Dear Guys,
Regards.We got a requirement :
1) A Slow moving Item report in BW in MC46 Report format(R3).Especially the client wants the "Period:Last Consumption(Days)" in the input selection criteria.The Standard BW Slow Moving item report has only Mat.Grp in the input selection and Caldays(Period from-to) in the Filter.Would appreciate your timely help on this...
Manythanks
ArunHi Ramesh/Prasad,
Many thanks for your replies..Well i dont want the input selection for "CALDAY" but rather for "DAYS-----Like user input as 100Days,60Days...."...They want to get the display of "Slow moving materials" for the Last 100 days or so...Any take on this?
Manythanks
Arun -
Hi guys,
Regards.We got a requirement:
1).The user inputs the "No. of Days since consumed" and the Customer exit code would calculate the "Result Variable from Current Date" and populate "SLOWMOVDATE".
2).We want the Stockvalue against that "SLOWMOVDATE".
But the system calculates the "SLOWMOVDATE" but am unable to get the stock value against that Particular date..Guys any idea on how i can go about it??(Its a Slow Moving Item report in BW)
Manythanks
ArunI suppose the stock value is restricted KF i.e. it is restricted by "SLOWMOVDATE' or you have set a global filter in the query on "SLOWMOVDATE".
-
Need a sample program for hierarchial oops ALV report
Hello experts,
I Need a sample program for hierarchial oops ALV report.Hi,
Check the following sample code...
T A B L E S
tables : ekko.
data definition
types : begin of ty_ekko,
ebeln type ekko-ebeln,
lifnr type ekko-lifnr,
bsart type ekko-bsart,
aedat type ekko-aedat,
ernam type ekko-ernam,
end of ty_ekko.
types : begin of ty_eket,
ebeln type ekpo-ebeln,
ebelp type ekpo-ebelp,
werks type ekpo-werks,
matnr type ekpo-matnr,
menge type eket-menge,
wamng type eket-wamng,
netpr type ekpo-netpr,
end of ty_eket.
data : it_ekko type table of ty_ekko,
it_eket type table of ty_eket.
data: ob_hieralv type ref to cl_salv_hierseq_table.
data: it_binding type salv_t_hierseq_binding,
is_binding type salv_s_hierseq_binding.
S E L C T O P T I O N S
select-options : s_ebeln for ekko-ebeln.
S T A R T O F S E L E C T I O N
start-of-selection.
select ebeln
lifnr
bsart
aedat
ernam from ekko
into corresponding fields of table it_ekko
where ebeln in s_ebeln.
if sy-subrc eq 0.
select aebeln aebelp
awerks amatnr
bmenge bwamng
a~netpr from ekpo as a join eket as b
on amandt = bmandt
and aebeln = bebeln
and aebelp = bebelp
into corresponding fields of table it_eket
where a~ebeln in s_ebeln.
endif.
is_binding-master = 'EBELN'.
is_binding-slave = 'EBELN'.
append is_binding to it_binding.
*TRY.
call method cl_salv_hierseq_table=>factory
exporting
t_binding_level1_level2 = it_binding
importing
r_hierseq = ob_hieralv
changing
t_table_level1 = it_ekko
t_table_level2 = it_eket .
*CATCH cx_salv_data_error .
*CATCH cx_salv_not_found .
*ENDTRY.
call method ob_hieralv->display( ).
Cheers,
Ram -
Hi guys please give me sample code for call transaction that handles error
hi guys, please give me sample code for call transaction that handles error,
please send me the sample code in which there should be all decleration part and everything, based on the sample code i will develop my code.
please do help me as it is urgent.
thanks and regards.
prasadnn.Hi Prasad,
Check this code.
Source Code for BDC using Call Transaction
*Code used to create BDC
*& Report ZBDC_EXAMPLE *
*& Example BDC program, which updates net price of item 00010 of a *
*& particular Purchase order(EBELN). *
REPORT ZBDC_EXAMPLE NO STANDARD PAGE HEADING
LINE-SIZE 132.
Data declaration
TABLES: ekko, ekpo.
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekko-ebeln,
waers TYPE ekko-waers,
netpr TYPE ekpo-netpr,
err_msg(73) TYPE c,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko,
it_error TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_error TYPE t_ekko,
it_success TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_success TYPE t_ekko.
DATA: w_textout LIKE t100-text.
DATA: gd_update TYPE i,
gd_lines TYPE i.
*Used to store BDC data
DATA: BEGIN OF bdc_tab OCCURS 0.
INCLUDE STRUCTURE bdcdata.
DATA: END OF bdc_tab.
*Used to stores error information from CALL TRANSACTION Function Module
DATA: BEGIN OF messtab OCCURS 0.
INCLUDE STRUCTURE bdcmsgcoll.
DATA: END OF messtab.
*Screen declaration
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
TITLE text-001. "Purchase order Num
SELECT-OPTIONS: so_ebeln FOR ekko-ebeln OBLIGATORY.
SELECTION-SCREEN END OF BLOCK block1.
SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME
TITLE text-002. "New NETPR value
PARAMETERS: p_newpr(14) TYPE c obligatory. "LIKE ekpo-netpr.
SELECTION-SCREEN END OF BLOCK block2.
*START-OF-SELECTION
START-OF-SELECTION.
Retrieve data from Purchase order table(EKKO)
SELECT ekkoebeln ekkowaers ekpo~netpr
INTO TABLE it_ekko
FROM ekko AS ekko INNER JOIN ekpo AS ekpo
ON ekpoebeln EQ ekkoebeln
WHERE ekko~ebeln IN so_ebeln AND
ekpo~ebelp EQ '10'.
*END-OF-SELECTION
END-OF-SELECTION.
Check data has been retrieved ready for processing
DESCRIBE TABLE it_ekko LINES gd_lines.
IF gd_lines LE 0.
Display message if no data has been retrieved
MESSAGE i003(zp) WITH 'No Records Found'(001).
LEAVE TO SCREEN 0.
ELSE.
Update Customer master data (instalment text)
LOOP AT it_ekko INTO wa_ekko.
PERFORM bdc_update.
ENDLOOP.
Display message confirming number of records updated
IF gd_update GT 1.
MESSAGE i003(zp) WITH gd_update 'Records updated'(002).
ELSE.
MESSAGE i003(zp) WITH gd_update 'Record updated'(003).
ENDIF.
Display Success Report
Check Success table
DESCRIBE TABLE it_success LINES gd_lines.
IF gd_lines GT 0.
Display result report column headings
PERFORM display_column_headings.
Display result report
PERFORM display_report.
ENDIF.
Display Error Report
Check errors table
DESCRIBE TABLE it_error LINES gd_lines.
If errors exist then display errors report
IF gd_lines GT 0.
Display errors report
PERFORM display_error_headings.
PERFORM display_error_report.
ENDIF.
ENDIF.
*& Form DISPLAY_COLUMN_HEADINGS
Display column headings
FORM display_column_headings.
WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
SKIP.
WRITE:2 'The following records updated successfully:'(013).
WRITE:/ sy-uline(42).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'Purchase Order'(004), sy-vline,
(11) 'Old Netpr'(005), sy-vline,
(11) 'New Netpr'(006), sy-vline.
WRITE:/ sy-uline(42).
ENDFORM. " DISPLAY_COLUMN_HEADINGS
*& Form BDC_UPDATE
Populate BDC table and call transaction ME22
FORM bdc_update.
PERFORM dynpro USING:
'X' 'SAPMM06E' '0105',
' ' 'BDC_CURSOR' 'RM06E-BSTNR',
' ' 'RM06E-BSTNR' wa_ekko-ebeln,
' ' 'BDC_OKCODE' '/00', "OK code
'X' 'SAPMM06E' '0120',
' ' 'BDC_CURSOR' 'EKPO-NETPR(01)',
' ' 'EKPO-NETPR(01)' p_newpr,
' ' 'BDC_OKCODE' '=BU'. "OK code
Call transaction to update customer instalment text
CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'
MESSAGES INTO messtab.
Check if update was succesful
IF sy-subrc EQ 0.
ADD 1 TO gd_update.
APPEND wa_ekko TO it_success.
ELSE.
Retrieve error messages displayed during BDC update
LOOP AT messtab WHERE msgtyp = 'E'.
Builds actual message based on info returned from Call transaction
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
msgid = messtab-msgid
msgnr = messtab-msgnr
msgv1 = messtab-msgv1
msgv2 = messtab-msgv2
msgv3 = messtab-msgv3
msgv4 = messtab-msgv4
IMPORTING
message_text_output = w_textout.
ENDLOOP.
Build error table ready for output
wa_error = wa_ekko.
wa_error-err_msg = w_textout.
APPEND wa_error TO it_error.
CLEAR: wa_error.
ENDIF.
Clear bdc date table
CLEAR: bdc_tab.
REFRESH: bdc_tab.
ENDFORM. " BDC_UPDATE
FORM DYNPRO *
stores values to bdc table *
--> DYNBEGIN *
--> NAME *
--> VALUE *
FORM dynpro USING dynbegin name value.
IF dynbegin = 'X'.
CLEAR bdc_tab.
MOVE: name TO bdc_tab-program,
value TO bdc_tab-dynpro,
'X' TO bdc_tab-dynbegin.
APPEND bdc_tab.
ELSE.
CLEAR bdc_tab.
MOVE: name TO bdc_tab-fnam,
value TO bdc_tab-fval.
APPEND bdc_tab.
ENDIF.
ENDFORM. " DYNPRO
*& Form DISPLAY_REPORT
Display Report
FORM display_report.
FORMAT COLOR COL_NORMAL.
Loop at data table
LOOP AT it_success INTO wa_success.
WRITE:/ sy-vline,
(10) wa_success-ebeln, sy-vline,
(11) wa_success-netpr CURRENCY wa_success-waers, sy-vline,
(11) p_newpr, sy-vline.
CLEAR: wa_success.
ENDLOOP.
WRITE:/ sy-uline(42).
REFRESH: it_success.
FORMAT COLOR COL_BACKGROUND.
ENDFORM. " DISPLAY_REPORT
*& Form DISPLAY_ERROR_REPORT
Display error report data
FORM display_error_report.
LOOP AT it_error INTO wa_error.
WRITE:/ sy-vline,
(10) wa_error-ebeln, sy-vline,
(11) wa_error-netpr CURRENCY wa_error-waers, sy-vline,
(73) wa_error-err_msg, sy-vline.
ENDLOOP.
WRITE:/ sy-uline(104).
REFRESH: it_error.
ENDFORM. " DISPLAY_ERROR_REPORT
*& Form DISPLAY_ERROR_HEADINGS
Display error report headings
FORM display_error_headings.
SKIP.
WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
SKIP.
WRITE:2 'The following records failed during update:'(008).
WRITE:/ sy-uline(104).
FORMAT COLOR COL_HEADING.
WRITE:/ sy-vline,
(10) 'Purchase Order'(009), sy-vline,
(11) 'Netpr'(010), sy-vline,
(73) 'Error Message'(012), sy-vline.
WRITE:/ sy-uline(104).
FORMAT COLOR COL_NORMAL.
ENDFORM. " DISPLAY_ERROR_HEADINGS
Hope this resolves your query.
Reward all the helpful answers.
Regards -
Need sample code for Using BADI ME_PROCESS_REQ_CUST
Dear all,
Initially my requirement is to Validate the Document Type of Purchase Request ion as per material.
I have created a implementation for BADI : ME_PROCESS_REQ_CUST .
im new to OOPS-ABAP, so pls send *sample code for how to use these methods PROCESS_ITEM,
like declarations, assignment of data into internal table for further validation*.
Regards,
NIranjan.GHi,
get the item data ....
*DATA : lt_item TYPE MEREQ_ITEM,
ls_item liek line of it_item*
CALL METHOD im_item->GET_DATA
RECEIVING
RE_DATA = lt_item .
you will get the data in lt_item.. table
Thanks,
Shailaja Ainala.
Maybe you are looking for
-
My ipad and laptop were stolen, how can I get my data back?
Both my ipad and laptop were stolen. Ive downloaded itunes onto a new laptop but none of my files are there. I was using iCloud.Can anyone help?
-
Calling a method from a method
I'm having a big issue getting the method I am calling to use previously called 'programs' (for my lack of knowing the proper word. The myTurtle draws shapes as can be seen, after browsing the internet it appears to be a common learning mechanism. I'
-
ARV_BC_XMB_DEL Fails With Raise Exception
Hi All, I have scheduled the archiving job in PI 7.0 through sxmb_adm -> Schedule Archiving. After scheduling I can see two jobs successfully released 1. ARV_BC_XMB_DEL - This job uses the program "RSXMB_DELETE_ARCHIVED_MESSAGES"
-
My iCal alarms are being sent (I can see them in my sent folder in Mail), and they are showing up in my gmail account online. However, they aren't showing up in my inbox in Mail, and I'm not having trouble receiving any other emails. What could be th
-
Good ssh manager with password storage?
Given the fact that I have to daily log in and off several machines, I am looking for a handy ssh manager that allows me to store passwords. It is useless for me to save some work of looking up IPs if I then have to go and look up passwords. I have n