BAPI_MATERIAL_MAINTAINDATA_RT ---Article with purchasing view
Hi,
I am using BAPI_MATERIAL_MAINTAINDATA_RT to create Article. I am able to create article using Basic view, Log. DC view etc.
There is no purchasing view in HEADDATA. Also fields like Purchase organization, net price etc are not present in any structure.How to create an Article with purchasing view using this BAPI.
Please help me in this regard.
Regards,
Kiran.
Hi,
I had the same problem with this bapi. To activate the purchasing view
I used WRF_MATERIAL_MAINTAINDATA_RT to create the materials.
You must put attention how works the mm41 and fill the segments in this
that you need.
*& Report ZTEST_BAPI_EXTENDEDUPDATE
REPORT ztest_bapi_extendedupdate.
DATA: headdata TYPE bapie1mathead.
DATA: return TYPE STANDARD TABLE OF bapireturn1.
DATA: lwareturn TYPE bapireturn1.
DATA: organizational_level TYPE wrfscreenvalues.
DATA: clientdata TYPE STANDARD TABLE OF bapie1marart WITH HEADER LINE.
DATA: clientdatax TYPE STANDARD TABLE OF bapie1marartx WITH HEADER LINE.
DATA: addnlclientdata TYPE STANDARD TABLE OF bapie1maw1rt WITH HEADER LINE.
DATA: addnlclientdatax TYPE STANDARD TABLE OF bapie1maw1rtx WITH HEADER LINE.
DATA: unitsofmeasure TYPE STANDARD TABLE OF bapie1marmrt WITH HEADER LINE.
DATA: unitsofmeasurex TYPE STANDARD TABLE OF bapie1marmrtx WITH HEADER LINE.
DATA: salesdata TYPE STANDARD TABLE OF bapie1mvkert WITH HEADER LINE.
DATA: salesdatax TYPE STANDARD TABLE OF bapie1mvkertx WITH HEADER LINE.
DATA: inforecordgeneral TYPE STANDARD TABLE OF bapieina WITH HEADER LINE.
DATA: inforecordpurchorg TYPE STANDARD TABLE OF wrfbapieine WITH HEADER LINE.
headdata-material = '000000000000400121'.
headdata-matl_type = 'ZMES'.
headdata-matl_group = '101210501'.
headdata-matl_cat = '00'.
headdata-ref_matl = '000000000000448590'.
headdata-basic_view = 'X'.
headdata-list_view = 'X'.
headdata-sales_view = 'X'.
headdata-logdc_view = 'X'.
headdata-pos_view = 'X'.
organizational_level-material = headdata-material.
organizational_level-matl_type = headdata-matl_type.
organizational_level-matl_group = headdata-matl_group.
organizational_level-matl_cat = headdata-matl_cat.
organizational_level-ref_matl = headdata-ref_matl.
organizational_level-purch_org = 'SPC1'.
organizational_level-vendor = '20400353'.
organizational_level-info_type = '0'.
*organizational_level-plant = ''.
* Llena clientdata
clientdata-material = headdata-material.
clientdata-base_uom = 'ST'.
APPEND clientdata.
clientdatax-material = headdata-material.
clientdatax-base_uom = 'X'.
APPEND clientdatax.
addnlclientdata-material = headdata-material.
addnlclientdata-sales_unit = ''.
addnlclientdata-li_proc_st = 'B1'.
addnlclientdata-li_proc_dc = 'B1'.
addnlclientdata-list_st_fr = sy-datum.
addnlclientdata-list_st_to = '99991231'.
addnlclientdata-list_dc_fr = sy-datum.
addnlclientdata-list_dc_to = '99991231'.
addnlclientdata-sell_st_fr = sy-datum.
addnlclientdata-sell_st_to = '99991231'.
addnlclientdata-sell_dc_fr = sy-datum.
addnlclientdata-sell_dc_to = '99991231'.
APPEND addnlclientdata.
addnlclientdatax-material = headdata-material.
addnlclientdatax-sales_unit = 'X'.
addnlclientdatax-li_proc_st = 'X'.
addnlclientdatax-li_proc_dc = 'X'.
addnlclientdatax-list_st_fr = 'X'.
addnlclientdatax-list_st_to = 'X'.
addnlclientdatax-list_dc_fr = 'X'.
addnlclientdatax-list_dc_to = 'X'.
addnlclientdatax-sell_st_fr = 'X'.
addnlclientdatax-sell_st_to = 'X'.
addnlclientdatax-sell_dc_fr = 'X'.
addnlclientdatax-sell_dc_to = 'X'.
APPEND addnlclientdatax.
unitsofmeasure-material = headdata-material.
unitsofmeasure-alt_unit = 'ST'.
unitsofmeasure-ean_upc = '7702111342224'.
APPEND unitsofmeasure.
unitsofmeasurex-material = headdata-material.
unitsofmeasurex-alt_unit = 'X'.
unitsofmeasurex-ean_upc = 'X'.
APPEND unitsofmeasurex.
"inforecordgeneral-info_rec ='5300002556'.
inforecordgeneral-material = headdata-material.
inforecordgeneral-mat_grp = headdata-matl_group.
inforecordgeneral-vendor = organizational_level-vendor.
inforecordgeneral-po_unit = 'ST'.
*inforecordgeneral-base_uom = clientdata-base_uom.
APPEND inforecordgeneral.
inforecordpurchorg-material = headdata-material.
inforecordpurchorg-vendor = organizational_level-vendor.
"inforecordpurchorg-info_rec = '5300002556'.
inforecordpurchorg-purch_org = organizational_level-purch_org.
inforecordpurchorg-info_type = '0'.
inforecordpurchorg-pur_group = 'GC1'.
inforecordpurchorg-currency = 'MXN'.
APPEND inforecordpurchorg.
BREAK-POINT.
CALL FUNCTION 'WRF_MATERIAL_MAINTAINDATA_RT'
EXPORTING
headdata = headdata
organizational_level = organizational_level
badi_callmode = '99'
TABLES
return = return[]
clientdata = clientdata[]
clientdatax = clientdatax[]
addnlclientdata = addnlclientdata[]
addnlclientdatax = addnlclientdatax[]
unitsofmeasure = unitsofmeasure[]
unitsofmeasurex = unitsofmeasurex[]
* plantdata = plantdata[]
* plantdatax = plantdatax[]
* salesdata = salesdata[]
* salesdatax = salesdatax[]
inforecord_general = inforecordgeneral
inforecord_purchorg = inforecordpurchorg
BREAK-POINT.
READ TABLE return INTO lwareturn WITH KEY type = 'E'.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF.
Similar Messages
-
Creation of Article with purchasing view.
Hi,
I am using BAPI_MATERIAL_MAINTAINDATA_RT to create Article. I am able to create article using Basic view, Log. DC view etc.
There is no purchasing view in HEADDATA. Also fields like Purchase organization, net price etc are not present in any structure.How to create an Article with purchasing view using this BAPI.
Please help me in this regard.
Regards,
Kiran.Hi,
I am using BAPI_MATERIAL_MAINTAINDATA_RT to create Article. I am able to create article using Basic view, Log. DC view etc.
There is no purchasing view in HEADDATA. Also fields like Purchase organization, net price etc are not present in any structure.How to create an Article with purchasing view using this BAPI.
Please help me in this regard.
Regards,
Kiran. -
Article master Purchasing view not showing up
We are using SAP retail and just created some articles using MM41. However, when I go to MM42 the purchasing view is not showing up. What could be the reason? Need help
RajHI,
May be while creating a Material initially they have not selected purchasing view when they created the material.
If you want the purchasing view then we have to extend the material to the purchasing views which is done b MM50. select purchasing view and then maintain the relevant data for the material.
Thanks & Regards,
Kiran -
Article creation--How to create purchase view
Hi,
I am using BAPI_MATERIAL_MAINTAINDATA_RT to create Article. I am able to create article using Basic view, Log. DC view etc.
There is no purchasing view in HEADDATA. Also fields like Purchase organization, net price etc are not present in any structure.How to create an Article with purchasing view using this BAPI.
Please help me in this regard.
Regards,
Kiran.Hi,
I am using BAPI_MATERIAL_MAINTAINDATA_RT to create Article. I am able to create article using Basic view, Log. DC view etc.
There is no purchasing view in HEADDATA. Also fields like Purchase organization, net price etc are not present in any structure.How to create an Article with purchasing view using this BAPI.
Please help me in this regard.
Regards,
Kiran. -
Article Master--Sales view--Problem
Hi
I have 2 Purchasing orgs say 1000 and 2000
I am creating a vendor for purchase org 1000 say Vendor 1
I am creating an article with all views and with purchase org 1000 and Vendor 1 in purchasing view with condition PB00 maintained
In my sales view i am entering all details and vendor as Vendor 1 and Purchase org as 1000 and have done necessary config for carrying out sales price calculations and save this article
In MM42 when i see the sales view of this article Vendor shows correct and purchase org is showing incorrectly as 2000
I am giving once again purchase org as 1000 and saving it system displays message as sales price calc is performed
But again in MM42 or MM43 the purchase org is showing incorrectly as 2000
From where does the system pick the purchase org in the sales view of AMR?
The vendor doesnt lie in that purchase org 2000 which the system is defaultly taking
Because of this my conditions and inforecords are not read by system and sales price calculations are not been performed?
Hope i am clear
Waiting for your inputs
Regards
Raja>
> I'm also having in some records, the warning message "The data for the maintenance statuses BG cannot be transferred". That indicate problems with the accounting view.
Each material type has its own set of views, e.g. a FERT has sales views but no pruchasing view, a ROH has purchasing view but no sales view, a NLAG has no storage views and a UNBW no accounting views.
This is defined in customizing of attributs of a material type.
Because of this you have to make sure that you do not transfer sales data for a material type that does not have sales views.
Which views you actually want to create is defined in field PSTAT. Each character stands for a certain view (defined in table T132)
re:The data for the maintenance statuses BG cannot be transferred
Are your matrials split valuated?
if you want create accoutning data in MBEW table with MBEW-PSTAT having BG status, then you have to make sure that MARA and MARC PSTAT field also has the B and G . -
WRP1 considering Articles with different Purchase group
Hi
Gurus,
We
are facing issue in WRP1 program, in production system one STO is created
for many articles with different purchase group with same site,
But
My understanding is that when replenishment happens, different STOs will
be created for different purchase group for same site and client is also
expecting same thing...
Issue
- In STO articles are belongs to same site but different purchase
group, in PO header its updated purchase group as 002 but if check line items
Articles are from many purchase group like, 001 , 002 , 003 etc....
When
in header its showing purchase group as 002 it should consider articles
with same purchase group but its combining all articles belongs to same site
irrespective of purchase group.
Kindly advise
Regards,
VinayHi Vinay,
It's standard system behaviour. PO group on header level is for reporting purposes, it's not scoping the allowed articles on the item lines. Therefore, WRP1 creates the STO with a mixture of articles of several purchase groups.
Perhaps this apporach might be feasible for your challenge:
- In stead of creating STO, create purchase requisition as follow on document from WRP1 processing (see Store Order Control in SPRO);
- after WRP1 processing, run ME59N (also possible in background) for the purch. reqs. created in WRP1 with the parameter 'Per purchasing group' (and perhaps also 'Per site'). This should result in STO's per site/purchase group.
Regards,
Johan -
BAPI_MATERIAL_MAINTAINDATA_RT-Purchasing View
Hi all,
I have to upload the data for MM41 transaction.
In the 'BAPI_MATERIAL_MAINTAINDATA_RT' purchasing view is not available. i have to select all views how can i do? Plz help.
Regards
PriyaranjanHi all,
I have to upload the data for MM41 transaction.
In the 'BAPI_MATERIAL_MAINTAINDATA_RT' purchasing view is not available. i have to select all views how can i do? Plz help.
Regards
Priyaranjan -
Multiple Apple IDs (2) with Purchases & iTunes Match. Apple TV Purchases. Not happy to have to log in/out to view and enjoy my Purchase Contest. What's the solution?
Hi
i ran into the same problem. surprisingly though, i am not using multiple apple id and just one mac.
i did change both the account (apple id) and the computer (from pc to a mac server), but home sharing is on and the apple tv (1) is synced with the new computer.
i can connect to the itunes store and browse through it (signed in at all times). i cannot purchase any content and cannot play transferred rentals from the computer (apple tv is not authorised...)
somehow, it seems the apple tv was stuck with a previous id.
i have just now re-authorised my computer on the account and will give the apple tv another try. i did notice a message during the re-authorisation process. the apple tv is being authorised. this gives me hope.
in any case, your setup seems to be a dream come through. i decided to phase out my high end multiroom linn kivor system (over 20k back 6y ago) to an itunes based system. apparently you managed to build something.
i tried an itunes based nas but gave up due to complex operation (and overheating on top) and went for a mac server. i will be using windows clients though.
most of my content is cd based. can you sync purchased content between pc's? or with a server? -
Fields are missing in Purchasing View
Dear Experts,
We have developed Work flow to create material.The work flow cycle follows like this
<b>User1-Basic Data1&2,User2-Sales Views,User 3-Purchasing View,User4-MRP Views and User5- Finance and Accounting Views...</b>
For this we made an option in Basic Data1 view.There is a field called <b>Lab/Office</b>,we customized this field for our purpose.
1.If we give value as 1, system will trigger user to create a material through work flow.
2.If we give value as 2,system will come out of work flow,and user can create a material as normal.
Now we got an issue like this...when user has created a material through work flow,in Purchasing View some fields are missing...<b>Purchasing Group,Plant-sp.matl status,Tax ind. f. material,Qual.f.FreeGoodsDis,Autom.PO</b>....
While creation of material this Purchasing Group field is appearing at the time of MRP1 and after creation of material,when we go for display material it is showing <b>Purchasing Group,Plant-sp.matl status,Tax ind. f. material,Qual.f.FreeGoodsDis</b> fields.....
Why it is happening like this???Does this Lab/Office Field has got any affect on work flow???
Please reply me...
Regards
MKDear Ashish,
We had given authorization to user.
I would like to ask one more thing,with this particular user we tried to create a material through normal procedure with MM01.Then also in Purchasing View Screen,some fields are missing.
<b>Purchasing Group,Plant-sp.matl status,Tax ind. f. material,Qual.f.FreeGoodsDis,Autom.PO....</b>...
We tried to create with other user,then we can see all field Purchasing View....
So is there any settings on user specific for these fields???
Please Do Reply me....
Regards
MK -
My left arrow does not work on my macbook pro(model A1226).
I have reset nvram, performed a safe boot, pulled the cache to desktop, replaced .globalpreference.plist, & tested all other keys with "keyboard viewer" (all other keys work except for the arrow).
In addition, I have gone thru all the recommended checks with universal access and have booted from snow leopard dvd and the left arrow still does not work.
I have tried using the left arrow key in all of applications I use such as: excel, ms word, address book, calendar, iphoto, terminal, & highlighting an icon and using the arrows to move to another selected icon.
Here is the kicker! In addition, I purchased a logitech solar bluetooth keyboard and the arrows work fine with my ipad but do not work when paired with the macbook pro. All other keys work fine on the macbook pro using the bluetooth keyboard.
I believe this says that the problem is not in my macbook pro keyboard. So where can it be?
Can anyone think of any other rabbit holes I can search?
thanks and regards
vats3I would also like to add that I've reverted the two cd drive and hard drive mods I did and the laptop is back to factory hardware and there is 0 corrosion or mold visible.
-
Activating auto PO Check Box in the purchasing view for plant level.
Hi Techies,
Right now i have an issue related to auto PO check box in the purchasing view for the plant level. There are three plants A,B,C.. For the plants A and B the automatic PO check box is visible and the user is able to provide input values. But when it comes to plant C the auto PO field is not available and hence the user is unable to provide input for auto PO.
Is there any configuration to be done to activate the auto PO check box in the purchasing view in the material master with respect to plant C?
If so could you please guide me with the settings?
Thanking you in advance.
Regards,
Gopalakrishnan.S
Edited by: krishu100 on Jul 13, 2011 2:25 AMHi Techies thanks for you all info.
Now today i just tried to created a new HALB Material in the plant C which i had issues yesterday. But when i created today a new material the Auto PO feild is available for entry. THen i tried to go to the material which i created yesterday for editing it. But i was unable to do it.
I checked the transactions which most of you referred(Very Useful). I found that all the plant s had the same screen selction setting and set as Opt Entry. The field screen referrence for MM01, MM02 Transaction s are also set as opt entry. The screen reference for HALB is also set as Opt entry. Still i m not able to find the field auto PO in the purchasing field.
So does it mean that a material once created without auto PO enabled or visible can never be updated after that? But i think its not the case and we should be able to edit it(correct me if im wrong).
Really having my fingers crossed to find a solution for this issue.
Regards,
Gopalakrishnan.S -
PO creation without Purchasing view in material master
Hi
i am using 4.6 version
system is allowing to create PO without purchasing view in material master.
how it would be possible ?
Regards
RahulHi,
i have checked with MARA for that material PSTAT value it is showing there "KDALBPCGV"
please suggest
regards
rahul -
Not able to import the article with sidecar.xml
Hi,
With the new DPS version (ver. 18), we are not able to import the article with sidecar.xml. Could you please check and suggest the solution for the same.
With Regards,
Anil YadavI read that your sidecar needs the author-value to be working.
—Johannes
(mobil gesendet)
Am 30.01.2012 07:54 schrieb "Anil Yadav" <[email protected]>:
not able to import the article with sidecar.xml created by Anil Yadav<http://forums.adobe.com/people/Anil+Yadav>in
Digital Publishing Suite - View the full discussion<http://forums.adobe.com/message/4173103#4173103> -
Post Author: Lee XI
CA Forum: General
Hello all. I'm currently using CR XI (not server) and downloaded the Viewer yesterday to test on a spare pc. Reason for this is I want others to be able to view and set parameters I designed in the report(s). However, when you open the Viewer, no parameters that I set up are showing. (IE: date, State, Customer, etc) When I am in CR XI and I hit refresh it brings up all the parameters that should be available to the end users to adjust the report manually.The reason I'm trying to go this route is that our company is small and running CR server is out of the budget. Should the viewer allow for prompted params for those using the CR Viewer or not? I do not want to waste time with this if the Viewer cannot or will not allow end users to select a date range or state, or other params I want them to? I do not want to purchase another CR XI version because I do not want these users to have design access to the reports. I simply want them to be able to select certain params that I have set up for them. Thanks in advance! LeePost Author: DRCL
CA Forum: General
I have discovered another issue with the viewer also.
If a report is designed/saved in LANDSCAPE mode, but the recipient opens in the viewer and the printer default is PORTRAIT, then it automatically prints in Portrait. It scales to fit to the page.
If the user overrides the default and changes it to LANDSCAPE, it still prints in Portrait.
Any ideas on this or the linked OLE issues would be much appreciated. -
How do I create/host interactive articles with embedded video for use in browsers?
I'm seeking a little guidance -
How do I create/host interactive articles with embedded video for use in browsers?
The aim is to bring together video, design, images and writing in one place. A little like Born Presents, but very accessible and user friendly.
I'm happy using InDesign but want to create interactive articles / magazines that have embeded video files as required. I've been looking at .SWF files but I've come unstuck.
I want people to view the articles via a blog, ideally with them opening in a lightbox style viewer. It's not intended for tablet viewing and people should be able to view and interact with the files with little effort on their part.
I think I know how to create these files within InDesign, but I'm not so hot on web design and I'm not sure how to host these online. Does this start coming into the realms of Flash?
If anyone could point in the right direction I'd really appreciate it - Thank you in advance.PDF is one thing. Folios for DPS is another. There is a little bit of
overlap but not much.
The interactivity in the folio overlays panel is for DPS only.
Maybe you are looking for
-
Error in Bapi : Change Purchase Requisition
Dear All, We have requirement where we need to update the Purchase Requisition Quanity. For this purpose, I am using Bapi '/AFS/CHANGE_AFS_PR_DATA'. In this I want to change Sheduled Qty. (AFS Grid Qty.), but I m getting error like "Line item 0010 :
-
I installed the latest software update on our Apple TV - this allows us to access VIMEO. However, although we can still play music from an iPhone 4 we can no longer play purchased tv shows - unless the buffering process has been extended to be glaci
-
A method to create halos on multiple lines without any visible overlap of the halos?
I'm struggling to find an easier way to create a uniform halos on overlapping line. It needs to be reversible. Meaning I can change it whenever I can. Header 1 Header 2 Currently I am using a method that is time consuming, requires a lot of planning
-
Using AS3 to play a set of frames I want and then stop
Hi everyone: I am helping a friend with a project. I have a button that when clicked on, it enlarges and shows content inside the button. Now, there is more content inside this button that when clicked on, enlarges and shows more content. I have all
-
To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English. You can also go back to the SAP help page.