Deleting specific line in schema
Dear Experts,
I had a problem regarding deletion of specific line in schema say e.g i want to delete 120 number line in schema one way to delete is from keyboard .tell me the syntax of deleting 120 number line with command.
Regards
Tayyab
000010 COM Import further paym./deducs. off
000020 BLOCK BEG Process additional payments/deductions
000070 P0015 IN11 GEN NOAB Import additional payments
00012d PIT ZXP8 NOAB
000130 P0579 * Import addtnl pymnts (3rd prty system)
000140 BLOCK END Process additional payments/deductions
Here in the above given example i am trying to delete the line number 000120 so that , i just removed the last zero and insert a d, after that while entering the line will be delete
00012d PIT ZXP8 NOAB
It is better to comment the line in the SCHEMA and keep it for reference you can do it by putting a star *** in the Deactivate
000130 P0579 * Import addtnl pymnts (3rd prty system)
Note: It is better do not make any changes in the Standard SCHEMAs please copy the standard one and do your changes ( doing like this there will be a back up available for reference )
Edited by: Sujith Nambiar on May 26, 2011 10:48 AM
Similar Messages
-
Prvent from the user deleting specific line in view table
HI,
In our Project we have a View Table which user can maintain ,
the user can change or delete the line (and fields) in this table.
what i want is for one line for specific combination in the table to prevent from the user to delete this line ,
so when he push on change mode and mark the line and push on delete i want to give him a error message that he can't delete this line (because the specific combination ).
i new for the concept of the PBO PAI....
so i appreciate any help or suggestions.
Best regards
Micheal A[Table maintenance Events|http://www.google.com/url?sa=t&source=web&ct=res&cd=4&url=https%3A%2F%2Fwww.sdn.sap.com%2Firj%2Fservlet%2Fprt%2Fportal%2Fprtroot%2Fcom.sap.km.cm.docs%2Flibrary%2Fabap%2FHow%2520to%2520implement%2520Events%2520in%2520Table%2520Maintenance.doc&ei=txFUSdKHKISeNbG1_dQP&usg=AFQjCNF3AI-77PC-MS20vx-ARd4a6zxUfg&sig2=Y_IWbHOsETvyoIrFzPxpCg]
[SAP help|http://help.sap.com/saphelp_erp2005vp/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm] -
User-exit for deletion of line item in PO
hi group
i want to delete a line item of purchase order.
and after that i have to make some changes
so i want to know which user-exit will be used here.
please help its urgent.Hi,
Please fine the list of user exits for the transaction ME22.
If it serves your purpsoe , please close the thread and reward suitable points.
Regards,
Irfan Hussain
Transaction Code - ME22 Change Purchase Order
Exit Name
Description
AMPL0001
User subscreen for additional data on AMPL
LMEDR001
Enhancements to print program
LMELA002
Adopt batch no. from shipping notification when posting a GR
LMELA010
Inbound shipping notification: Transfer item data from IDOC
LMEQR001
User exit for source determination
M06B0001
Role determination for purchase requisition release
M06B0002
Changes to comm. structure for purchase requisition release
M06B0003
Number range and document number
M06B0004
Number range and document number
M06B0005
Changes to comm. structure for overall release of requisn.
M06E0004
Changes to communication structure for release purch. doc.
M06E0005
Role determination for release of purchasing documents
ME590001
Grouping of requsitions for PO split in ME59
MEETA001
Define schedule line type (backlog, immed. req., preview)
MEFLD004
Determine earliest delivery date f. check w. GR (only PO)
MELAB001
Gen. forecast delivery schedules: Transfer schedule implem.
MEVME001
WE default quantity calc. and over/ underdelivery tolerance
MM06E001
User exits for EDI inbound and outbound purchasing documents
MM06E003
Number range and document number
MM06E004
Control import data screens in purchase order
MM06E005
Customer fields in purchasing document
MM06E007
Change document for requisitions upon conversion into PO
MM06E008
Monitoring of contr. target value in case of release orders
MM06E009
Relevant texts for "Texts exist" indicator
MM06E010
Field selection for vendor address
MMAL0001
ALE source list distribution: Outbound processing
MMAL0002
ALE source list distribution: Inbound processing
MMAL0003
ALE purcasing info record distribution: Outbound processing
MMAL0004
ALE purchasing info record distribution: Inbound processing
MMDA0001
Default delivery addresses
MMFAB001
User exit for generation of release order
LWSUS001
Customer-Specific Supply Source Determination in Retail
MRFLB001
Control Items in Release Creation
No of Exits: 33 -
Delete a line item from Sales Doc type RE
Unable to delete a line item from a sales order linked to document type RE. Get a long runtime - no specific error message. Use the 'Stop Transaction' option to end the transaction.
Have done thorough testing and can delete line items linked to all other sales document types in our system.
Researched SPRO to see if there was a line item deletion option that was not created for sales doc type RE - but can find nothing.
On a critical time line here - this was discovered during Hotpak installation testing which is scheduled to move to PRD June 22. Question as to why we have not run across this issue before now?? - I don't think we have had an occasion to delete a returns line item before - but I want to have the option if available.
Any help to resolve this issue would be appreciated.
Regards
PatsyThanks for your response.
After creating document type RE, execute VA02 transaction, select line item, select delete line item icon. The system goes into runtime and just stays there. No error message, no abap dump. To escape the transaction, I have to select 'stop transaction'.
I have tested all other document types we use in our system, (including our customized transactions) SO, CR, DR, etc., and the system allows line item deletion. -
Inserting/ deleting a line item in MIGO Transaction ( Goods Issue )?
Hi,
Can anyone help me with the logic for Inserting / deleting a line item in MIGO Transaction?
Thanks,
csHi
The following user exits and badis for migo:
Check the mb_migo_badi and check the method 'LINE_MODIFY' for u r purpose.
For undestanding see the documentation of the badi and see the example implementation
class: CL_EXM_IM_MB_MIGO_BADI
Enhancement/ Business Add-in Description
Enhancement
MB_CF001 Customer Function Exit in the Case of Updating a Art. Doc.
MBCF0011 Read from RESB and RKPF for print list in MB26
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0009 Filling the storage location field
MBCF0007 Customer function exit: Updating a reservation
MBCF0006 Customer function for WBS element
MBCF0005 Article document item for goods receipt/issue slip
MBCF0002 Customer function exit: Segment text in article doc. item
Business Add-in
MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check
MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn
MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
MB_DOC_BADI_INTERNAL BAdIs when Creating an Article Document (SAP Internal)
MB_DOCUMENT_UPDATE BADI when updating article document: MSEG and MKPF
MB_DOCUMENT_BADI BAdIs when Creating an Article Document
MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR
MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7
MB_CIN_LMBMBU04 posting of gr
MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables
ARC_MM_MATBEL_WRITE Check Add-On-Specific Data for MM_MATBEL
ARC_MM_MATBEL_CHECK Check Add-On-Specific Criteria for MM_MATBEL
If it is helpfu rewards points
Regards
Pratap.M -
Hi,
How to insert a line in between the schema. Through Edit->Add line, it is adding at the end of the schema.
SamriddhiType in 'I' in the LHS of the screen where you see the line numbers and
press enter. It creates a blank line. You type 'I5', it will insert 5
new lines in the schema
Note:- If it does not type any value in the line numbers, delete the
line number and type the 'I' in. Also if you want to copy the same
thing to the
Next line, use 'R' and press enter. 'r' means 'to repeat'
I think this is what you need.
Thanks,
Manu -
Delete specified line in a text file
can anyone help me??
how to remove specific line in a text file using java?? thank thanksRead the file, write a new one, and when you write skip over the line you want to delete.
-
ALV - Desactivate Check box on a specific line
Hello all,
I need your help for desactivate my checkbox on ALV GRID on specific line.
See on the screen shot on the link :
http://www.casimages.com/img.php?i=101006040322252671.jpg
See the implementation of my ALV and my Catalog :
g_container type scrfname value 'BCALV_GRID_DEMO_0100_CONT1',
g_grid type ref to cl_gui_alv_grid,
g_custom_container type ref to cl_gui_custom_container,
g_event_receiver type ref to lcl_event_receiver,
gt_fieldcat type lvc_t_fcat,
gs_layout type lvc_s_layo.
types: begin of gs_outtab.
types: checkbox type c. "field for checkbox
* §B1.Extend your output table by a field to dis- or enable
* cells for input.
types: celltab type lvc_t_styl. "field to switch editability
include structure zpvprevmaj.
types: end of gs_outtab.
form build_fieldcat changing pt_fieldcat type lvc_t_fcat.
call function 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZPVPREVMAJ'
CHANGING
ct_fieldcat = pt_fieldcat.
*§A2.Add an entry for the checkbox in the fieldcatalog
clear ls_fcat.
ls_fcat-fieldname = 'CHECKBOX'.
* Essential: declare field as checkbox and
* mark it as editable field:
ls_fcat-checkbox = 'X'.
ls_fcat-edit = 'X'.
* do not forget to provide texts for this extra field
ls_fcat-coltext = text-f01.
ls_fcat-tooltip = text-f02.
ls_fcat-seltext = text-f03.
* optional: set column width
ls_fcat-outputlen = 2.
append ls_fcat to pt_fieldcat.
endform. "build_field
gs_layout-stylefname = 'CELLTAB'.
gs_layout-info_fname = 'LINE_COLOR'.
perform color_line.
call method g_grid->set_table_for_first_display
EXPORTING
is_layout = gs_layout
it_toolbar_excluding = lt_exclude
CHANGING
it_fieldcatalog = gt_fieldcat
it_outtab = gt_outtab[].
"it_sort = it_sortcat.
Thank you very much for your answers
Edited by: Emilien P. on Oct 6, 2010 4:10 PM
Edited by: Emilien P. on Oct 6, 2010 4:13 PMI think is no possible with the style i try a little tutorial. I have test the style for normal cell and in comment i test with the check box and the checkbox always display !! :
You can easly test this program in SAP and if anyone arrive to no display the checkbox in line 6, he will be my god Thank you :
report ZCO_AFFACT_TEST.
TYPE-POOLS: SLIS.
*- Fieldcatalog
DATA: IT_FIELDCAT TYPE LVC_T_FCAT.
DATA: X_FIELDCAT TYPE LVC_S_FCAT.
DATA: X_LAYOUT TYPE LVC_S_LAYO.
" FOR DISABLE
DATA: LS_EDIT TYPE LVC_S_STYL,
LT_EDIT TYPE LVC_T_STYL.
" FOR DISABLE
DATA: BEGIN OF IT_VBAP OCCURS 0,
VBELN LIKE VBAP-VBELN,
POSNR LIKE VBAP-POSNR,
STYLE TYPE LVC_T_STYL, "FOR DISABLE
END OF IT_VBAP.
DATA: LS_OUTTAB LIKE LINE OF IT_VBAP.
SELECT VBELN
POSNR
UP TO 10 ROWS
INTO CORRESPONDING FIELDS OF TABLE IT_VBAP
FROM VBAP.
DATA:L_POS TYPE I VALUE 1.
CLEAR: L_POS.
L_POS = L_POS + 1.
X_FIELDCAT-SELTEXT = 'VBELN'.
X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-EDIT = 'X'.
"Delete commentary for test with check box.
"X_FIELDCAT-CHECKBOX = 'X'.
X_FIELDCAT-OUTPUTLEN = '10'.
x_fieldcat-ref_field = 'VBELN'.
x_fieldcat-ref_table = 'VBAK'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-SELTEXT = 'POSNR'.
X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-OUTPUTLEN = '5'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
"FOR DISABLE HERE 6ROW IS DISABLED
SY-TABIX = 6.
LS_EDIT-FIELDNAME = 'VBELN'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 10.
INSERT LS_EDIT INTO TABLE LT_EDIT.
LS_EDIT-FIELDNAME = 'POSNR'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 6.
INSERT LS_EDIT INTO TABLE LT_EDIT.
INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-STYLE.
MODIFY IT_VBAP INDEX SY-TABIX FROM LS_OUTTAB TRANSPORTING
STYLE .
X_LAYOUT-STYLEFNAME = 'STYLE'.
" UP TO HERE
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT_LVC = X_LAYOUT
IT_FIELDCAT_LVC = IT_FIELDCAT
TABLES
T_OUTTAB = IT_VBAP[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC NE 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Edited by: Emilien P. on Oct 7, 2010 3:09 PM -
Delete specific attachment file through Conversion Channel ?
version : iMS5.2 sp1
O/S : Solaris 2.6 Generic_105181-29
I wanted to delete specific attachment file(ex: ALTDESK.ZIP) through Conversion Channel.
So I set up like below..
1) In mappings file
=================
CONVERSIONS
IN-CHAN=tcp_intranet;OUT-CHAN=tcp_local;CONVERT Yes
==============
I only want to delete attached file from tcp_intranet to tcp_local.
2) msg-INSTANCE/imta/config/conversions
example mail header ::
--- omit ----
MIME-version: 1.0
X-Mailer: iPlanet Messenger Express 5.2 Patch 1 (built Aug 19 2002)
Content-type: multipart/mixed; boundary=--6b2385053506b85
Content-language: ko
X-Accept-Language: ko
Priority: normal
This is a multi-part message in MIME format.
----6b2385053506b85
Content-Type: text/plain; charset=EUC-KR
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
----6b2385053506b85
Content-Type: application/x-zip-compressed
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=ALTDESK.ZIP
- conversions file setting
==================================================
in-channel=tcp_intranet; out-channel=tcp_local;
in-type=application; in-subtype=x-zip-compressed;
parameter-symbol-0=ALTDESK.ZIP; parameter-copy-0=*;
dparameter-symbol-0=ALTDESK.ZIP; dparameter-copy-0=*;
message-header-file=2; original-header-file=1;
override-header-file=1; override-option-file=1;
command="/product/leeky/convert.sh"
============================================
3) /product/leeky/convert.sh file
========================
#!/bin/sh
if [ $? -eq 1 ]; then
echo "STATUS=178030178" >> $OUTPUT_OPTIONS
else
cp $INPUT_FILE $OUTPUT_FILE
fi
=========================
4) The problems I face are
- All of zip files which are filtered is deleted. As you can see 2) I only want to delete ALTDESK.ZIP file
But, all of the zip-compressed files are deleted at the moment.
- This converison channel is work(even if all zip-compressed files are deleted). But sometimes this is not
working(2 or 3 times out of 10). I don not know why.
- Above all, I am not sure 2) and 3) settings are good. English is a second language to me. So it was
not easy to understand conversion channel setting in Admin Guide.
- How can I see the out put of "$OUTPUT_OPTIONS" ? I do not know where I can see that.
Is there anybody to help me ?The section of the admin guide which can help is:
http://docs.sun.com/source/816-6009-10/channel2.htm#42283
Here there is an explanation of how the mime headers of the message part would align with the entries one would put into the conversions file entry. (The document has an error where it talks about APPARENT_NAME and APPARENT_FILENAME. It should really say the words "NAME" and "FILENAME" respectively).
Based on that document, the MIME headers of your message part :
Content-Type: application/x-zip-compressed
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=ALTDESK.ZIP
will align with a conversions file settiong of:
in-channel=tcp_intranet; out-channel=tcp_local;
in-type=application; in-subtype=x-zip-compressed;
parameter-symbol-0=NAME; parameter-copy-0=*;
dparameter-symbol-0=FILENAME; dparameter-copy-0=*;
message-header-file=2; original-header-file=1;
override-header-file=1; override-option-file=1;
command="/product/leeky/convert.sh"
and a /product/leeky/convert.sh script which reads something like:
#!/bin/sh
grep "$FILENAME" /product/leek/badfiles.list
if [ $? -eq 1 ]; then
echo "STATUS=178030178" >> $OUTPUT_OPTIONS
else
grep "$NAME" /product/leek/badfiles.list
if [ $? -eq 1 ]; then
echo "STATUS=178030178" >> $OUTPUT_OPTIONS
else
cp $INPUT_FILE $OUTPUT_FILE
fi
fi
The lines:
parameter-symbol-0=NAME; parameter-copy-0=*;
dparameter-symbol-0=FILENAME; dparameter-copy-0=*;
tells the conversion channel to make the environment variable $NAME avaliable to your program with a value corresponding to the "name=" clause on the Content-Type line of the MIME headers. The environment variable $FILENAME is made avalable to your program and takes on the value extracted from the filename=" clause on the content-disposition line of the MIME headers.
The document at :
http://docs.sun.com/source/816-6092-10/conversion.html
may help provide other examples. -
I want to display specific line to be color in alvlist how
i want to display specific line to be color in alvlist
i write the code as follows here document type is initial. then that line is to be
appeared as color line but problem is initially it is appeared correct later i moved to next previous screens error lines are to be colored where i have to clear
loop at it_doclist where blart eq space.
gt_layout-info_fieldname = 'COLOR_LINE'.
it_doclist-color_line = 'C600'.
modify it_doclist .
clear:it_doclist.
endloop.
please help me exactly
Thanks
Ramana reddyu r requiremnt is not clear...but any how check this code....
it has a form for assigning colors....
rewardif useful
REPORT zppb001_prd_posting_upload
NO STANDARD PAGE HEADING LINE-SIZE 255
MESSAGE-ID zpp.
INCLUDE bdcrecx1.
TYPE-POOLS :slis.
DATA: wk_success(5) TYPE c, "To store the successfull Hits
wk_failure(5) TYPE c, "To store the failed Hits
l_mstring(600), "To store Message texts
t_date TYPE zservice_date,"To store Uploaded Date
wk_lines(5) TYPE c, "To store No of Records
lines(5) TYPE c, "To store No of Records
wk_len(150) TYPE c, "To store File path
wk_alp TYPE i, "To store path length
lent TYPE i, "To store path length
b(4). "To store File extension
DATA: alvfld TYPE slis_t_fieldcat_alv WITH HEADER LINE,
v_events TYPE slis_t_event WITH HEADER LINE,
wk_events LIKE LINE OF v_events,
it_list_comments TYPE slis_t_listheader,
wk_list_comments LIKE LINE OF it_list_comments,
wk_layout TYPE slis_layout_alv.
CONSTANTS: c_formname_top_of_page TYPE slis_formname
VALUE 'F_TOP_OF_PAGE'.
--TO STORE FINAL DATA TO BE POSTED--
Generated data section with specific formatting - DO NOT CHANGE ***
DATA: BEGIN OF record OCCURS 0,
budat_002(010),
bktxt_004(025),
matnr_005(018),
werks_006(004),
alort_007(004),
erfmg_008(017),
END OF record.
End generated data section ***
DATA: BEGIN OF messages OCCURS 0, "TO STORE FINAL STATUS DISPLAY
budat_002(010),
bktxt_004(025),
matnr_005(018),
maktx TYPE makt-maktx,
werks_006(004),
alort_007(004),
erfmg_008(017),
msg_e(400),
msg_s(600),
msgtyp TYPE c,
line_color(4),
END OF messages.
DATA: BEGIN OF st_record1 ,
matnr_005(018),
werks_006(004),
budat_002(010),
bktxt_004(025),
erfmg_007(017),
erfmg_008(017),
alort_007(004),
END OF st_record1.
DEFINE alv_macro.
move : &1 to alvfld-col_pos,
&2 to alvfld-fieldname,
&3 to alvfld-seltext_m.
if &2 = 'MATNR_005' or &2 = 'MAKTX'.
alvfld-fix_column = 'X'.
endif.
append alvfld.clear alvfld.
END-OF-DEFINITION.
DATA : record1 LIKE TABLE OF st_record1 WITH HEADER LINE,
it_excel LIKE TABLE OF alsmex_tabline WITH HEADER LINE,
messtab1 LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE,
it_acc LIKE TABLE OF record WITH HEADER LINE,
it_rej LIKE TABLE OF record WITH HEADER LINE.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
PARAMETERS: p_file TYPE localfile OBLIGATORY .
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
static = 'X'
CHANGING
file_name = p_file.
AT SELECTION-SCREEN ON p_file.
wk_len = p_file.
CONDENSE wk_len NO-GAPS.
lent = STRLEN( wk_len ).
wk_alp = lent - 4.
b = wk_len+wk_alp(lent).
IF ( b NE '.txt' ) AND ( b NE '.xls' ).
MESSAGE e939.
CLEAR p_file.
STOP.
ENDIF.
START-OF-SELECTION.
PERFORM upload_fun.
PERFORM open_group.
PERFORM fill_bdc_table.
PERFORM close_group.
PERFORM assign_colors.
PERFORM f_event_build.
SORT messages BY matnr_005 ASCENDING.
PERFORM assign_columns.
PERFORM count.
IF ctu = 'X'.
PERFORM alv.
ENDIF.
FREE:messages,messtab1,record1.
END-OF-SELECTION.
--FORM UPLOAD_FUN--
FORM upload_fun.
REFRESH: record1, it_acc, it_rej, record, messages, messtab1, it_excel.
PERFORM fetch_from_flat_file.
CLEAR it_excel.
DESCRIBE TABLE it_excel.
IF sy-tfill = 0.
MESSAGE i937. STOP.
ENDIF.
LOOP AT it_excel.
CASE it_excel-col.
WHEN '0001'. MOVE: it_excel-value TO record1-matnr_005.
WHEN '0002'. MOVE: it_excel-value TO record1-werks_006.
WHEN '0003'. MOVE: it_excel-value TO record1-budat_002.
WHEN '0004'. MOVE: it_excel-value TO record1-bktxt_004.
WHEN '0005'. MOVE: it_excel-value TO record1-erfmg_007.
WHEN '0006'. MOVE: it_excel-value TO record1-erfmg_008.
WHEN '0007'. MOVE: it_excel-value TO record1-alort_007.
ENDCASE.
AT END OF row.
APPEND record1. CLEAR record1.
ENDAT.
ENDLOOP.
DELETE record1 WHERE matnr_005 EQ ' '.
--DO NOT UPLOAD WHERE PRD QTY = 0--
DELETE record1 WHERE ( erfmg_007 = 0 OR erfmg_007 = ' ' )
AND ( erfmg_008 = 0 OR erfmg_008 = ' ' ).
DESCRIBE TABLE record1[].
IF sy-tfill > 0.
--MOVE ACCEPTED QTY AND FETCH THE RESPECTIVE STGLOC-**
LOOP AT record1 WHERE erfmg_007 NE 0 AND erfmg_007 NE ' '.
MOVE: record1-budat_002 TO it_acc-budat_002,
record1-bktxt_004 TO it_acc-bktxt_004,
record1-matnr_005 TO it_acc-matnr_005,
record1-werks_006 TO it_acc-werks_006,
record1-erfmg_007 TO it_acc-erfmg_008.
APPEND it_acc. CLEAR: it_acc,record1.
ENDLOOP.
--MOVE ELPRO FOR THE ACCEPTED ENTRIES--
LOOP AT it_acc.
SELECT SINGLE elpro INTO it_acc-alort_007
FROM mkal CLIENT SPECIFIED
WHERE mandt = sy-mandt
AND matnr = it_acc-matnr_005
AND werks = it_acc-werks_006.
MODIFY it_acc TRANSPORTING alort_007. CLEAR: it_acc.
ENDLOOP.
--MOVE PRD QTY FOR REJECTED QTY--
LOOP AT record1 WHERE erfmg_008 NE 0 AND erfmg_008 NE ' '.
MOVE: record1-budat_002 TO it_rej-budat_002,
record1-bktxt_004 TO it_rej-bktxt_004,
record1-matnr_005 TO it_rej-matnr_005,
record1-werks_006 TO it_rej-werks_006,
record1-erfmg_008 TO it_rej-erfmg_008,
record1-alort_007 TO it_rej-alort_007.
APPEND it_rej. CLEAR: it_rej, record1.
ENDLOOP.
--MOVE ACCEPTED AND REJECTED READINGS TO FINAL TABLE
APPEND LINES OF it_acc TO record. APPEND LINES OF it_rej TO record.
FREE : it_rej, it_acc, record1.
ELSE.
MESSAGE i937.
STOP.
ENDIF.
ENDFORM. " UPLOAD_FUN
--FORM fill_bdc_table--
FORM fill_bdc_table.
IF NOT record[] IS INITIAL.
LOOP AT record.
PERFORM bdc_dynpro USING 'SAPLBARM' '0800'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RM61B-BKTXT'.
PERFORM bdc_field USING 'BDC_OKCODE' '=ISTDA'.
PERFORM bdc_field USING 'RM61B-BUDAT' record-budat_002.
PERFORM bdc_field USING 'RM61B-BKTXT' record-bktxt_004.
PERFORM bdc_field USING 'RM61B-MATNR' record-matnr_005.
PERFORM bdc_field USING 'RM61B-WERKS' record-werks_006.
PERFORM bdc_field USING 'RM61B-ALORT' record-alort_007.
PERFORM bdc_field USING 'RM61B-ERFMG' record-erfmg_008.
PERFORM bdc_dynpro USING 'SAPLCOWB' '0130'.
PERFORM bdc_field USING 'BDC_OKCODE' '=WEIT'.
PERFORM bdc_field USING 'BDC_CURSOR' 'G_COWB_HEADER-MNGTXT'.
PERFORM bdc_transaction USING 'MFBF'.
CLEAR messtab.
messtab1[] = messtab[].
LOOP AT messtab1 WHERE msgtyp = 'S' OR msgtyp = 'E'.
SELECT SINGLE * FROM t100 WHERE sprsl = messtab1-msgspra
AND arbgb = messtab1-msgid
AND msgnr = messtab1-msgnr.
IF sy-subrc = 0.
l_mstring = t100-text.
PERFORM store_messages.
CLEAR l_mstring.
ENDIF.
ENDLOOP.
MOVE-CORRESPONDING record TO messages.
SELECT SINGLE maktx INTO messages-maktx FROM makt CLIENT SPECIFIED
WHERE mandt = sy-mandt
AND matnr = messages-matnr_005
AND spras = 'EN'.
APPEND messages.
CLEAR: messages, messtab1. REFRESH messtab1.
ENDLOOP.
ENDIF.
ENDFORM. "fill_bdc_table
--FORM assign_columns--
FORM assign_columns .
REFRESH alvfld.
alv_macro '1' 'MATNR_005' 'PART NO'.
alv_macro '2' 'MAKTX' 'DESCRIPTION'.
alv_macro '3' 'WERKS_006' 'PLANT'.
alv_macro '4' 'BUDAT_002' 'POSTING DATE'.
alv_macro '5' 'BKTXT_004' 'SHIFT'.
alv_macro '6' 'ERFMG_008' 'QUANTITY'.
alv_macro '7' 'ALORT_007' 'STGLOC'.
alv_macro '8' 'MSG_E' 'ERRORS DUE TO'.
alv_macro '9' 'MSG_S' 'STATUS'.
ENDFORM. " assign_columns
--FORM f_event_build--
FORM f_event_build .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = v_events[].
READ TABLE v_events WITH KEY name = slis_ev_top_of_page
INTO wk_events.
wk_layout-info_fieldname = 'LINE_COLOR'.
wk_layout-colwidth_optimize = 'X'.
IF sy-subrc = 0.
MOVE c_formname_top_of_page TO wk_events-form.
MODIFY v_events FROM wk_events INDEX sy-tabix.
ENDIF.
ENDFORM. " f_event_build
--FORM f_top_of_page--
FORM f_top_of_page.
WRITE sy-datum TO t_date.
CLEAR: it_list_comments[].
wk_list_comments-typ = 'H'. "H=Header, S=Selection, A=Action
wk_list_comments-key = ''.
CONCATENATE 'UPLOADED STATUS FOR PRODUCTION POSTING ON - ' t_date INTO
wk_list_comments-info SEPARATED BY space.
APPEND wk_list_comments TO it_list_comments.
CLEAR wk_list_comments.
DESCRIBE TABLE messages LINES wk_lines.
lines = wk_lines.
wk_list_comments-typ = 'S'. "H=Header, S=Selection, A=Action
wk_list_comments-key = ''.
CONCATENATE 'Total No of Hits:' lines INTO wk_list_comments-info
SEPARATED BY space.
APPEND wk_list_comments TO it_list_comments.
CLEAR wk_list_comments.
wk_list_comments-typ = 'S'. "H=Header, S=Selection, A=Action
wk_list_comments-key = ''.
CONCATENATE 'Successfull Hits:' wk_success INTO
wk_list_comments-info SEPARATED BY space.
APPEND wk_list_comments TO it_list_comments.
CLEAR wk_list_comments.
wk_list_comments-typ = 'S'. "H=Header, S=Selection, A=Action
wk_list_comments-key = ''.
CONCATENATE ' Failed Hits:' ' ' wk_failure INTO
wk_list_comments-info
SEPARATED BY space.
APPEND wk_list_comments TO it_list_comments.
CLEAR wk_list_comments.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
i_logo = 'ENJOYSAP_LOGO'
it_list_commentary = it_list_comments.
ENDFORM. "F_TOP_OF_PAGE
--FORM assign_colors--
FORM assign_colors .
LOOP AT messages.
CASE messages-msgtyp.
WHEN 'E'.
messages-line_color = 'C601'.
WHEN 'S'.
messages-line_color = 'C501'.
ENDCASE.
MODIFY messages TRANSPORTING line_color.
ENDLOOP.
ENDFORM. " assign_colors
--FORM COUNT--
FORM count .
CLEAR: wk_failure, wk_success.
LOOP AT messages.
CASE messages-msgtyp.
WHEN 'E'.
ADD 1 TO wk_failure.
WHEN 'S'.
ADD 1 TO wk_success.
ENDCASE.
ENDLOOP.
ENDFORM. " COUNT
--FORM ALV--
FORM alv .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = wk_layout
it_fieldcat = alvfld[]
it_events = v_events[]
TABLES
t_outtab = messages
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " ALV
--FETCH_FROM_FLAT_FILE--
FORM fetch_from_flat_file .
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_file
i_begin_col = 1 "From 1st Column
i_begin_row = 2 "From 2nd row
i_end_col = 7 "Till 7th Column
i_end_row = 65000 "Till Row
TABLES
intern = it_excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
ENDFORM. " FETCH_FROM_FLAT_FILE
--FORM STORE_MESSAGES--
FORM store_messages.
IF l_mstring CS '&1'.
REPLACE '&1' WITH messtab1-msgv1 INTO l_mstring.
REPLACE '&2' WITH messtab1-msgv2 INTO l_mstring.
REPLACE '&3' WITH messtab1-msgv3 INTO l_mstring.
REPLACE '&4' WITH messtab1-msgv4 INTO l_mstring.
ELSE.
REPLACE '&' WITH messtab1-msgv1 INTO l_mstring.
REPLACE '&' WITH messtab1-msgv2 INTO l_mstring.
REPLACE '&' WITH messtab1-msgv3 INTO l_mstring.
REPLACE '&' WITH messtab1-msgv4 INTO l_mstring.
ENDIF.
CONDENSE l_mstring.
IF messtab1-msgtyp = 'E'.
CONCATENATE messages-msg_s l_mstring INTO l_mstring SEPARATED BY space.
MOVE l_mstring TO messages-msg_e.
MOVE 'E' TO messages-msgtyp.
MOVE 'Document Not Posted' TO messages-msg_s.
ELSEIF messtab1-msgtyp = 'S'.
CONCATENATE messages-msg_s l_mstring INTO l_mstring SEPARATED BY space.
MOVE l_mstring TO messages-msg_s.
MOVE 'S' TO messages-msgtyp.
ENDIF.
ENDFORM. " store_messages -
REGARDING RESTRICT THE DELETION OF LINE ITEM FROM CONFIRMATION SCREEN
Dear All,
Plz let me know how can we restrict to delete the line item(components) from the goods movement screen of confirmation of order(Cor6n) screen.
Thanks & Regards,
Arvind SHi Aravind
i just want to restrict the deletion only for particular user id's.
I know we can do through authorization by creating authorization object.. am i right??
I am not sure bout any authorization object can help you. However you can have the transaction variant for COR6N with quantity field as output also note this can be user specific.
So you have no need to have custom transaction or development.
Regards,
R.Brahmankar -
Error in ABUMN: Line Item Schema SAP_RET_XX0 is not defined
Hello Guru,
I have one problem when doing asset transfer (ABUMN) within same company code, because we want to drop some of depreciation areas. And in the new asset those depreciation areas are not existing. When I was trying to run ABUMN and simulate, the error came. Message no AC598 "Line Item Schema SAP_RET_XX0 is not defined". I tried to look in OSS Note, I found that error but the solution is for 4.0 while we are using 4.7 already but still the error is happening.
Please share whether you ever faces the error like this before.
Thanks in advance.
Kind regards,
DodiHi,
Please refer to Note 703302 - Error AC 598 SAP_RET_RU0 is missing if it helps.
Summary
Symptom
Message AC 598 "Line item schemes are not found." is issued when trying to create assets postings with activity types 230, 300.
Other terms
SAP_RET_RU0 SAP_RET_RU1
Reason and Prerequisites
Line items schemes SAP_RET_RU1, SAP_RET_RU0 are incorrect. This is an error in the standard delivery for Russia.
Solution
Delete two records in the table T093H using transaction SE16 with the following data: LAND1 GLAFABER BWASL BUZSM
RU * 230 SAP_RET_RU1
RU * 300 SAP_RET_RU0
Header Data
Release Status: Released for Customer
Released on: 03.02.2004 14:58:55
Priority: Recommendations/additional info
Category: Customizing
Primary Component: XX-CSC-RU-FI Financial Accounting
Secondary Components: XX-CSC-RU Russia
Releases
Release Independant -
Deleted PO line item not coming to Sourcing
Hi,
We created PO from sourcing, later we realized that vendor need to be chaged. so we deleted PO line item, but this deleted line item is not displaying in sourcing cockpit. when could be the reason
Thanks
RaviRavi,
Please check the following notes
Note 1059979 - BBP_GET_STATUS_2: deleted PO did not send the shp to SOCO
Note 1012124 - SHP not reappear in SOCO after backend PO delete
Note 1055238 - Item is not sent to SOCO after backend PO deletion
From the bid Invitation
Note 1134786 - Requirement sent back to SOCO when a PO is deleted
Thanks,
Surya -
System should not allow to delete PO line Item after GR/IR
Hi,
I am working on a SAP Retail Implementation project.
Currently the system is allowing us to delete the PO line items after doing GR or IR against that PO line item. But the clients requirement is that the system should not allow to delete PO line item after doing GR/IR.
We are using Account Assignment Category-N, Item Category-S.
Please let me know if you have the solution for this requirement.
Thanks in advance
Thanks & Regards,
SureshHi,
Standard SAP will not allowed the PO to be deleted once it was GR done. The controlled is on the attributes of message to set as "E"
Message no. 06115
But if invoiced takes place, the is the point that PO can be deleted.
You have to do have a Enhancement using MM06E005, insert you logic here to check PO history tables like EKBE, then check if invoice " Q" (BEWTP) exist, the PO cannot be deleted once the user delete the PO line and SAVE it. Ask you developer to help you on the following coding.
Use MM06E005 and EXIT_SAPMM06E_012
IF SY-TCODE = 'ME22N'.
IF sy-ucomm = 'MESAVE' OR SY-UCOMM = 'YES'..
LOOP AT TEKPO.
IF TEKPO-LOEKZ = 'L'.
SELECT SINGLE BELNR FROM EKBE INTO BELNR1 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'E'.
IF SY-SUBRC = 0.
SELECT SINGLE BELNR FROM EKBE INTO BELNR2 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'Q'.
IF SY-SUBRC = 0.
Regards, -
How to delete backorder lines?
hi experts,
i cancelled one sales order, this salesorder has 3 lines and i cancelled line by line and it came up at the end "order status = close" "lines status =cancelled" but one line stays in backorder that should not be stay there coz it has been cancelled. how delete that line in the backorder. i try to pick realease it and there nothing happen. just warning message that i cannot.Do you have access to Oracle Support? If you enter a Service Request, they will provide the correct code to make sure everything is updated correctly - the delivery and everything else that is dependent on that. Updating on your own can be risky cause you may miss something that needed to be corrected.
Maybe you are looking for
-
Saving data to external hard drive
I want to make sure that I am saving my data/photos/music correctly on my external hard drive. I usually plug in my hard drive then plug it in the computer. I open up the icon of it on my desktop. then I drag my files to it. Is that correct? If
-
FCP X: DV AVI import fails
Hello forum, I have DV AVIs which were captured on a Windows XP PC with the Miro DV500 capture card. When trying to import a given AVI file into Final Cut Pro X 10.0.1 (latest available update) I get an error message: "No importable media - None of t
-
Color Groups - Save/Export/Share without Kuler?
Why can't i just save a color group that i created in Illustrator CS5 and import it into another document? Kuler only supports groups of up to 5 colors, and i don't think uploading a set of client-specific brand colors to the "Kuler Community" would
-
Option Globetrotter Express card, Leopard, Roaming, IPCP
Hello, My Option 3G card works great at home (NL) however, whilst roaming, and with a data account which permits roaming, I am unable to get it to work with a 2.5G or 3G connection. The PPP session fails as such: Tue Nov 20 07:55:10 2007 : Initializi
-
I am trying to create a function , which would retun table type.
Gurus, I am trying to create a function which would return a nested table with 3 columns of a table as a type. my query is like select col1,col2,col3 from table_1; I am kinda newbie in Oracle and have never used collections. Can you please guide ?