Cancel all items in the purchase order
we need a program to cancel all items in the purchase order .
exists any BAPI or funcion or metod to do this ?
becuase if we to do this for the TC ME22N we need to do this item by item.
our programmer suggest us an update of the table EKPO
Here is an example program using the BAPI to set the deletion indicator on all line items of a PO.
report zrich_0001.
data: return type table of bapiret2 with header line,
poheader type bapimepoheader,
poheaderx type bapimepoheaderx,
poitem type table of bapimepoitem with header line,
poitemx type table of bapimepoitemx with header line.
data: iekpo type table of ekpo with header line.
parameters: p_ebeln type ekpo-ebeln.
start-of-selection.
poheader-po_number = p_ebeln.
clear iekpo. refresh iekpo.
select * into table iekpo from ekpo
where ebeln = p_ebeln.
loop at iekpo.
poitem-po_item = iekpo-ebelp.
poitem-delete_ind = 'X'.
append poitem.
poitemx-po_item = iekpo-ebelp.
poitemx-po_itemx = 'X'.
poitemx-delete_ind = 'X'.
append poitemx.
endloop.
call function 'BAPI_PO_CHANGE'
exporting
purchaseorder = p_ebeln
poheader = poheader
poheaderx = poheaderx
tables
return = return
poitem = poitem
poitemx = poitemx.
commit work.
loop at return.
write:/ return.
endloop.
Regards,
RIch Heilman
Similar Messages
-
How to create an inspection lot for each line item of the Purchase order?
Hi,
How to create an inspection lot for each line item of the Purchase order ?
In detail if possible.Hi
please check this
[thread|Create Inspection Lot; -
Re: Printing Cancelled line items in the sales order on the packing slip
Hi gurus,
Currently we have a unique requirement in our company. Our wholesale customers send the Purchase order to us via EDI. Now saw they have requested an order containing 10 materials out of which we can fulfill only 8. the other 2 due to some reasons cannot be fulfilled.
So the business wants to keep the other 2 line items to be entered in the sales order with a cancelled status.
Now correct me if I am wrong, only the confirmed line items will be copied from a sales order to a delivery document. So thats the reason why these cancelled line items cannot be printed on the packing slip.
However somehow the business wants the packing slip tp have the 2 line items printed on it with the reason of not being delivered. this is to facilitate the customer to know why those items couln't be fulfilled by our company. Now we cannot use a manual work-around of letting the customer know about the impossibility of not fulfilling the other 2 items as there are a lot of orders that come thru EDI per day.
Can anyone suggest a solution to this requirement asap.
Thanks in advance
VinitHi Vinit,
This requirement makes a lot of sense, that is to be able to inform your customer that some item(s) of the sales order could not be delivered, not even partially.
A possible solution would be to allow for zero quantity in the delivery item (check customizing and mark "zero quantity allowed" in the item category).
Then in the packing split, it would be easy to print the delivered quantity (0) and the sales order quantity (whatever it was), because you have the "null" item available in the delivery.
Personally I am not found of having have delivery items with zero quantity, but they are useful in that case, and they can also be useful to automatically "close" the sales order item (instead of having to do it manually if the goods can't be served).
Note: Usually in Consumer Goods, if you can't serve part of a sales order to a customer, you have to close it, because the Retailer's next Sales Order will include the remaining quantity.
Hope it helps.
Best Regards,
Franck Lumpe
Freelance SAP ERP Consultant -
How to move the item level details to line item in the Purchase order form
Hello,
I am in SAP SRM7.0 system, my customers requirement is that the item level details like MPN (Manufacturer Part Number) etc.. should be moved to line item field in the Puchase Order.
Can any one give me susggestion on this. This is not the correct forum for this thread but still pls post the link of related threads which may help in this regard.
Regards
MadhanHI Masa,
THanks a lot for your reponse, in the option given by you i could find it to make visible or required but there is clue on moving the MPN to item field in the line item level. Can you give more input on this.
Regards
Madhan -
Item text in Purchase Order getting updated with info. record Purchase Order Text
Hello All,
I am working in a roll out project and facing issue in text repeating twice for the line item in the Purchase Order for the new company code for which rollout is happening
Issue:
Item text in Purchase Order getting updated with info. record Purchase Order Text
01) PO Text is maintained in the material master under "Purchase Order Text" tab
02) The PO text that is maintained in material master is getting updated in the Purchase Info. Record
03) When Purchase Order is created, the "Item Text" gets updated in the Purchase Order automatically only for the new company code for which rollout is happening. when printed, this results in the text getting duplicated twice
03.1) this behavior is not observed in the Plants/ Company code that is already Live
Configurations in the system:
The copying rules for the "Texts for Purchase Orders" is
Source Object = "Info Record", Source Text="Purchase Order Text", Fix="*"
We have modified the Purchase Order form to print one of the condition types maintained for calculating the tax. Other than this there is no change to the plants that are already live.
I could not locate any "Purchase Organization" / "Company Code" / "Plant specific configuration.
Am I missing any configuration or where can I look in what is causing this error.
Request help from the experts in the forum.
with Regards,
Dhandapani RThere is no company/purchasing/plant specific customizing for purchase order text.
The customizing copying rules for the "Texts for Purchase Orders" affects all equally .
If the text in the purchase order in ME23N is already filled different to other plants, then you either have a modification in place, or the texts are differently maintained in the referenced data (vendor, material, info record, contract) -
While creating the purchase order
Hi all,
While creating the purchase order I am getting error like No account assignment to customer order (Not Active in co area 1100, Year 2007)
please help me out from this problem
Thanks and regards,
Sreekanth LokarayHi Nazim,
I got the solution by doing the maintain controlling area I activate the sales order.
and In t.code vkoa I have given the condition type for sales organization.
Thanks and regards,
Sreekanth.L -
How can I terminate the purchase order item?
Dear all,
I have created and released a purchase order, which had two items. like following
Item Material no qty delivery date
10 Material-A 1000 pcs 12-25-2008
20 Material-B 300 pcs 12-28-2008
This purchase order has been released. And the vendor production order had been released and producted too. Item 10 has been producted and deliveried 300 pcs to our company. Now the purchase department asked to terminate the item 10. They didn't want the 700 pcs left.
So we have to cancel the purchase order item 10. But we couldn't terminate this item.
How can I do? Please tell me how to do step by step.
Thank you very much!
Paul.Dear,
You can't delete purchase order at header level.
You have to deleter purchase order line item wise.
You can do it with ME22N t-code.
Enter t-code ME22N, Select all line item of purchase order and click on delete indicator.
Otherwise click on Delivery complete indicator of purchase order.
You can also delete purchase order line item wise with MASS t-code.
Enter t-code MASS, Select object BUS2012, Go in Field tab and select field MASSEKKO-LOEKZ and click on execute button.
Then enter your purchase order documents number and enter indicator for deletion as X.
Regards,
Sri -
QC51:No certificate is required for the purchase order item
Dear all.
I want to create an certificate Receipt In the T-CODE QC51.After input the purchase order and item and press return,the SAP show an error message:
No certificate is required for the purchase order item.
Message no. QC508
My question was where to control the purchase order item to require certificate or not?
Regard
YodaHi
For this you have to maintain Certificate req in Material master.
MM01>Enter your material->Quality view-->Tick on QM procurement->Certificate require-Mension kind of certificate req.
like
E21 Cert. of conformity "2.1" EN 10204
E22 Test certif. "2.2" EN 10204
E23 Works test certif. "2.3" EN 10204
E31A Insp. certificate "3.1.A" EN 10204
E31B Insp. certificate "3.1.B" EN 10204
E31C Insp. certificate "3.1.C" EN 10204
E32 Inspection report "3.2" EN 10204
Q001 Conformance Report
Q002 Plating Certificate
Q003 Test Report
Q004 Certificate through Web
Q005 Chemical / Physical Test report + QC
etc.....
Customizing for this can be done in
SPRO->Quality Management->QM in Logistics--->Define Keys for Certificate Processing.
This will ask you during MIGO or during UD/confirmation possible thro' QC21
Regards
Sujit S Gujar -
Creating inbound delivery for the purchase order line items
Hi Experts,
Please let me know how can I create inbound delivery for the purchase order line items? Say, I have a purchase order with 5 line items in it. I wanted to create an inbound delivery for only 2 line items at this point of time. Which SAP Standard transaction I have to use and what all data I need to populate? I would appreciate any help on this and will reward the right answer. Please let me know.
Thank you in advance.
with regards,
Muthu Ganapathy.Hi,
While creating the inbound delivery (VL31N), intially all the items will be shown, see the advance shipping notfication - from the vendor for which he has send confirmation & rest items you can delete simply & save. & next time when the vendor sends rest advance shipping notifcation (confirmation), you can receive them.
Hope this answers your query.
Regards
Irfan. -
Pulling the Header text for all the purchase orders
Hello,
Please help in resolving the below:
Is there any code in SAp to pull theHeader text for all the purchase orders in the data base,
Any tcode to pull the specific text automatically to pull the text from the requsition ( Plant wise in sourcing).
ThanksSTXH Text header
STXL Text detail
Chk the below message thread
Table to read PO Header text and item text
BR,
Krishna -
Change the Purchase Order : Item - Conditions value
Hi,
How to change the Purchase Order : Item - Conditions value.
In my PO, Item conditions shows the SKTO - Cash Discount value is 0. I want to change the Discount value 10.
How can i change it??Hi,
Goto the Transaction code MN05 and give the CONDITION TYPE SKTO and change the value
MN05 is the Transaction code for Purchase order condition types.
Please check and revert back if you need more details.
regards,
santosh -
I would like to cancel the purchase order
I would like to cancel the purchase order. Storage Plan 15G
It's a mistake.
Could you please help me .Start here: https://getsupport.apple.com/GetproductgroupList.action
And navigate through the maze of options to reach iCloud support. -
I want to cancel the purchase order :Order Number: 13111072125, And I want to buy a Lightroom 5
Why is this difficult to cancel the purchase?, Many of the choices I do not know what a select? I can not deal with the difficulty of having a website to retrieve my money! ..
This information can purchase everything that you ask !:
Order Number: 13111072125
Order Date: 04 October 2014
Shipping Address
tariq alkhabra
hail ST20
saudi arabia
Hail 9666
Saudi Arabia
504355777
[email protected] -
How to read the text from the item text of the purchase order
i want to extract the text which is maintained in the purchase order item text. i used the function module read_text but it reads only the header text. can anyone help.
u have to chek the following parameters
ID: this textid
language:language u maintained the text,this also important
name: The no in which text-id is maintained
Usually we make mistake here,the no is combination of purchase order no and item no.
Example:420000210000010(Puchase orderno:4200002100 item no:00010)
Object:it change based on the text-id so u can check it the document no.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = p_var
language = g_f_langu
name = g_f_tdname
object = g_f_obj
TABLES
lines = g_t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Pass the varibles as i have said and let me know if u face any problem.
Regards -
I purchased an iPad air and chose a backup from my iPhone 5s. The only issue is only 30 of my photos downloaded to my iPad and none of the music. How can I get all items on the iPad?
you are using I tunes as the middle man for this back up, right?
When you plug in the pad to i tunes, give it a unique name, like my pad. I tune may be thinking it is talking to your phone. It will keep track of what you what on each device. Then plug your phone back in, and make sure your photos are uploaded to the computer - in i photo if you are using a mac, or in whatever photo program you are using on a windows device. You also want to make sure you have uploaded to the computer all of your music.
Once you get all that stuff there, plug the pad back in, and go through each of the tabs - selecting the music, photos etal that you want on the pad, then resync.
Maybe you are looking for
-
How do I hide Windows .ini files in a dock folder?
Background: On my MacBook Pro, I divided my hard drive into 3 partitions - one for Mac OS X, one for Windows 7, and one for common storage that I use to transfer my files between OS's. With this setup, I set my Dropbox folder on the "common storage"
-
Event Handling when EditText has been filled
I'd like to call some code after an EditText has been filled. But I'm having a little trouble figuring out which events I need to watch. The tricky part (it seems) is that I need to catch the event any time data is added to or changed in the EditTex
-
FlashIslands In WebDynPro ABAP
Hi I integrated Flash Islands Into Webdynpro Abap..Flash Island Is displaying..but the values which im passing through wddoinit method to the frontend is not displaying..binding from context nodes to gacproperty is done( name same as flex field is gi
-
How to get the HTML Source code from the active browser ?
Hi All, I need to get the HTML Source code from the active browser (IE). I tried with the below code, but I am not able to get the Source code all the time, with respect to the different applications (http or https) and the user authentication has to
-
Error applying patch 9.2.0.4
I was running the oracle installer to install the 9.2.0.4 patchset, and during the install, an error box comes up: "Cannot write to destination /opt/app/oracle/product/9.2.0/bin/dbsnmp.sav Note that I'm logged in as the oracle user, who has oinstall