Spool is not generating for deleted line item in PO.
Hi Experts,
A PO which was created in SRM pushed into SAP environment and when it was created initially spool was generated and user was able to take the print out. But if he delete a linte item no spool is created and message log was saying there is print relevent changes exists. I could the the change updated linte item change history of that PO.
I tried replicating the scenario in test environment but I have not come across this situation. Please help if any one worked on similar problem.
Thanks in advance,
Hi Experts,
Any suggestions.
Regards,
Similar Messages
-
Report for deleted line-items in Transfer Orders
Dear All,
Please help me in writing the code for "Report for deleted line-items in Transfer Orders".
regards,
nishuThanks. Repor completed.
-
Not able to delete line items using BAPI_OUTB_DELIVERY_CHANGE
Hi,
Not able to delete line items of a delivery using BAPI 'BAPI_OUTB_DELIVERY_CHANGE', with thte below code and even return parameter has zero messages.
I have even checked existing below posting.
https://www.sdn.sap.com/irj/scn/logon?redirect=http%3a%2f%2fforums.sdn.sap.com%2fthread.jspa%3fthreadid%3d782509
Below is the code that i am using.........
*wa1-deliv_numb = wa_lips-vbeln.
wa1-deliv_item = wa_lips-posnr.
APPEND wa1 to item_data.
wa-deliv_numb = vbeln_so .
wa-deliv_item = l_item.
wa-del_item = 'X'.
APPEND wa TO item_control.
w_header_data-deliv_numb = vbeln_so .
w_header_control-deliv_numb = vbeln_so .
w_delivery = vbeln_so .
*w_header_control-dlv_del = 'X'. "Delete whole Delivery
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
header_data = w_header_data
header_control = w_header_control
delivery = w_delivery
TABLES
item_data = item_data
item_control = item_control
return = return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
I have even tried uncommenting item_data parameter but not able to delete line item.....i am able to delete whole delivery but not line items .........can any one of u help me in resolving this issiue plz ???
Regards,
M, ManoharKindly use WS_DELIVERY_UPDATE to delete the items
Sample code:
L_VBKOK-VBELN_VL = vbeln_so.
clear l_vbpok.
refresh l_vbpok.
l_vbpok-vbeln_vl = vbeln_so
l_vbpok-posnr_vl = wa_deliv_item.
l_vbpok-lips_del = c_x.
append l_vbpok.
set update task local.
call function 'WS_DELIVERY_UPDATE'
exporting
vbkok_wa = l_vbkok
commit = ' '
delivery = lv_delivery
tables
vbpok_tab = l_vbpok
exceptions
others = 0.
commit work and wait. -
Data upload:F-02: each documnet number to be generated for each line item
Dear ABAP experts,
I have a requirement.
When we uplaod customer or vendor invoices ,a document number will be generated or posted.
Similarly, my requirement is :When I do the same kind of uploads, for each line item in an excel file each document number has to be generated or posted .This upload is using Tcode: F-02.
How do I generate each document number for each line item (for each vendor or customer).
Please do the needful.Either send me a sample code or an idea how to proceed.
Thanks,
Hema.Hi,
using below code you can generate document number for each line Item.
PERFORM bdc_dynpro USING 'SAPMF05A' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
IF wa_final-field1 NE c_space.
convert date to user format
MOVE wa_final-field1 TO v_date.
CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'
EXPORTING
if_date = v_date
IMPORTING
ef_date = v_date1.
PERFORM bdc_field USING 'BKPF-BLDAT'
v_date1. " Document Date
Clear v_date field
CLEAR: v_date1 , v_date.
ENDIF.
PERFORM bdc_field USING 'BKPF-BLART'
wa_final-field4. " Document Type
PERFORM bdc_field USING 'BKPF-BUKRS'
wa_final-field2. " Company Code
IF wa_final-field3 NE c_space.
convert date to user format
MOVE wa_final-field3 TO v_date.
CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'
EXPORTING
if_date = v_date
IMPORTING
ef_date = v_date1.
PERFORM bdc_field USING 'BKPF-BUDAT'
v_date1. " Posting Date
Clear v_date field
CLEAR: v_date1 , v_date.
ENDIF.
PERFORM bdc_field USING 'BKPF-WAERS'
wa_final-field5. " Currency
PERFORM bdc_field USING 'BKPF-KURSF'
wa_final-field6. " Rate
PERFORM bdc_field USING 'BKPF-XBLNR'
wa_final-field7. " Reference
PERFORM bdc_field USING 'BKPF-BKTXT'
wa_final-field8. " Document Header Text
PERFORM bdc_field USING 'RF05A-NEWBS'
wa_final-field9. " Cr.Posting Key
PERFORM bdc_field USING 'RF05A-NEWKO'
wa_final-field10. " Cr.Vendorcode or GL Account
PERFORM bdc_dynpro USING 'SAPMF05A' '0302'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BSEG-HKONT'
wa_final-field11. " Dr.Alternative Recon A/c
PERFORM bdc_field USING 'BSEG-WRBTR'
wa_final-field12. " Dr.Amount in Document Currency
Begin of changes by someshwar
IF v_field5 NE 'jpy' OR v_field5 NE 'JPY'.
TRANSLATE v_field5 TO UPPER CASE.
IF v_field5 NE 'JPY'.
PERFORM bdc_field USING 'BSEG-DMBTR'
wa_final-field13. " Dr.Amount in Local Currency
ENDIF.
Changes end
PERFORM bdc_field USING 'BSEG-GSBER'
wa_final-field14. " Dr.Business Area
PERFORM bdc_field USING 'BSEG-ZTERM'
wa_final-field15. " Dr.Payment Terms
IF wa_final-field16 NE c_space.
convert date to user format
MOVE wa_final-field16 TO v_date.
CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'
EXPORTING
if_date = v_date
IMPORTING
ef_date = v_date1.
*Begin of changes by someshwar
IF wa_final-field16 NE '00000000'.
PERFORM bdc_field USING 'BSEG-ZFBDT'
v_date1. " Dr.Baseline date
ENDIF.
*Changes end
Clear v_date field
CLEAR: v_date1 , v_date.
ENDIF.
*Begin of changes by someshwar
IF wa_final-field17 NE ''.
PERFORM bdc_field USING 'BSEG-ZLSCH'
wa_final-field17. " Dr.Payment Method
ENDIF.
*changes end
PERFORM bdc_field USING 'BSEG-ZUONR'
wa_final-field18. " Dr.Assignment
PERFORM bdc_field USING 'BSEG-SGTXT'
wa_final-field19. " Dr.Text
*Perform Save posting
PERFORM save_post.
ELSE.
PERFORM bdc_dynpro USING 'SAPMF05A' '0302'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BSEG-HKONT'
wa_final-field11. " Dr.Alternative Recon A/c
PERFORM bdc_field USING 'BSEG-WRBTR'
wa_final-field12. " Dr.Amount in Document Currency
*Begin of changes by someshwar
IF v_field5 NE 'jpy' AND v_field5 NE 'JPY'.
TRANSLATE v_field5 TO UPPER CASE.
IF v_field5 NE 'JPY'.
PERFORM bdc_field USING 'BSEG-DMBTR'
wa_final-field13. " Dr.Amount in Local Currency
ENDIF.
Changes end
PERFORM bdc_field USING 'BSEG-GSBER'
wa_final-field14. " Dr.Business Area
PERFORM bdc_field USING 'BSEG-ZTERM'
wa_final-field15. " Dr.Payment Terms
IF wa_final-field16 NE c_space.
convert date to user format
MOVE wa_final-field16 TO v_date.
CALL FUNCTION '/SAPDII/SPP05_CONVERT_DATE'
EXPORTING
if_date = v_date
IMPORTING
ef_date = v_date1.
PERFORM bdc_field USING 'BSEG-ZFBDT'
v_date1. " Dr.Baseline date
ENDIF.
Clear v_date field
CLEAR: v_date1 , v_date.
ENDIF.
PERFORM bdc_field USING 'BSEG-ZLSCH'
wa_final-field17. " Dr.Payment Method
ENDIF.
PERFORM bdc_field USING 'BSEG-ZUONR'
wa_final-field18. " Dr.Assignment
PERFORM bdc_field USING 'BSEG-SGTXT'
wa_final-field19. " Dr.Text
*Perform Save posting
PERFORM bdc_field USING 'RF05A-NEWBS'
'40'. " Cr.Posting Key
PERFORM bdc_field USING 'RF05A-NEWKO'
'999996'. " Cr.Vendorcode or GL Account
PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'BU'.
*& Form BDC_TRANSACTION
FORM bdc_transaction USING p_tcode.
DATA: l_v_string TYPE string.
REFRESH i_messtab.
CALL TRANSACTION p_tcode USING i_bdcdata
MODE g_mode
UPDATE 'S'
MESSAGES INTO i_messtab.
IF NOT i_messtab[] IS INITIAL.
READ TABLE i_messtab WITH KEY msgtyp = 'E'.
IF sy-subrc EQ 0.
LOOP AT i_messtab.
IF i_messtab-msgtyp = 'E'.
PERFORM fill_error_table USING i_messtab-msgtyp
i_messtab-msgid
i_messtab-msgnr
i_messtab-msgv1
i_messtab-msgv2
i_messtab-msgv3
i_messtab-msgv4.
ENDIF.
ENDLOOP.
v_error = v_error + v_count.
ENDIF.
READ TABLE i_messtab WITH KEY msgtyp = 'S' msgnr = 312.
IF sy-subrc EQ 0.
SELECT SINGLE * FROM t100 WHERE sprsl = sy-langu
AND arbgb = i_messtab-msgid
AND msgnr = i_messtab-msgnr.
l_v_string = t100-text.
REPLACE '&' WITH i_messtab-msgv1 INTO l_v_string .
PERFORM fill_error_table USING i_messtab-msgtyp
'ZMSG_FI'
'025'
i_messtab-msgv1
wa_final2-field2
v_success = v_success + 1.
ELSE.
LOOP AT i_messtab.
IF i_messtab-msgtyp = 'S'.
PERFORM fill_error_table USING 'E'
i_messtab-msgid
i_messtab-msgnr
i_messtab-msgv1
i_messtab-msgv2
i_messtab-msgv3
i_messtab-msgv4.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
CLEAR : t100 , l_v_string .
ENDFORM. " BDC_TRANSACTION
Regards,
Siva. -
How to get report for deleted line items from sales orders
Dear FRIENDS,
please infirm the t.code or report for viewing the deleted line items from sales ordrers.
Kindly do the neeedful.
regards,
N.M.PAWARHi,
With transaction SE16 you can view table CDHDR for header changes and
CDPOS for item changes. This includes deletion.
OR
GO to VA03 - Display Sales order -> Put order no : don't press enterbutton. -> Go to Enviornment -> changes -> You will get details
Date ItmNo. SLNo Action
Hope this help please close the thread if answers -
Remove LIPS and VBUP entry for deleted line item on delivery
How can we remove an entry in LIPS and VBUP for a delivery line item that has been deleted? The delivery shows no line items when viewing with VL03N but the line item remains in LIPS and VBUP. When we try to cancel the entire delivery we receive an ABAP runtime error due to these inconsistent entries.
Hi Basavaraj,
Please let me know how can I do it by table level. There is another post regarding having same issues
http://scn.sap.com/thread/3384628
But the answer he say use only for very few entries. I have around 100 entries similiar cases.
Best regards,
Shahid Malayil -
Business area not defaulted for tax line item
Hello Friends,
I am posting Customer invoice, when I simulate the invoice that time Output tax is automatically calculating the tax. My problem is, in the Output tax line item business area is required field which is appearing in display mode.
T code - OBXM. Here we will configure this and at the month end we will run the following transactions.
F.5D, F.5E.
I want to know step by step cinformation for this. If you have any documentation send it to [email protected]
Rams.N
Points will be assigned for the right answerhi,
If you are using business area method then you want to create all sales tax GL with business area optional. And You create one GL like Tax clearing account(business area optional)and assign the same in OBXM against all the sales tax GLs.
Then you want to run F.5d and F.5e on everymonth.
govind. -
Spool no. not generating for the same shipement number
Hi,
I am working on shipment related forms. When i give the print of one shipment no., all the forms are going to one spool number. But my problem is when i take the same shipment number from second time onwards then all the forms are getting appended to the same spool number instead of creating a new spool number.
For example my shipment no.:- 1277489 contains 8 pages, when i take the same shipment no. for second time all the 8 pages getting appended and total 16 pages are going to that same spoll no. For third time 24 pages and 4th time 32 pages and so on... in the same spool request.
I have debugged the driver program, but i din't get any solution for that. So can any one suggest me of how to resolve this issue.
Thanks & Regards,
RamanaHi,
After selecting the print option, the print pop window appears. In that select the option New Spool Request.
Then give the print, it will come on new page.
You can also pass this option in the print program also. Pass TDNEWID = 'X' in parameter OUTPUT_OPTIONS.
Regards,
Vinod -
Workflow not working for multiple line items
Hi gurus,
we are working on ECN/ECO workflow.
Once ECN is created in CC01, our workflow triggers.
we are calling subflow from main WF for enhancing the materials of the Engineering change number(ECN).
Subflow will take the material to different departments for enhancing the views like,
Purchasing views by purchasing dept,
quality views by quality dept,
sales views by sales dept,
etc.
This whole process is working fine, if there is single material number in ECN.
But, if there are 2 material numbers, the control is not returning back to MAIN WF from Subflow.
do we need any config/setup to make it work. (we are using block while calling subflow).
Any help will be of gr8 use.
rgrds.
santosh.Can you please update on what is the status in the workflow log. You can check this from SWIA tcode.
If it is in process step please check for ST22 dump if any.
Thanks
Arghadip -
Cost Centre is not getting for all line items in FAGLL03 dump.
Hi All,
When we executhe the t.code FAGLL03, at the ledget level (0l&Z1) cost center filed is coming blank, however for one document cost center filed is displayed.
We executed FAGLL03, without ledger(0L&Z1) cost center filed is displayed.
Please let us know is there any setting to display cost center at the ledger wise?
Thanks and Regards,
RamHi Alex,
Thanks for your quick response.
we are using 6.0 version, is there any configuration to get cost center filed in the FAGLL03?
When we selected entry view, the all cost center fileds are displayed, however we selected GL view the cost center filed is coming blank.
I hope some config is there to display cost center filed in 6.0 ECC?
Thanks
Ram -
2LIS_02_ITM deleted line items are not reflected in BW
Hi,
Our current Data flow 2LIS_02_ITM-->DSO-->CUBE.
I am analyzing a Invoice, When it is created 01.04.2014 it has got 10 Line Items and all the data is load to BW,Invoice with 10 Line items.
In ECC I can now see the same Invoice only got 5 line items and from change log I can see 5 line items are deleted on 15.04.2014.These changes are not reflected in BW.In BW invoice data still shows 10 line items.
If I perform setup table job and ECC RSA3 for that invoice I am getting only 5.
I believe it’s something to do with 0RECORDMODE,Can you please let me know how to fix this in BW.
ThanksYes this is a known behavior in case of deltas.
For Deleted line items Rocancel field will have an entry with R.
To handle this you need to map ROCANCEL field in Technical group of transformation (Between Datasource to DSO) with 0Recordmode.
Once you will do that then after activating the data in DSO it will nullify the records and deleted order or item will not appear.
Regards,
AL -
Delete confirmations for PO line item
Hello gurus,
There is confirmation manually created/entered for a PO line items. I am trying to delete it but unable to do so in change mode. What could be the reason?
Please advise
Thanks
RJSDear,
Please check release is done or not. Please done then it is not possible to delete line item. First unrelease the P.O. then try to do the delete line item......
Regards,
Sandip -
Document should not splitt to tax line items
Hi,
Document should not splitt for tax line items,currently it is happining how contol this.
Thanks and RegHi,
Then in the document splitting configuration, you can remove the base item category for this TAx Item Category.
Regards,
SDNer -
Get the Change log for ALV line items
Hello Experts,
I am using editable ALV table to display/change data. When user modifies data from ALV line items manually (direct entry), this change is recorded in get_context_change_log method of context node. Also in the screen I have one button, on click of this button I do some calculation for selected line items in action method and update the context node with new values. But with this second approach (button action) though values gets changed this is not recorded in to get_context_change_log of context node. I tried to use method add_context_attribute_change in button action method to add attribute changes to change log tabel but it's not adding entries to change log. Does method add_context_attribute_change only works with OVS search helps and freely programmed value helps? And is there any other way for capturing changes(done by using action method and not manually) for ALV line items?
Thanks & Regards
JayantHere is code:
METHOD.
This method is in component controller, which gets called from View Action method (on click * of button).
FIELD-SYMBOLS:<lfs> TYPE Data.
*Data Declaration
DATA lo_nd_cn_apc_item TYPE REF TO if_wd_context_node.
DATA lit_apc_item TYPE wd_this->elements_cn_apc_item.
DATA lo_el_cn_apc_item TYPE REF TO if_wd_context_element.
data: l_component type ref to if_wd_component,
l_context type ref to if_wd_context,
lfd_added type abap_bool.
CLEAR:lo_nd_cn_apc_item,lo_el_cn_apc_item.
navigate from <CONTEXT> to <CN_APC_ITEM> via lead selection
lo_nd_cn_apc_item = wd_context->get_child_node( name = wd_this->wdctx_cn_apc_item ).
REFRESH:lit_apc_item.
@TODO handle non existant child
IF lo_nd_cn_apc_item IS NOT INITIAL.
lo_nd_cn_apc_item->get_static_attributes_table( IMPORTING table = lit_apc_item ).
get element via lead selection
lo_el_cn_apc_item = lo_nd_cn_apc_item->get_element( ).
ENDIF.
l_component = wd_this->wd_get_api( ).
l_context = l_component->get_context( ).
Calculate Cost
LOOP AT lit_apc_item ASSIGNING <lfs>.
<lfs>-cal_amount = ( <lfs>-cost_percent * <lfs>-sec_amount ) / 100.
lfd_added = l_context->add_context_attribute_change(
element = lo_el_cn_apc_item
attribute_name = 'CAL_AMOUNT'
new_value = <lfs>-cal_amount
ENDLOOP.
Bind Table.
lo_nd_cn_apc_item->bind_table( new_items = lit_apc_item set_initial_elements = abap_true ).
ENDMETHOD. -
Not to be able to delete line items from sales orders
I have to do something so as not to be able to delete the line items from a sales order if I have already received a down payment for this sales order
Dear Stilianos
Assign Reason for Rejection for that line item and create a new line item in the same sale order.
Incidentally, why do you want to delete the line item ??
thanks
G. Lakshmipathi
Maybe you are looking for
-
I have this project where I needed to change the audio part from a dvd so first tried to load VOB file but Adobe Premiere did not support VOB file so then used Freemake Video Convert tool to convert in to mpeg file so that I can import in premiere ti
-
Deny Data Tracking = Deny Duplicate Report?
We have just recently upgraded to 3.1. We're working through some wacky little issues. Issue of the moment is, I have disallowed data tracking to most users while we assess the system impact of it. However, when these users are working in the Inter
-
I am having a lot of problems with scripts from a book tutorial. The book is PHP 5 Advanced by Larry Ullman. I've worked through two of his other books with no problems. But with this book I am getting a lot of errors and erratic behavior. With a hea
-
Any clues? I'm trying to install IE7 on a Virtual PC (Mac) I downloaded this installation version (IE7-WindowsXP-x86-enu) whatever that means (I'm clueless when it comes to anything to do with microsoft) The OS I'm running in the VPC is XP-Home I see
-
Can not install update for premiere CS4
Hi, my name is Josanne. I work with windows Vista home premium and Premiere CS4 , Aspire G7200 computer, AMD Phenom 9850 Quadcore processor, 8 gig mem. I have two problems: 1. I got a message to update Premiere CS4 so i tried. The file is 192.4MB Eve