Deleting HU's from delivery
Hi,
I have to delete HU's from a delivery. I need to delete all of them except a couple. I found this link in SDN
Re: Delete handling unit
have been trying to implement this but everytime I get a short dump saying 'Runtime error CSSQL_ARRAY_INSERT_DUPREC'. Its urgent so can someone help me out. I am attaching my code here as per the link above
*& Report Z_DELV_DEL_HU
*& This progam will delete all the HU's assigned to a delivery
REPORT Z_DELV_DEL_HU NO STANDARD PAGE HEADING
LINE-COUNT 60
LINE-SIZE 132.
TABLES: ltak,
vekp,
vepo.
DATA: l_vbkok LIKE vbkok,
lt_verko LIKE verko OCCURS 0 WITH HEADER LINE,
lt_verpo LIKE verpo OCCURS 0 WITH HEADER LINE,
l_venum type VEKP-VENUM,
lv_venum type vekp-venum,
lt_et_created_hus LIKE vekpvb OCCURS 0 WITH HEADER LINE,
it_venum TYPE TABLE OF HUM_VENUM,
wA_venum TYPE HUM_VENUM,
lt_vekp type table of vekp,
wa_vekp type vekp,
it_verpo_tab LIKE VERPO OCCURS 0 WITH HEADER LINE,
it_vbpok LIKE VBPOK OCCURS 0 WITH HEADER LINE,
it_hu_rem LIKE HUM_REHANG_HU OCCURS 0 WITH HEADER LINE.
PARAMETERS: p_vbeln LIKE likp-vbeln MEMORY ID vl.
DATA: w_vbkok TYPE vbkok,
v_err TYPE c.
CLEAR : w_vbkok.
DATA: c_x(1) value 'X'.
*unlock the delivery.
CALL FUNCTION 'LEINT_DELIVERY_UNLOCK'
EXPORTING
iv_docnr = p_vbeln.
CALL FUNCTION 'STATUS_BUFFER_REFRESH'.
CALL FUNCTION 'HU_PACKING_REFRESH'.
CALL FUNCTION 'SERIAL_INTTAB_REFRESH'
EXPORTING
objects_status_refresh = 'C'.
**Preparing data for the delivery update BAPI
l_vbkok-vbtyp_vl = 'J'.
l_vbkok-vbeln = l_vbkok-vbeln_vl = p_vbeln.
SELECT * FROM vepo
WHERE
vbeln EQ p_vbeln.
Move-corresponding vepo to: it_verpo_tab.
Append it_verpo_tab.
Endselect.
SELECT * FROM vekp into table lt_vekp
WHERE vpobj EQ '01'
AND vpobjkey EQ p_vbeln.
Loop at lt_vekp into wa_vekp.
IF wa_vekp-VHILM EQ 'PALLET'.
MOVE-CORRESPONDING wa_vekp TO: lt_verko,
lt_et_created_hus.
*MOVE-CORRESPONDING wa_vekp TO it_hu_rem.
*it_hu_rem-top_hu_external = wa_vekp-exidv.
*it_hu_rem-top_hu_internal = wa_vekp-venum.
*lt_verko-status = lt_et_created_hus-status = '0060'.
APPEND: lt_verko,
lt_et_created_hus.
*Append it_hu_rem.
ELSE.
CONTINUE.
Endif.
Endloop.
*ENDIF.
*ENDSELECT.
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
vbkok_wa = l_vbkok
synchron = 'X'
NO_MESSAGES_UPDATE_1 = ' '
COMMIT = 'X'
delivery = p_vbeln
UPDATE_PICKING = ' '
NICHT_SPERREN_1 = 'X'
IF_CONFIRM_CENTRAL = 'X'
IF_WMPP = ' '
IF_GET_DELIVERY_BUFFERED = ' '
IF_NO_GENERIC_SYSTEM_SERVICE = ' '
IF_DATABASE_UPDATE_1 = '1'
IF_NO_INIT_1 = ' '
IF_NO_READ_1 = ' '
IF_ERROR_MESSAGES_SEND = v_err
IF_NO_BUFFER_REFRESH = ' '
IT_PARTNER_UPDATE =
IT_SERNR_UPDATE =
IF_NO_REMOTE_CHG_1 = ' '
IF_NO_MES_UPD_PACK = ' '
IMPORTING
EF_ERROR_ANY =
EF_ERROR_IN_ITEM_DELETION =
EF_ERROR_IN_POD_UPDATE =
EF_ERROR_IN_INTERFACE =
EF_ERROR_IN_GOODS_ISSUE =
EF_ERROR_IN_FINAL_CHECK =
EF_ERROR_PARTNER_UPDATE =
EF_ERROR_SERNR_UPDATE =
TABLES
VBPOK_TAB = it_vbpok
PROT =
verko_tab = lt_verko
verpo_tab = it_verpo_tab
VBSUPCON_TAB_1 =
IT_VERPO_SERNR =
IT_PACKING =
IT_PACKING_SERNR =
IT_REPACK =
IT_HANDLING_UNITS_1 = it_hu_rem
IT_OBJECTS =
et_created_hus = lt_et_created_hus
TVPOD_TAB =
If NOT v_err is INITIAL and sy-subrc NE 0.
Write:/'Error in deleting HUS'.
ELSE.
Write:/'All the HUs were deleted successfully for delivery:', P_vbeln.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
Endif.
Thanks,
-David.
Hi Ramesh,
Our issue is that we have de-assigned the HU's from the inbound delivery and cancelled the inbound delivery but cannot VL09 the outbound delivery as the HU is assigned toa n object and we now believe that this is the inspection lot that gets generated when the inbound delivery is created as the HU's are packed at that point.
At the moment the only solution we have found is to pack teh Hu's in to a virtual HU in VL02n before PGI, this then allows reversal as the HU's with the material content are not directly linked to the delivery.
Thanks
Stuart
Similar Messages
-
How to delete the item from Delivery?? (Handling Unit)
Dear SDNs,
I have a scenario of HU (Handling Unit).
Now here I have a case where the complete cycle is done. But end user now wants to change/delet the item in Delivery. So I have guided them to reverse all documents and it is done.
Now delivery is in Editable Mode. Now here when I try to Delete Delivery Line Item.. It is giving Error like "Item has already been packed and therefore cannot be deleted"
Diagnosis says "It is not possible to delete packed items."
Procedure says "Unpack the item from the shipping unit before you delete it."
Now when I select Line Item and click the PACK Button to go to the screen for "Processing of Handling Units for outbound Delivery XXXXXXX", it goes to the screen but here there is not Existing HUs available to Delete/Empty... whole screen is Blank.. even no Material to be packed...
I think user have proceeded the cycle without HU assignment.
So now I want to Delete the Line Items and want to insert fresh Items again...
Any inputs???
Thanks & Regards,
HPHardik Patel,
I have checked your equirement frankly speaking i was not exposed to such an scenario. I got alink which will help you
Handling Unit and Packing used across all modules.
[http://help.sap.com/saphelp_47x200/helpdata/en/c8/a44b749f3211d2858d0000e81ddea0/frameset.htm]
Here to your left choose Packing --> Working with Handling units --> Unpacking
Therein you will have Unpacking, Deleting HAndling units
Just Check....
Regards
Sathya -
How to delete line item from delivery?
Hi Experts,
Two Invoices are associated with one delivery delivery ,Now due to a system error, first invoice didnu2019t generate any accounting document, so we cancel it. On the other hand second invoice was ok so we leave it, now we need to cancel the two lines of delivery.
There are four items in the delivery and two different billing document has been created for 2-2 line item,now as for last two items billing document is already been cancelled so how to remove this two item from delivery.
Thanks,
DharmeshDear Dham
Please cancel the both the invoices then only you can delete delivery from delivery you cannot delete line item bcause delivery is the smae for both line items then process accordingly do delivery for line item wise (OR) try to see revenue account determination config in the masters how every try to post with existing
Revenue account Determination
Application
Company Code
Chart of accounts
Sales org
Acc assi Grp customer master
Acc assi Grp material master
GL Account for account receivables
OR you need to find out FI posting period if it is closed trying to for previous monnth then account document will not get genertaed
ask fi to open posting period try to close
Regards
M L Naidu -
Delete item in outbound delivery
Hi
I can't delete one item from delivery that contains one or more items.
I tried to find some posts about it... but nothing... please help me!
I used (via "test sequence") BAPI_OUTB_DELIVERY_CHANGE with the following attributes:
HEADER_DATA-DELIV_NUMB - the number of the delivery. (e.g. 0080013645)
HEADER_CONTROL-DELIV_NUMB - the same number
DELIVERY - again the same number
ITEM_CONTROL-DELIV_NUMB - and again the number of the delivery
ITEM_CONTROL-DELIV_ITEM - the number of the item (e.g. 000010)
ITEM_CONTROL-DEL_ITEM = 'X'
the system shows no errors about this process...
and then I proceed with the BAPI_TRANSACTION_COMMIT - and nothing... the item is still in that delivery
Please help me!
Tnx
OrenHi Oren,
As per my Knowledge Once you do Pick and "PGI" We cannot delete Item in Delivery Level.Becoz the goods movement status does not allow the item to be deleted -
this is SAP standard Functionality,
You can Reverse the "Goods Movement"
Regards
Seegal -
How to release Stock blocked against deleted line items from Sales order.
We have Scenario as follows.
Sales order made for items available in stock. Deleted few lineitems from sales order balance items delivered and invoiced. Sales cycle is complete in all sense.
What we have noticed is when we are creating new sales order / Delivery for deleted items from above Sales order it shows deleted quantity is blocked against old sales order. These line items are no longer
available in old sales order since it is deleted also it is not appearing in open sales order report (VA05).
Overall stock available is same as quantity mentioned in deleted line item.
In MD04 - Sales requirenment transaction it shows sales order / line item against which it is blocked.
i.e deleted line item.
How to release these stock and make available for sales. Any standard process available ? or any other solutions
Thanks & Regards,I got a solution for my question from other forum. for info
Go to SE38 and enter program SDRQCR21 then execute...
Enter line item which is blocked for sales order in MD04 and enter plant then check Data
transfer box and uncheck other boxes... It will pop up information and click yes...
You will get one report and Stock inconsistency will go off and then check it in MD04....
regards -
Status is not updated from delivery to sales order item.
Dear Folks,
One user created sales order with 10 line items and he created delivery and later he deleted line item 30 in that delivery document and with remaining 9 line item he done the PGI & Billing.Here what is the problem is the deleted line item in sales order status showing as completed and delivered quatity showing as 10.Status is not updated from delivery to sales order item.Please let me know how to resolve this?
Thanks & Regards,
murali.Dear Murali,
Please go to VTLA transaction then select your delivery and order types after that go in to the details of the item level settings here you check field called Update document flow under Control data tab.
I hope it will help you,
Regards,
Murali. -
DELETE ADJACENT DUPLICATES FROM itab
Hi Frends, can any one explain me about
<b>DELETE ADJACENT DUPLICATES FROM itab</b>
and can any one give me sample program using the above statement.
full points will be given for good example
Thanks and Regards
Vijayai am sending 2 programs to u:
DESCRIPTION: INTERACTIVE REPORT FOR SALES DOCUMENT
*FOR PRINTING SALES DOCUMENT HEADER, SALES DOCUMENT DETAILS, PARTNER
DETAILS, SCHEDULE LINE DATA.
D A T A D E C L A R A T I O N S *
INCLUDE z8vg_isro1.
INITIALIZATION.
v_chkbox = ' '.
v_chkbox1 = ''.
S T A R T O F S E L E C T I O N *
SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE text-028.
SELECT-OPTIONS: s_vbeln FOR i_vbak-vbeln.
"FOR RANGE OF VALUES.
SELECTION-SCREEN END OF BLOCK bl1.
A T S E L E C T I O N S C R E E N ( V A L I D A T I O N S ) *
AT SELECTION-SCREEN.
Check if record exists or not.
PERFORM zf_validations.
S T A R T O F S E L E C T I O N *
START-OF-SELECTION.
*this is event blocks which is executed when the user chooses the
*corresponding function key
REFRESH i_ucomm.
CLEAR i_ucomm.
i_ucomm-ucomm = 'G002'. " schdl data
APPEND i_ucomm.
SET PF-STATUS 'MENU2' EXCLUDING i_ucomm.
" MENU BAR STATUS.
*populating sales order header data , item data , partner data ,
*schedule data
PERFORM zf_select_headerdata.
AT USER-COMMAND.
"This event is executed whenever the user presses a menu option 'execute
"' in the list
CASE sy-ucomm.
WHEN 'EX01'. "Cancel
LEAVE PROGRAM.
WHEN 'GO01'. "for item data
vflag = '0'.
REFRESH i_ucomm.
CLEAR i_ucomm.
i_ucomm-ucomm = 'GO01'. " item data
APPEND i_ucomm.
SET PF-STATUS 'MENU2' EXCLUDING i_ucomm .
PERFORM zf_select_details.
WHEN 'G002'. "for schedule data .
REFRESH i_ucomm.
CLEAR i_ucomm.
i_ucomm-ucomm = 'G000'.
APPEND i_ucomm.
APPEND 'GO01' TO i_ucomm.
APPEND 'G002' TO i_ucomm.
SET PF-STATUS 'MENU2' EXCLUDING i_ucomm .
PERFORM zf_scheduledata .
WHEN 'G000'.
"function code for displaying partner details.
REFRESH i_ucomm.
CLEAR i_ucomm.
i_ucomm-ucomm = 'G000'.
APPEND i_ucomm.
APPEND 'GO01' TO i_ucomm.
APPEND 'G002' TO i_ucomm.
SET PF-STATUS 'MENU2' EXCLUDING i_ucomm .
IF vflag = '1'.
PERFORM zf_partnerdetails.
" FOR PARTNER DETAILS OF HEADER
ELSE.
PERFORM zf_partnerdetails1.
" FOR PARTNER DETAILS OF SALES ORDER ITEMS .
ENDIF.
WHEN 'BACK'.
LEAVE PROGRAM.
ENDCASE.
*& FORM TOP_OF_PAGE
TOP-OF-PAGE DURING LINE-SELECTION.
printing header for secondary list of report.
PERFORM zf_tols.
TOP-OF-PAGE.
printing hearder for basic list of report
PERFORM zf_top.
*& Form VALIDATIONS
subroutine to check whether record exists or not
--> p1 text
<-- p2 text
FORM zf_validations .
SELECT SINGLE vbeln FROM vbak
INTO i_vbak-vbeln
WHERE vbeln IN s_vbeln.
EXIT.
CHECK IF THE RECORD EXISTS OR NOT.
IF sy-subrc <> 0.
MESSAGE e001.
ENDIF.
ENDFORM. " VALIDATIONS
*& Form SELECT_HEADERDATA
subroutine for populating header data and other details.
--> p1 text
<-- p2 text
FORM zf_select_headerdata .
*refreshing all the internal tables.
CLEAR i_vbak.
REFRESH i_vbak.
CLEAR i_vbap.
REFRESH i_vbap.
CLEAR i_vbpa.
REFRESH i_vbpa.
CLEAR i_vbep.
REFRESH i_vbep.
*populating sales order header data , item data , partner data ,
*schedule data
SELECT vbeln
erdat
vkorg
FROM vbak
INTO TABLE i_vbak
WHERE vbeln IN s_vbeln.
IF NOT i_vbak[] IS INITIAL.
SELECT vbeln
posnr
matnr FROM vbap
INTO TABLE i_vbap
FOR ALL ENTRIES IN i_vbak
WHERE vbeln = i_vbak-vbeln.
ENDIF.
IF sy-subrc <> 0.
MESSAGE e004.
ENDIF.
SORT i_vbap BY vbeln posnr.
" SORTING TABLE WITH KEY FIELDS .
REFRESH i_mat.
CLEAR i_mat.
fetching of unique material numbers corresponding sales orderno.
LOOP AT i_vbap.
i_mat-matnr = i_vbap-matnr.
APPEND i_mat.
ENDLOOP.
SORT i_mat BY matnr. " sorting of material nos.
IF sy-SUBRC = 0.
deleting duplicate entries from table
DELETE ADJACENT DUPLICATES FROM i_mat
COMPARING matnr.
*endif.
REFRESH i_mat1.
CLEAR i_mat1.
populating material no and dscription .
SELECT matnr
maktx FROM makt
INTO TABLE i_mat1
FOR ALL ENTRIES IN i_mat
WHERE matnr = i_mat-matnr.
SELECT vbeln
posnr
parvw
kunnr
FROM vbpa
INTO TABLE i_vbpa
FOR ALL ENTRIES IN i_vbap
WHERE vbeln = i_vbap-vbeln .
SORT i_vbap BY vbeln posnr.
REFRESH i_tvbpa.
REFRESH i_tpartf.
CLEAR i_tpartf.
*FOR FETCHING UNIQUE PARTNER FUNCTIONS
LOOP AT i_vbpa.
i_tpartf-parvw = i_vbpa-parvw.
APPEND i_tpartf.
ENDLOOP.
SORT i_tpartf BY parvw.
DELETE ADJACENT DUPLICATES FROM i_tpartf
COMPARING parvw.
SELECT spras
parvw
vtext
FROM tpart
INTO TABLE i_tvbpa
FOR ALL ENTRIES IN i_tpartf
WHERE parvw = i_tpartf-parvw AND spras = sy-langu.
IF NOT i_vbap[] IS INITIAL.
SELECT vbeln
posnr
etenr
ettyp
lfrel
edatu
FROM vbep
INTO TABLE i_vbep
FOR ALL ENTRIES IN i_vbap
WHERE vbeln = i_vbap-vbeln.
ENDIF.
SORT i_vbap BY vbeln posnr.
to fetch data from internal table to print report
LOOP AT i_vbak.
WRITE:/1 sy-vline,10 v_chkbox AS CHECKBOX, i_vbak-vbeln,28
sy-vline,
30 i_vbak-erdat,48 sy-vline,
50 i_vbak-vkorg, 132 sy-vline.
ENDLOOP.
ULINE.
ENDFORM. " SELECT_HEADERDATA
*& Form ZF_SELECT_DETAILS
SUBROUTINE FOR DISPLAYING SELECTED ITEM DETAILS DATA
--> p1 text
<-- p2 text
FORM zf_select_details .
vflag = 0.
WRITE:/1 sy-vline,10 text-006 COLOR 3,28 sy-vline,
30 text-007 COLOR 3, 48 sy-vline,
50 text-008 COLOR 3, 68 sy-vline,
70 text-022 COLOR 3, 132 sy-vline.
ULINE.
CLEAR i_selvbap.
CLEAR i_final.
REFRESH i_selvbap.
REFRESH i_final.
CLEAR i_mat1.
vnline = 7.
DO.
READ LINE vnline FIELD VALUE i_vbak-vbeln v_chkbox.
" READING LINES FROM BASIC LIST.
IF sy-subrc <> 0. " no lines read.
EXIT.
ENDIF.
IF v_chkbox = 'X'.
" checking of selected items from basic list.
*alpha conversion function - During conversion from the external to the
*internal format, the system checks to see
*if input is purely nummeric or not ,if not all spaces to the left of
*the value are filled with zeroes ('0').
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = i_vbak-vbeln
IMPORTING
output = i_selvbap-vbeln.
APPEND i_selvbap.
" appending values from header line to body.
flag = flag + 1.
" TO CHECK VALUE OF CHECKBOX.
CLEAR i_vbak.
" clearing of header line after appending.
ENDIF.
vnline = vnline + 1.
ENDDO.
IF flag <> 0.
CLEAR i_final.
CHECK NOT i_selvbap[] IS INITIAL.
LOOP AT i_selvbap.
LOOP AT i_vbap WHERE vbeln = i_selvbap-vbeln.
READ TABLE i_mat1 WITH KEY matnr = i_vbap-matnr BINARY SEARCH.
IF sy-subrc = 0.
i_final-vbeln = i_vbap-vbeln.
i_final-posnr = i_vbap-posnr.
i_final-matnr = i_vbap-matnr.
i_final-maktx = i_mat1-maktx.
APPEND i_final.
CLEAR i_mat1.
ENDIF.
ENDLOOP.
CLEAR i_selvbap.
CLEAR i_vbap.
CLEAR i_final.
ENDLOOP.
ENDIF.
IF flag = 0.
MESSAGE e005.
ENDIF.
to fetch data from internal table to print report
LOOP AT i_final.
WRITE:/1 sy-vline,10 v_chkbox1 AS CHECKBOX,i_final-vbeln,28 sy-vline
30 i_final-posnr, 48 sy-vline,
50 i_final-matnr, 68 sy-vline,
70 i_final-maktx,
132 sy-vline.
ENDLOOP.
ULINE.
ENDFORM. " ZF_SELECT_DETAILS
*& Form ZF_TOLS
text
--> p1 text
<-- p2 text
FORM zf_tols .
*printing header of secondary list
ULINE.
WRITE:/10 text-023,20 text-001 COLOR 4, 45 text-019 COLOR 4.
WRITE: 80 text-024,90 sy-datum .
WRITE:/10 text-025,20 text-027,80 text-026,90 sy-pagno.
WRITE:/.
ULINE.
ENDFORM. " ZF_TOLS
*& Form ZF_TOP
text
--> p1 text
<-- p2 text
FORM zf_top .
*printing header of basic list
ULINE.
WRITE:/10 text-023,20 text-001 COLOR 4 ,45 text-002 COLOR 4.
WRITE: 80 text-024, 90 sy-datum.
WRITE:/10 text-025,20 text-027,80 text-026,90 sy-pagno.
ULINE.
WRITE:/1 sy-vline, 10 text-003 COLOR 3 ,28 sy-vline,
30 text-004 COLOR 3 ,48 sy-vline,
50 text-005 COLOR 3 ,132 sy-vline.
ULINE.
ENDFORM. " ZF_TOP
*& Form ZF_PARTNERDETAILS
SUBROUTINE FOR DISPLAYING SELECTED PARTNER DETAILS DATA
--> p1 text
<-- p2 text
FORM zf_partnerdetails .
IF vflag = 1.
WRITE:/1 sy-vline,10 text-016 COLOR 3,28 sy-vline,
30 text-017 COLOR 3,48 sy-vline,
30 text-018 COLOR 3,48 sy-vline,
70 text-021 COLOR 3, 132 sy-vline.
ULINE.
CLEAR i_selvbpa.
REFRESH i_selvbpa.
" clearing work area and body of internal tables
REFRESH i_finalpd.
vnline = 7.
DO.
CLEAR i_selvbpa.
READ LINE vnline FIELD VALUE i_vbak-vbeln v_chkbox.
" READING LINES FROM BASIC LIST.
IF sy-subrc <> 0.
" NO LINES READ
EXIT.
ENDIF.
IF v_chkbox = 'X'.
" if any value is selected
*converts any number into a string fill with zeroes, with the number at
*the extreme right.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = i_vbak-vbeln
IMPORTING
output = i_selvbpa-vbeln.
APPEND i_selvbpa.
CLEAR i_vbak.
flag = flag + 1.
ENDIF.
vnline = vnline + 1.
ENDDO.
IF flag <> 0.
CHECK NOT i_selvbpa[] IS INITIAL.
LOOP AT i_selvbpa.
LOOP AT i_vbpa WHERE vbeln = i_selvbpa-vbeln.
READ TABLE i_tvbpa WITH KEY parvw = i_vbpa-parvw BINARY SEARCH
IF sy-subrc = 0..
i_finalpd-vbeln = i_vbpa-vbeln.
i_finalpd-posnr = i_vbpa-posnr.
i_finalpd-parvw = i_vbpa-parvw.
i_finalpd-vtext = i_tvbpa-vtext.
APPEND i_finalpd.
CLEAR i_tvbpa.
ENDIF.
ENDLOOP.
ENDLOOP.
ENDIF.
IF flag = 0.
MESSAGE e005.
ENDIF.
LOOP AT i_finalpd.
WRITE:/1 sy-vline,10 i_finalpd-vbeln, 28 sy-vline,
30 i_finalpd-posnr, 48 SY-VLINE,
30 i_finalpd-parvw, 48 sy-vline,
70 i_finalpd-vtext, 132 sy-vline.
ENDLOOP.
ULINE.
ENDIF.
ENDFORM. " ZF_PARTNERDETAILS
*& Form ZF_SCHEDULEDATA
SUBROUTINE FOR DISPLAYING SELECTED ITEM SCHEDULE DATA
--> p1 text
<-- p2 text
FORM zf_scheduledata .
vflag = 0.
WRITE:/1 sy-vline,10 text-009 COLOR 3,18 sy-vline,
20 text-011 COLOR 3,38 sy-vline,
40 text-012 COLOR 3,58 sy-vline,
60 text-013 COLOR 3,78 sy-vline,
80 text-020 COLOR 3,98 sy-vline,
100 text-015 COLOR 3,132 sy-vline.
ULINE.
CLEAR i_selvbep.
REFRESH i_selvbep.
vnline1 = 5.
CLEAR flag.
CLEAR i_final.
REFRESH i_finalsd.
DO.
READ LINE vnline1 FIELD VALUE i_final-vbeln v_chkbox1 i_final-posnr
. " READING LINES FROM BASIC LIST.
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF v_chkbox1 = 'X'.
*converts any number into a string fill with zeroes, with the number at
*the extreme right
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = i_final-vbeln
IMPORTING
output = i_selvbep-vbeln.
i_selvbep-posnr = i_final-posnr.
APPEND i_selvbep.
CLEAR i_final.
flag = flag + 1.
ENDIF.
vnline1 = vnline1 + 1.
ENDDO.
IF flag <> 0.
CHECK NOT i_selvbep[] IS INITIAL.
LOOP AT i_selvbep.
LOOP AT i_vbep WHERE vbeln = i_selvbep-vbeln AND posnr =
i_selvbep-posnr.
i_finalsd-vbeln = i_vbep-vbeln.
i_finalsd-posnr = i_vbep-posnr.
i_finalsd-etenr = i_vbep-etenr.
i_finalsd-ettyp = i_vbep-ettyp.
i_finalsd-lfrel = i_vbep-lfrel.
i_finalsd-edatu = i_vbep-edatu.
APPEND i_finalsd.
CLEAR i_selvbep.
CLEAR i_vbep.
CLEAR i_finalsd.
ENDLOOP.
ENDLOOP.
ENDIF.
IF flag = 0.
MESSAGE e005.
ENDIF.
LOOP AT i_finalsd.
WRITE:/1 sy-vline,10 i_finalsd-vbeln,18 sy-vline,
20 i_finalsd-posnr, 38 sy-vline,
40 i_finalsd-etenr, 58 sy-vline,
60 i_finalsd-ettyp, 78 sy-vline,
80 i_finalsd-lfrel, 98 sy-vline,
100 i_finalsd-edatu,132 sy-vline.
CLEAR i_finalsd.
ENDLOOP.
ULINE.
ENDFORM. " ZF_SCHEDULEDATA
*& Form ZF_PARTNERDETAILS1
text
--> p1 text
<-- p2 text
FORM zf_partnerdetails1 .
vflag = 1.
WRITE:/1 sy-vline,10 text-016 COLOR 3,18 sy-vline,
20 text-017 COLOR 3,38 sy-vline,
40 text-018 COLOR 3,58 sy-vline,
60 text-021 COLOR 3,78 sy-vline,
132 sy-vline.
ULINE.
CLEAR i_selvbpa1.
REFRESH i_selvbpa1.
REFRESH i_finalpd1.
vnline1 = 7.
DO.
CLEAR I_SELVBEP.
READ LINE vnline1 FIELD VALUE i_final-vbeln v_chkbox1 i_final-posnr
. " READING LINES FROM BASIC LIST.
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF v_chkbox1 = 'X'.
*converts any number into a string fill with zeroes, with the number at
*the extreme right
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = i_final-vbeln
IMPORTING
output = i_selvbpa1-vbeln.
i_selvbpa1-posnr = i_final-posnr.
APPEND i_selvbpa1.
CLEAR i_final.
flag = flag + 1.
ENDIF.
vnline1 = vnline1 + 1.
ENDDO.
IF flag <> 0.
CLEAR i_vbpa.
CLEAR i_finalpd1.
CHECK NOT i_selvbpa1[] IS INITIAL.
LOOP AT i_selvbpa1.
LOOP AT i_vbpa WHERE vbeln = i_selvbpa1-vbeln.
CLEAR i_finalpd1.
IF sy-subrc = 0.
i_finalpd1-vbeln = i_vbpa-vbeln.
IF i_vbpa-posnr = 0 OR i_vbpa-posnr = ''.
i_finalpd1-parvw1 = 'NO DATA EXISTS'.
ELSE.
i_finalpd1-posnr = i_vbpa-posnr.
i_finalpd1-parvw = i_vbpa-parvw.
i_finalpd1-vtext = i_vbpa-vtext.
i_finalpd1-kunnr = i_vbpa-kunnr.
ENDIF.
APPEND i_finalpd1.
IF i_finalpd1-vbeln = i_selvbpa1-vbeln.
EXIT.
ENDIF.
CLEAR i_vbpa.
CLEAR i_finalpd1.
ENDIF.
ENDLOOP.
ENDLOOP.
ENDIF.
IF flag = 0.
MESSAGE e005.
ENDIF.
fetching data from internal table for printing.
LOOP AT i_finalpd1.
WRITE:/1 sy-vline,10 i_finalpd1-vbeln,18 sy-vline,
20 I_FINALPD1-POSNR, 38 SY-VLINE,
40 i_finalpd1-parvw1,
58 SY-VLINE,
60 i_finalpd1-vtext,
78 SY-VLINE,
80 i_finalpd1-kunnr,
132 sy-vline.
ENDLOOP.
ULINE.
ENDFORM. " ZF_PARTNERDETAILS1
2nd is :-
REPORT Z8NB_SHA10_1
NO STANDARD PAGE HEADING
LINE-COUNT 30
LINE-SIZE 170
MESSAGE-ID Z8NBSHADOW.
T A B L E D E C L A R A T I O N *
TABLES : LIKP. " Delivery Header.
T Y P E D E C L A R A T I O N *
**-- Type decleration for Delivery Header
TYPES : BEGIN OF T_LIKP,
VBELN LIKE LIKP-VBELN, " Delivery Number
ERDAT LIKE LIKP-ERDAT, " Date on which record was craeted
KUNNR LIKE LIKP-KUNNR, " Sold-to-party
KUNAG LIKE LIKP-KUNAG, " Ship-to-party
TRMTYP LIKE LIKP-TRMTYP, " Means of transport
END OF T_LIKP.
**-- Type decleration for Delivery Items
TYPES : BEGIN OF T_LIPS,
VBELN LIKE LIPS-VBELN, " Delivery Number
POSNR LIKE LIPS-POSNR, " Delivery Item Number
MATNR LIKE LIPS-MATNR, " Material Number
LFIMG LIKE LIPS-LFIMG , " DELIVERED QTY
MEINS LIKE LIPS-MEINS, " Unit of Measurement
BRGEW LIKE LIPS-BRGEW, " Gross Weight
GEWEI LIKE LIPS-GEWEI, " Weight Unit
VOLUM LIKE LIPS-VOLUM, " Volumn
VOLEH LIKE LIPS-VOLEH, " Volumn Unit
END OF T_LIPS.
**-- Type decleration for Customer Details
TYPES : BEGIN OF T_KNA1,
KUNNR LIKE KNA1-KUNNR, " Customer Number
NAME1 LIKE KNA1-NAME1, " Name1
NAME2 LIKE KNA1-NAME2, " Name2
STRAS LIKE KNA1-STRAS, " House/ Street Number
REGIO LIKE KNA1-REGIO, " Region
ORT01 LIKE KNA1-ORT01, " City
LAND1 LIKE KNA1-LAND1, " Country Key
TELF1 LIKE KNA1-TELF1, " First Telephone Number
END OF T_KNA1.
**-- Type decleration for Partner Function
TYPES : BEGIN OF T_KNVP,
KUNNR LIKE KNVP-KUNNR, " Customer Number
PARVW LIKE KNVP-PARVW, " Partner Function
KUNN2 LIKE KNVP-KUNN2, " Cust no of business partner
END OF T_KNVP.
**-- Type decleration for Shipment Header
TYPES : BEGIN OF T_VTTK,
TKNUM LIKE VTTK-TKNUM, " Shipment Number
TNDR_CRNM LIKE VTTK-TNDR_CRNM, " Carrier
END OF T_VTTK.
**-- Type decleration for Shipment Item
TYPES : BEGIN OF T_VTTP,
TKNUM LIKE VTTP-TKNUM, " Shipment Number
VBELN LIKE VTTP-VBELN, " Order Number
END OF T_VTTP.
**-- Type decleration for Material Description
TYPES : BEGIN OF T_MAKT,
MATNR LIKE MAKT-MATNR, " Material Number
MAKTX LIKE MAKT-MAKTX, " Material Description
END OF T_MAKT.
**-- Type decleration for Final table containing all item details
TYPES : BEGIN OF T_FINAL,
VBELN LIKE LIPS-VBELN, " Delivery Number
POSNR LIKE LIPS-POSNR, " Delivery Item Number
MATNR LIKE LIPS-MATNR, " Material Number
LFIMG LIKE LIPS-LFIMG , " DELIVERED QTY
MEINS LIKE LIPS-MEINS, " Unit of Measurement
BRGEW LIKE LIPS-BRGEW, " Gross Weight
GEWEI LIKE LIPS-GEWEI, " Weight Unit
VOLUM LIKE LIPS-VOLUM, " Volumn
VOLEH LIKE LIPS-VOLEH, " Volumn Unit
MAKTX LIKE MAKT-MAKTX, " Material Description
END OF T_FINAL.
C O N S T A N T D E C E L E R A T I O N *
CONSTANTS: C_RE(4) TYPE C VALUE 'RE', "Bill-to-party
C_EQ(4) TYPE C VALUE 'EQ', "Equal To
C_I(2) TYPE C VALUE 'I'. "Inclusion
V A R I A B L E D E C E L E R A T I O N *
DATA : V_SUM TYPE LIPS-LFIMG, "For calculating total of Quantity.
V_SUM_FINAL TYPE LIPS-LFIMG, "For displaying total
V_DESC TYPE C LENGTH 20. "Storing Description
I N T E R N A L D E C L A R A T I O N *
**-- Internal table for delivery header data
DATA: IT_LIKP TYPE STANDARD TABLE OF T_LIKP WITH HEADER LINE,
**-- Internal table for delivery item data
IT_LIPS TYPE STANDARD TABLE OF T_LIPS WITH HEADER LINE,
**-- Internal table for bill-to-party details
IT_KNA1 TYPE STANDARD TABLE OF T_KNA1 WITH HEADER LINE,
**-- Internal table to store partner function data
IT_KVNP TYPE STANDARD TABLE OF T_KNVP WITH HEADER LINE,
**-- Internal table for shipment header data
IT_VTTK TYPE STANDARD TABLE OF T_VTTK WITH HEADER LINE,
**-- Internal table for shipmant item data
IT_VTTP TYPE STANDARD TABLE OF T_VTTP WITH HEADER LINE,
**-- Internal table for material description
IT_MAKT TYPE STANDARD TABLE OF T_MAKT WITH HEADER LINE,
**-- Internal table for final item details
IT_FINAL TYPE STANDARD TABLE OF T_FINAL WITH HEADER LINE,
**-- Temporary internal table for Shipment Item
IT_VTTP_TEMP TYPE STANDARD TABLE OF T_VTTP WITH HEADER LINE,
**-- Temporary internal table for delivery item
IT_LIPS_TEMP TYPE STANDARD TABLE OF T_LIPS WITH HEADER LINE,
**-- Temporary internal table for delivery header
IT_LIKP_TEMP TYPE STANDARD TABLE OF T_LIKP WITH HEADER LINE.
**-- Ranges for Inquiry/Quotation
RANGES R_CUSTOMER FOR KNA1-KUNNR.
S E L C T I O N S C R E E N *
**-- Selection screen containing Delivery no as the obligatory field
SELECTION-SCREEN BEGIN OF BLOCK CHARLY WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_VBELN FOR LIKP-VBELN OBLIGATORY.
SELECTION-SCREEN END OF BLOCK CHARLY.
I N I T I A L I Z A T I O N *
INITIALIZATION.
**-- Clear all internal tables
CLEAR : IT_LIKP,
IT_LIPS,
IT_KNA1,
IT_KVNP,
IT_VTTK,
IT_VTTP,
IT_MAKT,
IT_FINAL,
IT_VTTP_TEMP,
R_CUSTOMER,
V_SUM,
V_SUM_FINAL,
V_DESC.
**-- Refresh all internal tables
REFRESH : IT_LIKP,
IT_LIPS,
IT_KNA1,
IT_KVNP,
IT_VTTK,
IT_VTTP,
IT_MAKT,
IT_FINAL,
IT_VTTP_TEMP,
R_CUSTOMER.
A T S E L E C T I O N S C R E E N ( V A L I D A T I O N S ) *
AT SELECTION-SCREEN.
**-- Check the sales order number exists in the database table or not
SELECT SINGLE VBELN
FROM LIKP
INTO IT_LIKP
WHERE VBELN IN S_VBELN.
**-- If no single data selected display error message.
IF SY-SUBRC <> 0.
MESSAGE E000.
ENDIF.
S T A R T O F S E L E C T I O N *
START-OF-SELECTION.
**-- Fetch data from the transprant tables into the internal tables
PERFORM GET_DATA.
**-- Final table for complete item data
PERFORM FINAL_DATA.
E N D O F S E L E C T I O N *
END-OF-SELECTION.
**-- Display of Delivery Note
PERFORM DISPLAY_DATA.
*& Form GET_DATA
text
FORM GET_DATA .
**-- Fetch data from Delivery Header Table ( LIKP )
SELECT VBELN
ERDAT
KUNNR
KUNAG
TRMTYP
FROM LIKP
INTO TABLE IT_LIKP
WHERE VBELN IN S_VBELN
ORDER BY VBELN.
**-- Check SY_SUBRC.
IF SY-SUBRC <> 0 .
ENDIF.
**-- If record is present in IT_LIKP internal table then fetch data from
**-- Delivery Item table (LIPS)
IF NOT IT_LIKP[] IS INITIAL.
SELECT VBELN
POSNR
MATNR
LFIMG
MEINS
BRGEW
GEWEI
VOLUM
VOLEH
FROM LIPS
INTO TABLE IT_LIPS
FOR ALL ENTRIES IN IT_LIKP
WHERE VBELN = IT_LIKP-VBELN.
**-- If record found, sort the internal table on delivery no and item no
IF SY-SUBRC = 0.
SORT IT_LIPS BY VBELN POSNR.
ENDIF.
ENDIF.
**-- If record present in IT_LIPS internal table then fetch data from
**-- Shipment Item Table where delivery number is same
IF NOT IT_LIPS[] IS INITIAL.
SELECT TKNUM
VBELN
FROM VTTP
INTO TABLE IT_VTTP
FOR ALL ENTRIES IN IT_LIPS
WHERE VBELN = IT_LIPS-VBELN.
**-- If record found, sort the internal table on shipment no
IF SY-SUBRC = 0.
SORT IT_VTTP BY TKNUM.
ENDIF.
ENDIF.
**-- Move records in IT_LIPS to an temporary internal table for
**-- removing the duplicate entries of material number.
IT_LIPS_TEMP[] = IT_LIPS[].
SORT IT_LIPS_TEMP BY MATNR.
DELETE ADJACENT DUPLICATES FROM IT_LIPS_TEMP
COMPARING MATNR.
IF NOT IT_LIPS_TEMP[] IS INITIAL.
**-- Fetch Material description from MAKT for all materials in
**-- IT_LIPS_TEMP
SELECT MATNR
MAKTX
INTO TABLE IT_MAKT
FROM MAKT FOR ALL ENTRIES IN IT_LIPS_TEMP
WHERE MATNR = IT_LIPS_TEMP-MATNR.
**-- If record found, sort the internal table on Matreial No.
IF SY-SUBRC = 0.
SORT IT_MAKT BY MATNR.
ENDIF.
ENDIF.
**-- Transfer data in shipment item internal table to a temporary
**-- internal table to delete duplicate entries of shipment number.
IT_VTTP_TEMP[] = IT_VTTP[].
SORT IT_VTTP_TEMP BY TKNUM.
DELETE ADJACENT DUPLICATES FROM IT_VTTP_TEMP
COMPARING TKNUM.
**-- If record found in IT_VTTP_TEMP then fetch shipment no and carrier
**--from Shipment Header Table(VTTK).
IF NOT IT_VTTP_TEMP[] IS INITIAL.
SELECT TKNUM
TNDR_CRNM
FROM VTTK
INTO TABLE IT_VTTK
FOR ALL ENTRIES IN IT_VTTP_TEMP
WHERE TKNUM = IT_VTTP_TEMP-TKNUM.
**-- If record found, sort the internal table on shipment no
IF SY-SUBRC = 0.
SORT IT_VTTK BY TKNUM.
ENDIF.
ENDIF.
**-- Move the data of IT_LIKP to an internal table to remove the
**-- duplicate entries of sold-to-party number.
IT_LIKP_TEMP[] = IT_LIKP[].
SORT IT_LIKP_TEMP BY KUNAG.
DELETE ADJACENT DUPLICATES FROM IT_LIKP_TEMP
-
How to copy Shimpment Partners from Delivery?
Hi,
I know that a Shipment is used usually to group multiple deliveries.
If I have the same partners, in the delivery that I want to group, is there a way to configure copy control from Delivery to Shipment?
Tula GentilDear Dham
Please cancel the both the invoices then only you can delete delivery from delivery you cannot delete line item bcause delivery is the smae for both line items then process accordingly do delivery for line item wise (OR) try to see revenue account determination config in the masters how every try to post with existing
Revenue account Determination
Application
Company Code
Chart of accounts
Sales org
Acc assi Grp customer master
Acc assi Grp material master
GL Account for account receivables
OR you need to find out FI posting period if it is closed trying to for previous monnth then account document will not get genertaed
ask fi to open posting period try to close
Regards
M L Naidu -
ADOBE WORK SPACE HAS DELETED IMPORTANT FILES FROM MY DESK TOP. DOES ANYONE KNOW HOW TO RECOVER THEM? ADOBE WORKSPACE IS SUPPOSE TO BE RETIRED, AND THE SYSTEM WILL NOT ALLOW ME TO DOWNLOAD OR RECOVER THE MISSING FILES!!!!
901.650.4724Hi Sara1
Several of our PDF File icons on my Desktop images went blank; and, cannot be accessed now. I subsequently received a notification from your company stating that Workspace will be retiring and all files left will be permanently deleted if they aren't down loaded from the site by a certain date in January 2015. However, when I opened the web site, per your company's directions, I wasn't able to open the downloaded files! Please correct this error ASAP.
Regards,
Mr. F. Lee McCullough, P.O.C. - Executive VP/Business Development
Omega Group International, LLC
www.Omega-GroupLLC.Org
Post Office Box 40556Memphis, TN 38174
901.650.4724 Mobile
901.568.2090 Office
"Promote a Healthy Workforce" - WWW.XOOMA.COM/MWI
Statement of Confidentiality: The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any. -
How to delete text item in delivery
SAP Expert,
I am facing one problem in deleting text item from the delivery. In one case our store person have inserted taxt item by mistake in delivery. In the delivery there are two schedule lines one is of Tan and another is of tatx (which is by mistake inserted by him) he prepaired bill for the delivery and System split the delivery in two invoices, later on he cancelled the invoice of Text item Which value is 0. But now the delivery is showing pending in VF04 though we have invoice the 1st schedile line. After this I tried to delete the text itm by going to vl02n but system is not alowing me to delete the schedule line. error is document can not deleted. where as system is also not allowing thtough t-code vl09n after cancelling the invoice.
I need experts help to solve this problem. I wan to cleare the delivery from t-code VF04.
nikhilDear Thanks doe the prompt reply.
here the delivery is only one and system have created two invoices. I have cancell the invoice of 0 value by using t-code VF11, after this I tried for vl09 to reverse the goods movement but system is not allowing me becouse for the same delivery we have created two invoices and one is cancell.
so dear friend tell me is it possible for me to reverse the one schedule line from the delivery by using vl09n.
nikhil -
Unable to return vendor consign. to stock from delivery - LT0G
Dear All,
Unable to return vendor consignment to stock from delivery using VL0G after performing Goods Movement Reversal using TCode VL09 for Stock Transfer Order/Special Stock Consignment/Outbound Delivery
Parameters:
Stock Transfer Order from DC to Site - Vendor Consignment Inventory
Reverse PGI - VL09
Select Outbound Delivery - Item locked
Message no. L1618 - Return storage for delivery is not possible when IM is active
Your help will be greatly appreciated.
GaetanYou can use the following:
- stock can be moved from 916 to normal bin by LT01 / LT10
AND
- control message VL019 in OVM1 and VL173 as per OSS note 521409
AND
- delete the delivery item by setting the delivery qty to 0
AND
- create new delivery item
Recreating the item and do the picking again. I received this answer from OSS.
Regards,
Csaba
Edited by: Csaba Szommer on Sep 16, 2009 7:37 PM -
I deleted a contact, but they still show up in my text options to send. I would like to delete the contact from my texts too.
No don't restore your iphone. I've done that several times & it has never worked. -I still have deleted contacts in my iphone texts. *However if you do restore it you will not lose all your data, pics, text messages etc if you backup in iCloud. It restores back to original phone. Very nice :). Anyhowwww....
I JUST figured it out!! :))). Remove the contact from recents.
Start a text. You should see the deleted contact. All the way to the right of the name is a symbol. The symbol is a circle with "i" in the middle. Click that symbol then in red lettering click "remove from recents". -
How to Delete the dimension from the cube ?
Hi ,
how to Delete the dimension from the cube ?
i have added the new dimension by assiging one characteristic to that dimension .
now i want to delete it ,
but system saying that Dimension ZXXX contains InfoObjects; deletion not possible .
how to delete it ? any help .
ThanksMake sure you donot have any data in cube. If you have some data in cube, then you will not be able to see Delete option.
Right click on the cube-->Delete data.
Then double click on the cube>Goto Edit mode> select the IO under that Dimension> right click> now you will be able to see the Delete option (provided you have deleted all the date from Cube)
Then right click on Dimension-->Delete
Regards,
Pavan -
How can I create a fIlter to delete only "junk" from the server?
One of my E-mail accounts is that of a major client. I handle their customer service online. Normally our protocol is to always leave all messages on the server, so for that one Thunderbird account, I have it set to never delete messages on the server.
But the account recently started getting a lot of junk messages. Thunderbird is doing a remarkable job at marking those and placing them in the junk folder for that account. I would like to create a filter that could remove them from the server, preferably those more than "x" days old so I could monitor the activity to be sure that no important message are removed.
I did notice that in "Filters" I can create a custom filter from a header of my choice, but can't seem to create what I want which is:
- after mail is marked as Junk by Thunderbird to delete those messages from the server if they are older than "X" days (my choice of "X").
- not delete any other messages from the server for that accountI believe that did it! Thank you. I am running those changes on a secondary E-Mail address for the same job and server and it appears to be working properly.
-
I am having problems deleting unwanted photos from my photos app on my ipad, I synced with my pc as i wanted to see how the system worked, and now i cannot delete any of them, even with the delete button at the top left hand side, which does not function
If it was synced from your computer then it can't be deleted directly on the iPad, you will need remove/de-select it from where you synced it from on your computer and re-sync.
http://support.apple.com/kb/HT4236
Maybe you are looking for
-
Should I keep the battery in the machine or not?
I've heard some people say that when you're not using your laptop's battery (ie. you're on AC) you should take it out. This supposedly stops it from "wearing out" too quickly or something in that direction. Is there any truth to this?
-
Can I make and order photo books using iPhoto on my iPad?
I would like to make photo books for family and friends, but all I have is an iPad. Will it do the same thing?
-
Hello, Please, Is it possible to create a VAT code with 4 decimals? (exe: 9,5234%) And how can I customize it ? Thanks,
-
Dose middle tier installation asks for the instance name?
Dose middle tier installation asks for the instance name? If yes, should it be same as the infrastructure instance name? Regards, DN
-
I have a MacBook Pro, 10.8.6. I always have my windows open in Column view. Can we set the window width to resize to it's longest file? I'm always having to manually make the width wider and it's annoying. Thanks