Direct Input for Purchase Order
Hi Gurus,
I want to create LSMW direct input for creating Purchase Order,
I have make to file for this, Header and Item,
for the Header, i only use this field : STYPE, BUKRS(Company Code), EKORG(Purch.Org), EKGRP(Purch Group), BSART(Order Type), LIFNR(Vendor), WAERS(Currency)
for the Item, : STYPE
EBELP
EMATN
MATKL
WERKS
EINDT
MENGE
MEINS
NETPR
WAERS
now, when i run this direct input program, it always error with this message " The Material xxxx does not exist or is not activated"
i have check the material, it already created and the purchasing tab also have created
what is the problem ? maybe i miss another field that i should entry in the source field LSMW ?
really need help for this issue
Regards,
Marufat
Try to make 1 manual PO for that material check whether it is allowing to make,
Best option to use is BAPI_PO_CREATE1 for uploading PO.
LSMW does not provide the table control features in BDC or recording.
Check below link for more details,
[LSMW PO|http://forums.sdn.sap.com/thread.jspa?messageID=10155752#10155752]
Similar Messages
-
LSMW --direct input for sales order
Hi frenz,
We are facing a problem in mapping the fields, sold-to-party and ship-to-party in structure BVBPAKOM.
I have already tried using partnerfunction(PARVW) and custno(KUNNR). Even then i got an error 'Specify ship-to-party or sold-to-party'. Can anyone help me regarding this problem.
Helpful answers will be rewarded with points and wishes.
---praveen.hi,
join this link dude
LSMW DIRECT INPUT FOR SALES ORDER
cheers,
sanjay. -
PO 'No goods receipt possible for purchase order'
Hi gurus!
While trying to make Confirmation of a PO in the SRM Portal the user is getting the error 'No goods receipt possible for purchase order'
The scenario used is Classic, so PO is replicated directly to the R/3 system.
Any idea why this is happening?
Thanks a lot!Hi, thanks for the quick reply!
Where i can check the Item category?
I found a field called 'subitem category' but it's blank
with this possible values:
1 Variant
2 Discount in kind: inclusive bonus qty.
3 Empties
4 Discount in kind: exclusive bonus qty.
5 Prepack item
6 Display item
7 Set item
8 Interchangeable items (IBU: A&D)
9 Pre-packing (SLS items)
H GT Bill of Material, Header Relevant
I GT Bill of Material, Item Relevant
About PO type i think it's EC (doc_type?), in R/3 is shown as EBP PO
I checked in backend system, in the item details > Delivery and the 'Goods Receipt' is checked. -
Goods receipt for purchase order not allowed for a particular wbs
hello everybody..
Am creating a good receipt for a purchase order using the T-CODE-: MIGO...
While doing so am getting an error as " goods receipt for purchase order not allowed(wbs element)".
What can be done to rectify this error?
Plz do help me....
Regards,
Deepika
Moderator message: not directly related to ABAP development, please have a look in the appropriate functional forum, study the long text of this error message.
Edited by: Thomas Zloch on Dec 1, 2010 5:52 PMHi Br. Ajay M,
Released the order and Status line as follow
REL AVAC BUDG GMPS
but the error changed while reverse the document
item 0001 Order is invalid.
Many thanks for your kindly reply.
regards,
Steven -
Activating conditions for Purchase Order workflows in EBP
Dear SRMer's,
I am facing the following problem:
System Info :SRM Server 5.5, ECC 6.0
Scenario 1:
All start conditions for Purchase Order in SAP Business Workflow are activated.
I created a direct procurement shopping cart (DP) in SRM browser and ordered it, then I logged in as proffessional purchaser, changed the Price and processed the DP PO.
When Ordering, the follow on Documents are created, but says the PO is waiting for approval. When I check for this PO in the Backend R/3 system in the Me22n (Display PO changes), I don't see the PO.
Scenario 2:
All Start conditions for Purchase Order in SAP Business Workflow are de-activated
I created another direct procurement shopping cart (DP2) in SRM browser and ordered it, then I logged in as proffessional purchaser, changed the Price and processed the DP2 PO (Status is held).
When Ordering, I get the Warning message, no workflow found, contact system administrator.
Please advice what needs to be configured for the PO to be ordered successfully.
Thanks in advance
RajHi,
In your scenario 1, if system is saying that there the PO has to be approved, it means that you have managed the user that will receive the workitem..
Activating all PO WF is not a solution as in standard there are two many cases activated (amount, role, limit...)
I propose you to first activate only the 0 step WF and to overwrite the code inside
Just code that every PO modification should trigger O step WF thus it will be more simple to test it.
Later on, if you want to implement more complex starting conditions, you just have to modify the WF content...
Kind regards,
Yann -
User Exit for Purchase Order Line Items.
I have been trying to search for a User Exit for Purchase Order Line Items and have been unable to do find anything. I need to overwrite the Net Price and Pricing Condition on a certain type of material based upon the Pricing Condition for that Line Item which is on the Sales Document. Any direction you can point me into would be greatly appreciated. Thanks.
Thanks for pointing me in the right direction. I was able to create my first BADI using the PROCESS_ITEM method. The following link was also very helpful: Re: BADI ME_PROCESS_PO_CUST Method:PROCESS_ITEM
-
Service entry sheet:No provision for service entry for purchase order
Hi.I create a Purchase order with one item.The Item category was D(Service).Also lines of Service number was input in the Service tab of the item detail.After save the Purchase order,I goto t-code ML81N to Maintain the Service entry sheet.When I input the Purchase order number and item number and press enter,the SAP raise an error message box with following text:
No provision for service entry for purchase order 4500000149 00010
Message no. SE198
Diagnosis
The "GR =NO" (no goods receipts) indicator has been set in the PO item. It is thus not possible to enter services against this purchase order.
I don't know why and how to resolve this problem.So I need the experts to give me some advice.Thank you so much.
Regards
Yodapls check in ur PO at item details in delivery tab whether goods receipt checkbox is unticked.if yes then tick it and then process.
regards,
indranil -
Document in transfer for purchase order - creation not possible
Hi Experts,
we get this error when we do confirmation"'document in transfer for purchase order - creation not possible'"
any inputs are appreciated
Rg
samHi All,
We have resolved the above problem.
When user does confirmation ,if it sucessfully created then there will be no entry in BBP_Document_tab table.If it's in error in process and next time when user tries to do GR then he will encounter a pop up message "Document in transfer for PO, creation not possible".
So we need to delete the entries from table BBP_DOCUMENT_TAB using FM BBP_DELETE_FROM_DOCUMENT_TAB.
Then check again in BBP_DOCUMENT_TAB now there will be noentry there...so now user can do the confirmation from SRM,he will not encounter this error now.
Thanks to all the ppl who has replied
sameer -
Dump in smartform driver program for purchase order
i created one smartform with driver program for purchase order.
in smartfrom i gave
form interface: p_ebeln as import,
tables as it_ekpo like ekpo.
global definitions are
wa_ekko type ekko for printing the ekko data in one window,
wa_ekpo type ekpo .
in main window i took the one table and loop the ekpo table for printing the item details.
no errors is there.but ; when i call this generated function module to my driver program it goes to dump.
in driver program i declare structures,internal tables,work areas, and parameter as p_ebeln .
and also select statements for my table all are good.but its not work.
in function module i pass the details as export p_ebeln = p_ebeln and table it_ekpo = it_ekpo.
and also i done debugging in this data come to the internal table and work areas.
but it goes to dump.
if u dont mind plz solve my problem.
Thanks
Navya.
Moderator message: empty lines removed, subject corrected, please use meaningful subject lines when posting!
Edited by: Thomas Zloch on Mar 24, 2011 10:10 AMHi Navya,
Your smartform is correct. But, as per my understanding, the dump comes when you call the smartform from the driver program. If that is the case, please check the input parameters and all th parameters in the program should be same as used in samrtform. Any deviation would lead to a dump.
Analyse and resolve!!!
Regards
Atul Sachdeva -
Determine classname & classtype for Purchase Order?
Hi All
I'm completely new to SAP, apologies in advance.
So I'm trying to create a external document url against a purchase order via a BAPI.
Looking at this thread [FM to create external document(URL)|FM to create external document(URL)] BDS_BUSINESSDOCUMENT_CRE_O_URL is the one to use.
First question: is that correct?
The BAPI takes as inputs CLASSNAME and CLASSTYPE which Im assuming are used to identify that this is being attached to, in this case, a PO.
Second question: Is that correct and if so how do I find out what these values are for a Purcahse Order and other objects in SAP?
thanksHi Jonnoking,
1) Function module u201CBDS_BUSINESSDOCUMENT_CRE_O_URLu201D is correct to u201CCreate External Document (URL)u201D
2) To find u201CCLASS NAMEu201D & u201CCLASS TYPEu201D values for Purchase Order or any other objects below are the transaction codes where it is maintained:
a) Transaction Code : SBDSV1 - Maintenance View for BDS_LOCL Transparent Table
b) Transaction Code : SBDSV2 - Maintenance View for BDS_CL_DOC Transparent Table (Here you can search the CLASS NAME & CLASS TYPE with the help of DOC_TYPE like u201CMEOORDERu201D for purchase order & other needful objects like INVOICES)
c) Transaction Code : SBDSV3 - Maintenance transaction for V_BDS_CL View (Itu2019s a view of tables - BDS_CLASS & BDS_CLASSL)
3) Transparent Table References:
a) BDS_LOCL - BDS: Assignment of Application Classes to KPro Doc. Classes
b) BDS_CL_DOC - BDS: Class Definition
c) BDS_CLASS - BDS: Class Definition
d) BDS_CLASSL - BDS: Language Table for Class Definition
Please find below link for your further reference :
http://www.architectsap.com/blog/sap/sap-bds-business-document-service-for-storage-of-documents-and-attachments-in-sap-ecc/
Best Regards.
Sudhanshu Garg -
Processing log output for Purchase order
Dear All,
Iam getting some problem when iam creating an IDOC and checking in the Processing log for IDOC number.
Actually i had created one custom idoc for Purchase order since my client need only some field and in one line for header and line item, I had done it and i can see it in sdata of EDIDD structure. When i create a Purchase order and save it an idoc number is posting and I can see this file in my physical directory indeed.
Now when iam going into change mode of PO ME22n to see the Processing LOG, It is not showing the IDOC Number in Purchase order output processing log popup.The processing log will only show output based standard output control (Table NAST).
How is your IDoc being created. Via a user exit, BADI. If so then they will not appear on the processing log.
It is being created as a custom IDOC for which i had written a Z function module and given that in PO processing code which is ME10. When iam checking the standard IDOC for PO it is generating the IDOC in processing log as well.
Iam just placing my code just have a look at it and suggest if any thing needs to be done.
FUNCTION Z_IDOC_OUTPUT_ORDERS.
""Local Interface:
*" IMPORTING
*" VALUE(OBJECT) LIKE NAST STRUCTURE NAST
*" VALUE(CONTROL_RECORD_IN) LIKE EDIDC STRUCTURE EDIDC
*" EXPORTING
*" VALUE(OBJECT_TYPE) LIKE WFAS1-ASGTP
*" VALUE(CONTROL_RECORD_OUT) LIKE EDIDC STRUCTURE EDIDC
*" TABLES
*" INT_EDIDD STRUCTURE EDIDD
*" EXCEPTIONS
*" ERROR_MESSAGE_RECEIVED
*" DATA_NOT_RELEVANT_FOR_SENDING
DATA: xdruvo. "Druckvorgang
DATA: neu VALUE '1', "Neudruck
h_kappl LIKE nast-kappl, "Hilfsfeld Applikation
h_parvw LIKE ekpa-parvw, "Hilfsfeld Partnerrolle
h_ebeln LIKE ekko-ebeln. "Hilfsfeld Belegnummer
CLEAR control_record_out.
xdruvo = neu.
h_kappl = object-kappl.
h_ebeln = object-objky.
h_parvw = object-parvw.
DATA:
LT_EDIDC LIKE EDIDC OCCURS 0 WITH HEADER LINE,
L_EDIDC LIKE EDIDC,
L_SEND_FLAG,
W_SDATA LIKE EDIDD-SDATA.
DATA: T_BDI_MODEL LIKE BDI_MODEL OCCURS 0 WITH HEADER LINE.
DATA: T_EDIDC LIKE EDIDC OCCURS 0 WITH HEADER LINE.
DATA: T_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.
DATA: C_MESSAGE_TYPE LIKE EDIDC-MESTYP VALUE 'ZORDER'.
*- Call function module to determine if message is to be distributed
OBJECT_TYPE = 'BUS2012'.
MOVE control_record_in TO control_record_out.
CALL FUNCTION 'ALE_MODEL_DETERMINE_IF_TO_SEND'
EXPORTING
MESSAGE_TYPE = C_MESSAGE_TYPE
IMPORTING
IDOC_MUST_BE_SENT = L_SEND_FLAG.
EXCEPTIONS
OWN_SYSTEM_NOT_DEFINED = 1
OTHERS = 2.
DATA : BEGIN OF EKKO_tAB OCCURS 0,
EBELN LIKE EKKO-EBELN,
F1 TYPE C VALUE ',',
BUKRS LIKE EKKO-BUKRS,
F2 TYPE C VALUE ',',
BSART LIKE EKKO-BSART,
F3 TYPE C VALUE ',',
LIFNR LIKE EKKO-LIFNR,
F4 TYPE C VALUE ',',
WAERS LIKE EKKO-WAERS,
F5 TYPE C VALUE ',',
BEDAT LIKE EKKO-BEDAT,
F6 TYPE C VALUE ',',
WERKS LIKE EKPO-WERKS,
F7 TYPE C VALUE ',',
PLIFZ LIKE EKPO-PLIFZ,
F8 TYPE C VALUE ',',
EBELP LIKE EKPO-EBELP,
F9 TYPE C VALUE ',',
MATNR LIKE EKPO-MATNR,
F10 TYPE C VALUE ',',
MENGE LIKE EKPO-MENGE,
F11 TYPE C VALUE ',',
MEINS LIKE EKPO-MEINS,
F12 TYPE C VALUE ',',
END OF EKKO_TAB.
DATA SDATA1 LIKE EKKO_tAB OCCURS 0 WITH HEADER LINE.
DATA EBELN LIKE EKKO-EBELN.
WRITE OBJECT-OBJKY TO EBELN.
SELECT T1EBELN T1BUKRS BSART LIFNR WAERS BEDAT WERKS PLIFZ EBELP MATNR MENGE MEINS
FROM EKKO AS T1
INNER JOIN EKPO AS T2 ON T2EBELN = t1EBELN
INTO CORRESPONDING FIELDS OF TABLE EKKO_tAB
WHERE
*T1~KAPPL = 'EF' AND
T1~EBELN = EBELN.
*T1~KSCHL = 'YEDI' .
DATA SDATA LIKE EDIDD-SDATA.
DATA NDATE LIKE SY-DATUM.
DATA NMENGE(17) TYPE C.
LOOP AT EKKO_tAB.
WRITE EKKO_TAB-MENGE TO NMENGE.
NDATE = EKKO_tAB-BEDAT + EKKO_tAB-PLIFZ.
CONCATENATE EKKO_tAB-EBELP ',' EKKO_tAB-BUKRS ',' EKKO_tAB-BSART EKKO_tAB-EBELN ',' EKKO_tAB-LIFNR ',' EKKO_tAB-BEDAT ','
NDATE ',' EKKO_tAB-BSART EKKO_tAB-EBELN ',' EKKO_tAB-EBELN ', 0,' EKKO_tAB-MATNR ','
NMENGE ',' EKKO_tAB-MEINS ',' EKKO_tAB-WERKS INTO SDATA.
MOVE SDATA TO: W_SDATA, T_EDIDD-SDATA.
MOVE 'ZORDERS' TO T_EDIDD-SEGNAM.
APPEND T_EDIDD.
ENDLOOP.
*call function 'L_IDOC_SEGMENT_CREATE'
exporting
i_segnam = 'ZORDERS'
i_sdata = w_sdata
exceptions
others = 1.
*LT_EDIDC
call function 'L_IDOC_SEND'
tables
t_comm_idoc = LT_EDIDC
exceptions
error_distribute_idoc = 1
others = 2.
*DATA T_BDI_MODEL LIKE BDI_MODEL.
WRITE OBJECT-OBJKY TO T_BDI_MODEL.
READ TABLE T_BDI_MODEL INDEX 1. " maximum 1 recipient
L_EDIDC-DIRECT = 1.
L_EDIDC-DOCNUM = DOCNUM. "***
L_EDIDC-RCVPRN = 'HCM_00_785'.
L_EDIDC-RCVPOR = 'MM_PO_FILO'.
MOVE 'ZORDER' TO L_EDIDC-MESTYP.
MOVE 'ZPURIDOC' TO L_EDIDC-IDOCTP.
MOVE 'LS' TO L_EDIDC-RCVPRT.
MOVE T_BDI_MODEL-RCVSYSTEM TO L_EDIDC-RCVPRN.
*MOVE-CORRESPONDING L_EDIDC TO W_EDIDC.
*- Distribute the iDoc
BREAK-POINT.
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' "IN UPDATE TASK
EXPORTING
MASTER_IDOC_CONTROL = L_EDIDC
TABLES
COMMUNICATION_IDOC_CONTROL = LT_EDIDC
MASTER_IDOC_DATA = T_EDIDD
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 01
ERROR_WRITING_IDOC_STATUS = 02
ERROR_IN_IDOC_DATA = 03
SENDING_LOGICAL_SYSTEM_UNKNOWN = 04.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE LT_EDIDC INDEX 1.
control_record_out-direct = '1'.
CONTROL_RECORD_OUT-DOCNUM = DOCNUM. " ***
control_record_out-serial = sy-datum.
control_record_out-serial+8 = sy-uzeit.
control_record_out-mestyp = LT_EDIDC-mestyp.
control_record_out-idoctp = LT_EDIDC-idoctp.
control_record_out-SNDPRN = 'HCM_00_786'.
MOVE 'MM_PO_FILO' TO control_record_out-RCVPOR.
MOVE 'LI' TO control_record_out-SNDPRT.
MOVE 'SAPQIS' TO control_record_out-SNDPOR.
ENDFUNCTION. -
How to implement Change pointers for Purchase order - ME22N - Custom Fields
Hi Experts,
Can you please tell me how to implement - Change Pointer for Custom fields in IDOC.
I am working on IDOC - For purchase order - acknowledgements - in custom screen/tab in ME22N.
Everything is working fine according to my requirement.
All i need to know is the process of - Creating/Change - Change pointers for Custom fields.
1.How to implement change pointers for custom fields.
2.Can we maintain - Change Document - for custom fields at data element level?
P.S. - I have browsed many previous - forums before posting a new discussion.
please share your inputs...
explaining how to create/implement - change pointers for custom fields will help me .
Regards,
Karthik Rali.Hi,
To maintain Change Document for custom field:
1. Check if "Change document" checkbox is set in data element.
2. Find Change Document Object for transaction.
You can use SQL trace - ST05.
Look there for line with table CDHDR and statement insert values
(for example for transaction KA02 Change Document Object is KSTAR)
3. Regenerate update program for this Change Document Object in transaction SCDO
Change documents for z-fields schould be generated.
I am not sure about change pointers but they are configured somehow in BD61 and BD50. -
Overdelivery tolerance Screen selection for Purchasing order
Hi all,
Currently we have a scenario over here, where we need to change the over delivery tolerance for purchasing order.
Overview:
We have received plastic packing screw ( PO 3480000011 , PO qty 98,000 pcs ) in 3 GR's
1st GR. 21,000 pcs
2nd GR. 29,000 pcs
3rd GR. 50,000 pcs
total = 100,000 pcs
===================
For 1st & 2nd del. we have input into SAP, but for the last del. we can't input because qty over 2,000 pcs than PO
Because of this, we have reversed the 1st and 2nd GR, but we still cant enable the over/under delivery tolerance field selection.
Other than that i have make the changes thru the
OLME -> purchasing order -> Define screen layout at document level -> select Me22 and click on details ->GR/IR Control -> overdelivery tolerance with "X" at Reqd. entry.
But this doesnt seem to work.
have anyone encounter this issue kindly provide me some hint on this.
Point will be rewarded for useful answer.
Thank you.
Kah FeiHi,
I think Under/Over delivery tolerance are a part of 'purchasing value key' of the purchasing view in the material master record.
Try changing that for your material so that you get a overdelivery tolerance of more than 2% in the material master record.
Otherwise in your PO , under the delivery tab in the item details mark the chkbox 'unlimited' overdelivery and check out....
Revert back for further help...
Regards,
Prithviraj
Edited by: Prithviraj Talekar on Jan 19, 2009 10:49 AM -
GR for Purchase Order for Trading Goods
Hi,
I have a query on configuration for accounting entry for purchase orders for Trading goods.
When i do the GR for Purchase order for a trading good, the accounting entries are,
Inventory Dr
GR/IR Cr
and
Purchase Expenses Dr
Purchase Setoff Cr
I understand that i can configure for the first set of posting in BSX and WRX. How do i configure for the Purchase Expenses and Purchase Setoff.
Please advise and correct my understanding.
Thanks in Advance,
SafiHi,
The possiblity for this scenario is
First create the Production order in CO01
Create of Account assinged PO in ME21N with Account assigned category as "F" with Production order
Do the MIGO with respect to PO, then system will directly post the Stock to that Production order.
So in the system GR is done for PO & Goods issue is done for Production order.In this way you can acheive this.
rgds
GSC -
Goods-Receipt Block for Purchase Order depending on Goods-Receipt Date
Hi,
I want to set up the system so it can block the Goods-Receipt for Purchase Order respectively Scheduling Agreement if the Goods Receipt is about to take place 30 days or more before the Desired Delivery Date.
For Example: If I have a Purchase Order with the desired delivery date 30.09.2008. I want to set up the system so, that it bans (forbids) the Goods Receipt before the 01.09.2008.
If possible I would want to do that without additional programming. Is it possible to set up the system using only customising settings?
Thanks for your help
BogdanHello Marius-Bodgan,
as this question is marked answered I assume you have received an solution for your requirement. Could you please share the solution with me by posting it here? I have the same requirement and did not find any possibility to do this in customizing.
Thanks in advance,
Emanuel
Found the solution in thread Re: Goods Receipt
Edited by: Emanuel Penalver on Jul 15, 2008 11:48 AM
Maybe you are looking for
-
Can we add new condition in old PO with new pricing schema
We have created new pricing schema for addition of new condition type at header level on 25/11/2010 in client server but the problem is for old purchase order client want new condition on header condition tab.It is obvious that in old po on analysis
-
Unable to see any SDA file in inbox of JSPM
Hi Experts, I am deploying MQ series JMS drivers into PI 7.1 system, i added the drivers to com.sap.aii.adapter.lib.sda archive file and i changed provider.xml and i place the file in JSPM inbox directory (Drive:\usr\sap\trans\EPS\in). but when i try
-
TextEdit 1.7 doesn't open with blank page - why?
Why the change, Apple, why? I use TextEdit all the time - it's simple - I can copy and paste important web-realted writings, like the one I'm writing right now, in case the web crashes or my wifi goes out or yet another Safari bug appears. And when
-
Ridiculous (old) bug in _TextEdit - cannot copy-edit-paste email!
Anyone else noticed this? When I copy text from my webmail or an internet page and try to edit it with Textedit, it is not possible to email it again without extra "?" signs appearing in the end of every line. They are not visible in the TextEdit win
-
Okay, building a plugin from Skeleton...
So I'm using the skeleton template and my coding skills are returning a bit. I'm having trouble however, adding additional controls. I seem to be using too many? I'm trying to find where to specify the disk ID total so I can increase it... Also is th