BAPI_PO_CREATE1 creates Info Record
Hello,
I am creating purchase orders using function BAPI_PO_CREATE1.
But the function creates an Inforecord for the ordered material (if no inforecord for the material exists then a new is created).
How to avoid it? I don't want any new info records, I just need to create a normal purchase order.
In POITEM table I set the following parameter:
poitem-INFO_UPD = ' '.
poitemx-INFO_UPD = 'X'.
but it doesn't work!
Please, help!
Thanks
Pawel
Hi
see below code
*DATA DECLARATION
CONSTANTS : C_X VALUE 'X'.
*Structures to hold PO header data
DATA : HEADER LIKE BAPIMEPOHEADER ,
HEADERX LIKE BAPIMEPOHEADERX .
*Internal Tables to hold PO ITEM DATA
DATA : ITEM LIKE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
ITEMX LIKE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
*Internal table to hold messages from BAPI call
RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
data : w_header(40) value 'PO Header'.
data : ws_langu like sy-langu.
*text-001 = 'PO Header' - define as text element
selection-screen begin of block b1 with frame title text-001.
parameters : company like header-comp_code default '2700' ,
doctyp like HEADER-DOC_TYPE default 'NB' ,
cdate like HEADER-CREAT_DATE default sy-datum ,
vendor like HEADER-VENDOR default '0010000023',
pur_org like HEADER-PURCH_ORG default '2700' ,
pur_grp like HEADER-PUR_GROUP default '001' .
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-002.
parameters : item_num like ITEM-PO_ITEM default '00001',
material like ITEM-MATERIAL default 'CRANE' ,
plant like ITEM-PLANT default '2700' ,
quantity like ITEM-QUANTITY default 100.
selection-screen end of block b2.
START-OF-SELECTION.
*DATA POPULATION
ws_langu = sy-langu. "Language variable
*POPULATE HEADER DATA FOR PO
HEADER-COMP_CODE = company .
HEADER-DOC_TYPE = doctyp .
HEADER-CREAT_DATE = cdate .
HEADER-VENDOR = vendor .
HEADER-LANGU = ws_langu .
HEADER-PURCH_ORG = pur_org .
HEADER-PUR_GROUP = pur_grp .
*POPULATE HEADER FLAG.
HEADERX-comp_code = c_x.
HEADERX-doc_type = c_x.
HEADERX-creat_date = c_x.
HEADERX-vendor = c_x.
HEADERX-langu = c_x.
HEADERX-purch_org = c_x.
HEADERX-pur_group = c_x.
HEADERX-doc_date = c_x.
*POPULATE ITEM DATA.
ITEM-PO_ITEM = item_num.
ITEM-MATERIAL = material.
ITEM-PLANT = plant.
ITEM-QUANTITY = quantity.
APPEND ITEM.
*POPULATE ITEM FLAG TABLE
ITEMX-PO_ITEM = item_num.
ITEMX-MATERIAL = C_X.
ITEMX-PLANT = C_X .
ITEMX-STGE_LOC = C_X .
ITEMX-QUANTITY = C_X .
ITEMX-TAX_CODE = C_X .
ITEMX-ITEM_CAT = C_X .
ITEMX-ACCTASSCAT = C_X .
APPEND ITEMX.
*BAPI CALL
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
POHEADER = HEADER
POHEADERX = HEADERX
POADDRVENDOR =
TESTRUN =
IMPORTING
EXPPURCHASEORDER =
EXPHEADER =
EXPPOEXPIMPHEADER =
TABLES
RETURN = RETURN
POITEM = ITEM
POITEMX = ITEMX.
*Confirm the document creation by calling database COMMIT
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN =
end-of-selection.
*Output the messages returned from BAPI call
LOOP AT RETURN.
WRITE / RETURN-MESSAGE.
ENDLOOP.
Similar Messages
-
Throwing error when Creating Info record
Hai,
When Creating Info record . I maintained standard Qty, Min qty ,price and Planned dely time .
It is not saving and there is an error message that "Maintian all entries in Reqt fields" and Cursor is blinking at Planned delytime . and Not saved/
Can any one solve my issue.
regards
MadhavHi madav ,
create inforecord me11
vender name
mat
purchase org
plant
maintain that and enter,
go to text maintain, then click on condition hear maintain as per as the requirement,
go back
click on purchase organization data then save
u will not get error .
hope it will help u .
thanks
BIswa -
Error material not maintained by purchasing when creating info record
Hi Expert,
I have an issue when creating info record, error says "Material ******* not maintained by purchasing". I've checked in MM03 purchasing view, all has been maintained and at the bottom there is message says "No plant-specific data exist". Accounting view also maintained. I've also checked in MARC table for this material and plant. It existed. I cannot see anything wrong on the material master setup but not sure why am i having this error...
Please help.
Thanks,Hi,
Error says "Material ******* not maintained by purchasing" & you checked purchasing view has been maintained.
OK. Just cross check following optionS
Option-1: You creating info- record for material with combination of plant & vendor....check did the material have purchasing view for same plant-the info-record you are creating!
Option-2: If no purchasing view for material with same plant , just extend in t.code MM50 for E Purchasing
Option-3: Check the material for same plant, did Procurement type F (External procurement) is there
Option-4: Check Profit Center in Plantdata/ sto-2 view of material.
Regards,
Biju K -
I am using standard batch input LSMW for creating info records with obj 0060 and program RM06IBI0. In the last step while running session I am getting error as 'Field EINE-EVERS. (shipping instructions ) is not an input field.' Does anybody know why? Is this field not there in ME11 transaction?
resolved
-
Creating info records ME11 LSMW
I am using standard batch input LSMW for creating info records with obj 0060 and program RM06IBI0. In the last step while running session I am getting error as 'Field EINE-EVERS. (shipping instructions ) is not an input field.' Does anybody know why? Is this field not there in ME11 transaction?
resolved
-
Hi gurus,
I would like to create info records from external system through IDOC. Can someone help me with this?
Regards,
MarinaThanks for the fast answer.
We are trying to make Info record with IDOC INFREC (function module idoc_input_infrec). We create successfully info record, but the problem is that the NETPRICE = 0 and also VALID TO DATE = 31129999 (because no price).
Please, if you need some more details, let me know.
Thanks!
Marina -
Distinguish b/w Automatically created Info Record and created thru ME11
Hi,
How can we distinguish between Automatically created Info Record and manually created Info Record (By User through ME11 transaction).
Where we can see the difference???
Plz guide...Hi,
In case of Automatically created Info record, Net price and Effective price fields will be blank where as in case of manual info record, you maintain the price under "conditions" manually and which gets updated in net price and effective price fields.
Also Run Reports ME1M and ME1L, Info records with "Condition No Price Found" are automaically created. And manual info records will have have "Condition XXX Amount" -
Copy/Create info records (ME_DIRECT_INPUT_INFORECORD)
Hi all
I would like to create a program that allows the users to takes an existing info record of a material and applies it to other materials. I have tried the FM 'ME_DIRECT_INPUT_INFORECORD' without success. SAP does not have a documentation on how to use this FM. Does anybody have a working example on how to create info records with this FM or any other for that matter? Any feedback would be appreciated.
Thanks,
Danielwanna get help
-
Is it possible to create info record without material number
Hi all,
Is it possible to create infor record without material master and what is the importance of the field Info update in PO.
Thank you for the help.Hi,
1.Yes you can create Info record without material no. but you have create it for material group.Go to ME11 and only enter vendor ,Purchasing organization , and Plant don't enter material no.. and again enter maitain material gruop and require data for Material group.
2.Info Update indicator -
Info record update
Determines whether the prices and conditions of this purchase order ite
are suggested in future PO items.
Use
Selecting InfoUpdate causes one of the following situations to occur:
- If just one info record (with or without plant) exists, it is
updated.
- If no info record exists and "plant condition requirement" was
specified in Customizing, an info record with plant is created.
Otherwise, an info record without plant is created.
- If two info records exist (that is, one info record with plant
and one without plant) the info record with plant is updated.
reward if helpful,
Regards,
Chetan. -
How can we create info record using IDOC INFREC?
Hi Friends,
Can we create info record using IDOC INFREC. If Yes. How?
Regards,
NarendraUsing IDOC INFREC & FM IDOC_INBOUND_SINGLE
-
Error when creating info record
Hi there:
When I am creating info record,and trying to enter 9.9 eur per kg,but the system popped up a error message and saying that enter a numeric value,what's wrong?you may have to enter 9,9 instead of 9.9
This is base on the decimal setting in your user profile. you can adjust this in SU3 transaction yourself -
Problem with Creating Info Record
Hello Gurus,
I've problem with Creating Info Record
i tried to create info record for Plant Specific/Purchase Org
The first Screen General Data is OK
i entered all the data in the next screen ie
Purchase Organization Data screen but i'm getting error
<b>Make an entry in all required fields</b>
but there is Mandatory Textbox ie "VALID TO" which im unable to select Bcos its Disabled
pls help me regarding this
thanks in advanceHi
Have u given the net price. <b>VALID TO</b> is the date until which the price shown in the info record is valid.
If there is no price that is valid on the current date, the last-valid price is displayed and the date field contains the day before the start of the next validity period (this may be 12.31.9999 if there is no further validity date). If all validit periods lie beyond the current date, the price of the next period is displayed. The date field then contains the end date of this period.
These validity periods we will maintain Purchse data CONDITIONS while creating info record. Check the validity period for the conditions.
Hope this will helps u
Ravi
Ravikumar Bolla -
While creating info record mandatory fields are disable .
hi all,
while creating info record some mandatory fields are disable (valid to) in condition what i can do to procede further?
how i fill data in that field?Hello,
I think that is set as a mandatrory field. You can give any values in days here. Enter 1 or 2 and proceed.
Prase -
To Pick correct Confirmation Control Key Automatic in creating Info Records
Dear All
We have Import Vendors and Domestic Vendors.In Import PO Creation Except for one vendor, rest of all the Vendors should have the Confirmation Control key as Mandatory.For domestic PO the Confirmation Control key should be Optional.This Confirmation control key is flowing from the Info record which is maintained by the Core Team of the Business.Since this Confirmation control key is not maintaining correctly (say Optional for the Import Vendor Infor records instead of Mandatory) by that core team in the info record ,while doing Goods Receipts system is not accepting to post through IDOC's.
How can we control this while creating Info record, means for Import Vendor Info record, system must not allow Confirmation control key as Optional and for Domestic Vendor system must not allow Confirmation control key as Mandatory.
Note :for One import Vendor say XXXXXXX the Confirmation control key must be Optional and for all Import Vendors it Must be Mandatory.
Kindest RegardsHi,
If you are using seperate vendor account group for import vendors you can make it mandatory for that vendor master purchasing tab
it will flow to info and po from there for one optional vendor create one dummy key with no confirmation control and assign in the
optional vendor
Thanks
Diwakar -
Creation of PO using BAPI_PO_CREATE1 without info record
Hi,
I am making a progrma to create the PO using BAPI_PO_CREATE1 but for the materials for which info record is create din the system it is creating the PO properly but for the materials for which info record is no there even I am giving the Price and tax cod ein th eBAPI item table system is not creating th PO, so is info record mandatory for this.
regards,
zafarHi,
I have use the BAPI as per given note ref. I am taking the PO price from Info record for this I am not giving the item price in the BAPI items, but I want that the header discount should from the user input, but when I ma giving the header discount codnition system is giving error PO header fault, but along with this If i given the items value to in the net price then it is creating the PO, so is it possible to get the items value from the info record and header codnition discount value from user input, we dont want to maintain discount at info record.
regards,
zafar
Maybe you are looking for
-
Running a Java program at startup in Linux
Hello How do I run a Java program at startup in Linux? I know in Windows I can put a .bat file in C:\Windows\Start Menu\Programs\StartUp\ directory, but in Linux I have no idea how it is done. Thank you, Mihai
-
Possible values for WDY_ATTRIBUTE_FORMAT_PROP-DATE_FORMAT?
Hi, where can I lookup possible values for formatting a date typed field using WDY_ATTRIBUTE_FORMAT_PROP-DATE_FORMAT? I did not find any documentation so far.
-
Deleting parent record with child instances
Is there a way i can delete records from the database when i have one of the columns being used in other tables. Eg: m_id used in tables meter ( Primary key ) and period_meter( foreign key) and site_area_meter (foreign key). I want to delete record w
-
Which HDD is compatible with HP 120W Advanced Docking station (NZ222AA)
Please tell me which HDD is compatible with integrated SATA upgrade bay of the HP 120W Advanced Docking Station (NZ222AA).. I can't find the info neither in user's manual nor at HP site. Thanks in advance. This question was solved. View Solution.
-
Soa Suite shutdown by itself on windows 2003
hi, i have installed SOA Suite 10.1.3.1 and updated with the patch from 10.1.3.1 ro 10.1.3.4 its working ..... but the Soa suite is shutdown by itself after after some time(After 20 mins) .... is their any problem or its bug..... or we have to change