BAPI_MATERIAL_SAVEREPLICA - Where to pass the Purchasing View data
Dear Friends,
We are using BAPI_MATERIAL_SAVEREPLICA to create a material. Please let us know in which structure should we pass the purchasing view data such as follows:
Vendor No
FOB cost
Purchasing Org
Hi u can refer this .
This is for BAPI_MATERIAL_SAVEDATA purchase view.
*Purchasing
PERFORM conversion USING wa_data-BSTME CHANGING BAPI_MARA1-PO_UNIT.
BAPI_MARA1-VAR_ORD_UN = wa_data-VABME.
BAPI_MARC1-PUR_GROUP = wa_data-EKGRP.
BAPI_MARA1-BATCH_MGMT = wa_data-XCHPF1.
BAPI_MARC1-GR_PR_TIME = wa_data-WEBAZ.
BAPI_MARA1-MANU_MAT = wa_data-MFRPN.
Begin of changes +MR25092009
BAPI_MARA1-PUR_VALKEY = wa_data-EKWSL.
End of changes +MR25092009
BAPI_MARAX-PO_UNIT = 'X'.
BAPI_MARAX-VAR_ORD_UN = 'X'.
BAPI_MARCX-PUR_GROUP = 'X'.
BAPI_MARAX-BATCH_MGMT = 'X'.
BAPI_MARCX-GR_PR_TIME = 'X'.
BAPI_MARAX-MANU_MAT = 'X'.
Begin of changes +MR25092009
BAPI_MARAX-PUR_VALKEY = 'X'.
End of changes +MR25092009
Similar Messages
-
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 -
How to pass the internal table data to smartforms
Hi Gurus,
I have a problem in passing the internal table data to the smartforms. In the print program
I get the data into one internal table "LT_PRDLBL1". I am passing this internal table to the other in print program by calling the FM_NAME.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = T_SSFCTRLOP
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = T_SSFCOMPOP
USER_SETTINGS = ' '
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
LT_PRDLBL = LT_PRDLBL1
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
In the print program I had defined the internal tables like
Data: lt_prdlbl type standard table of zprdlbl.
Data: Begin of lt_prdlbl1 occurs 0.
include structure zprdlbl.
Data: End of lt_prdlbl1.
How do I define the internal table in the smartform to get the values printed in the smartform?.
<REMOVED BY MODERATOR>
Thanks,
Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:01 PMNehal,
Thanks for quick response.
In the smartform under the Form Interface->Tables tab
I had defined
LT_PRDLBL LIKE ZPRDLBL. If I define TYPE instead of LIKE I get the error message saying "FLAT TYPES may only be referenced using LIKE for table parameters".
In the main window I have created LOOP, in which I have ticked the internal table and
LT_PRDLBL INTO LT_PRDLBL. In the text node I am passing the values of this internal table
<_PRDLBL-XXXX&.
I am able to get the print but the data is not printing.
Please help me with this.
Thanks, -
We are not able to pass the presentation variables(date & Date1) to the det
Hi,
We have followed the below link to use the date between prompt and passed the presentation variables in the filter condition of the report criteria.
http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
But we are not able to pass the presentation variables(date & Date1) to the detail report.
Any suggestions are highly appreciated.
Thanks in Advance
Siva.Yes,I think it wont pass the parameters from one parent report to child report.one thing you can do is put the detailed report on a page in the same dashboard as that of prompt.Put the same between condition on that report also.Give navigation link to this page instead of report.You can hide this page as well so that it will be available only on navigation.
i have not tried it.Give it a try.
Regards,
Sandeep -
How do we pass the Business Event Data in the EBS business Events subscription Testing?
HI,
How do we pass the Business Event Data in the EBS business Events subscription Testing?
--KhaleelHi,
Just to add what Dianne has said, whenever you are carrying out any configuration/ customising, you have to test all the related scenarios. For this you have to take help of the End Users who are in a better position to carry out this testing. If the affecting modules like FI, MM, SD, are many, then you also have to see how the cross-module enties are flowing.
Regards,
amit -
Problem in Passing the select-options data in smartforms
Dear ABAPers,
I have developed new layout for Delivery Chellan using smartforms.
using parameters i am getting document no, corresponding all details getting print.
but the client wants to use multiple document no.
in function module also i am passing only one import parameter (i.e. doc.no).
my requirement is how to pass multiple data in smartfroms.
Thanks & Regards,
AshokDear ABAPers,
Here i give my code Please check it out and tell me where i am going wrong.
*& Report ZMM_DC_FORM *
REPORT ZMM_DC_FORM .
Data Declaration
tables : mseg,
mkpf,
ekpo,
ekko,
objk,
mbew,
ser03,
twlad,
makt,
adrc.
data : begin of struct_mblnr,
mblnr type mblnr,
end of struct_mblnr.
data : it_mblnr like table of struct_mblnr with header line.
data : begin of i_struct,
mblnr like mseg-mblnr,
mjahr like mseg-mjahr,
matnr like mseg-matnr,
erfmg like mseg-erfmg,
werks like mseg-werks,
lgort like mseg-lgort,
ebeln like mseg-ebeln,
ebelp like mseg-ebelp,
umwrk like mseg-umwrk,
end of i_struct.
data : begin of bednr_struct,
matnr type ekpo-matnr,
bednr type ekpo-bednr,
end of bednr_struct.
data : begin of price_struct,
matnr type mseg-matnr,
verpr type mbew-verpr,
stprs type mbew-stprs,
end of price_struct.
data : begin of serial_struct,
matnr like objk-matnr,
sernr like objk-sernr,
end of serial_struct.
data : begin of fi_struct,
matnr type mseg-matnr,
maktx type makt-maktx,
bednr type ekpo-bednr,
erfmg type mseg-erfmg,
verpr type mbew-verpr,
val_p type mbew-verpr,
end of fi_struct.
data : it_tab like table of i_struct with header line.
data : it_add1 type table of adrc with header line,
it_add2 type table of adrc with header line.
data : it_bednr like table of bednr_struct with header line.
data : it_price like table of price_struct with header line.
data : it_ser type table of ZMM_DC_SERIAL with header line.
data : it_final like table of fi_struct with header line.
data : s_date like mkpf-budat.
data : s_ebeln like ekpo-ebeln.
DATA : FM_NAME TYPE RS38L_FNAM.
Selection Screen Variables
selection-screen : begin of block b1 with frame title text-001.
select-options : s_mblnr for mseg-mblnr.
parameters : s_mjahr type mseg-mjahr.
selection-screen : end of block b1.
Start of Selection
start-of-selection.
select mblnr from mseg into table it_mblnr where mblnr ge s_mblnr-low
and mblnr le s_mblnr-high.
delete adjacent Duplicates from it_mblnr.
*loop at it_mblnr.
*write : it_mblnr-mblnr.
*endloop.
loop at it_mblnr.
select mblnr
mjahr
matnr
erfmg
werks
lgort
ebeln
ebelp
umwrk from mseg into table it_tab where mblnr = it_mblnr-mblnr
and mjahr = s_mjahr
and xauto <> 'X'.
read table it_tab index 1.
*code for PO Number
s_ebeln = it_tab-ebeln.
*code for Supplying plant address
select single adrnr from twlad into twlad-adrnr where werks = it_tab-werks
and lgort = it_tab-lgort.
select single * from adrc into it_add1 where addrnumber = twlad-adrnr.
clear twlad-adrnr.
*code for receiving plant address
select single lgort from ekpo into ekpo-lgort where ebeln = it_tab-ebeln
and ebelp = it_tab-ebelp.
select single adrnr from twlad into twlad-adrnr where werks = it_tab-umwrk
and lgort = ekpo-lgort.
select single * from adrc into it_add2 where addrnumber = twlad-adrnr.
clear : twlad-adrnr,
ekpo-lgort.
*code for the Material Document Date
select single budat from mkpf into s_date where mblnr = it_mblnr-mblnr
and mjahr = s_mjahr.
loop at it_tab.
it_final-matnr = it_tab-matnr.
it_final-erfmg = it_tab-erfmg.
*Code for Material Description
select single maktx from makt into makt-maktx where matnr = it_tab-matnr.
it_final-maktx = makt-maktx.
clear makt-maktx.
*Code for Service order Number
select single matnr
bednr from ekpo into it_bednr where ebeln = it_tab-ebeln
and ebelp = it_tab-ebelp
and matnr = it_tab-matnr.
it_final-bednr = it_bednr-bednr.
*Code for Price for the Material
select single matnr
verpr
stprs from mbew into it_price where matnr = it_tab-matnr
and bwkey = it_tab-werks.
if it_price-verpr <> 0.
it_final-verpr = it_price-verpr.
else.
it_final-verpr = it_price-stprs.
endif.
it_final-val_p = it_final-erfmg * it_price-stprs.
append it_final.
clear it_final.
endloop.
*Code for Serial Number
select single obknr from ser03 into ser03-obknr where mblnr = it_mblnr-mblnr
and vorgang = 'MMSL'.
select matnr
sernr from objk into table it_ser where obknr = ser03-obknr.
clear ser03-obknr.
*Calling Function Module for Smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZMM_DC_FORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FM_NAME
EXPORTING
L_MBLNR = it_mblnr-mblnr
L_DATE = S_DATE
L_EBELN = S_EBELN
IT_ADD1 = IT_ADD1
IT_ADD2 = IT_ADD2
TABLES
IT_FINAL = IT_FINAL
IT_SER = IT_SER.
endloop.
Please help me to solve this problem.It is very urgent.
Thanks & Regards,
Ashok. -
Where to find the blob viewer in sql developer
Hi,
i tried to find the blob viewer in sql developer to see blob column data , but failed. The manual introduce blob vievers but not mention where it is in sql developer
can any gurus guide me to find blob viewers
Thanksuser10833860 wrote:
double click the result cell of blob. the blob viewer will pop up
This quote is from the 2nd link
http://sqldeveloper.solyp.com/download/SQLDeveloperUserManual_en.pdfThis is not the same SQL Developer as the Oracle supplied SQL Developer.
It shows the raw binary data unless it is a JPEG, GIF or PNG where you can see a picture.
>
http://download.oracle.com/docs/cd/E18464_01/doc.30/e17472/dialogs.htm
This is better, this is the documentation for Oracle SQL Developer
>
Use the external editor associated with the MIME type and file extension (see the preferences for External Editor)
>
http://download.oracle.com/docs/cd/E18464_01/doc.30/e17472/intro.htm#CHDDJFGE
>
The External Editor pane determines which external editor is called by SQL Developer when you try to edit binary large object (BLOB) data, such as image files, video files, and other files created by certain applications. For each combination of MIME type and file extension, you can specify the executable application to be used to open and edit associated files.
>
Did you set up an application that can open the binary files of the type you want to view? -
User Exit/BADI to change the Purchase Requisition date,creating threw MD02
Hi,
I've a requirement to change the Purchase Requisition creation date.
I'm using MD02 to create Purchase Requisition.
Based on the requirement if the available qty is less than the required quantity,we can change Purchase requisition date.
Please let me know if any BADI's/User Exits we can use for this purpose.
I've checked EXIT_SAPLMEREQ_010. I've kept debugging point nad i run MD02, but it is not stopping in the exit.
we are using SAP 4.6c.
Thanks,
Adi.Hi Experts,
Could you please give me a suggestion for the above problem???
Thanks,
Adi. -
How to Pass the internal table data?
DearAll,
How to pass the Data of one internal table on a 1.html page to another html page for output, in BSP Application.
regards.Hi ,
In the onInputProcessing event of the first page , write the following code...
call method NAVIGATION->SET_PARAMETER exporting
name = 'it_filt_cur'
value = it_filt_cur.
Here it_filt_cur is internal table.
NAVIGATION->GOTO_PAGE('next.htm').
In the next page , you can make the internal table as auto in the attributes.
Since you have made the itab as auto transfer , you can directly access the itab in the initialization event of the next page if it is stateless.
Regards,
Laxman Nayak.
Message was edited by: Laxman Nayak -
How to pass the page item data from tabA to TabB of a discoverer report
I have a discoverer repoort, it is master_detail (Dept-Emp) report
TabA is a master worksheet, which has a page item Deptno
(the data is from a customized query)
TabB is detail report which has a Deptno as the page item
which show the emp detail info on this deptno
(the date is from another customized query).
What I want to do is;
When I change the Deptno in TabA, TabB should automatically change to the deptno of Tab A when I click TabB.
How can I pass the page item deptno from TabA to page item of TabB?
Thanks for your helpHi.
You are absolutely right, you cannot create a link from Page Item.
My Idea was (and I'm sorry taht I didn't mention it at the beginning) to create one link for each and every column in the report in the TabA.
All these links would be exactly same and pass the Deptno to the TabB.
So the end user can click wherever he wants (all cells on the worksheets have the link to the TabB) and he is always redirected to the TabB with the Department parameter seted to Deptno Page Item from TabA.
As I already said before, it is not exactly what you expected, but it's probably the best you can get out of Plus.
Jakub -
Read & Modify the table view data
Dear Experts,
CRM 7.0
I've added few extra custom fields to the table view through Workbench enhancment as AET does not work for my object type. Now, I would like to read the current table entries and accordingly i should fill the other columns. I am not sure how can I proceed. Please advise me asap.
Many thanks in advance.Hi,
Yes I guess you can do it in DO_PREPARE_OUTPUT.
Use below code to read values from table:
DATA: lv_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
lr_entity TYPE REF TO cl_crm_bol_entity,
lv_attribute type string,
LV_ATTRIBUTE_VALUE type string
TRY.
lv_wrapper = me->typed_context->ZCONTEXTNODENAME->get_collection_wrapper( ). " Here you will get all values from table into lv_wrapper
CHECK lv_wrapper IS BOUND.
lr_entity ?= lv_wrapper->get_first( ). " Loop at table
WHILE lr_entity IS BOUND.
lv_attribute ?= lr_entity->get_property_as_string( 'ATTRIBUTE NAME' ). " TO read perticular attribute
*OR as per your requirement you can change the value. Here you can write your logic...
lr_entity->set_property_as_string( iv_attr_name = 'ATTRIBUTE NAME' iv_value = LV_ATTRIBUTE_VALUE ). " Change attribute property
lr_entity ?= lv_wrapper->get_next( ).
ENDWHILE.
CATCH cx_root.
RETURN.
ENDTRY.
Please let me know if it helps.
Regards,
Bhushan -
Where are stored the separated variables data?
Guys,
Does anyone here know where are stored the data for separated variables?
I'm doing some research in my enviroment to know the capacity needed for process demand and I need to count the separated variables usage of my database.
Any helps are appreciated.
Regards,
LuizHi Luiz,
Separated instance variables are stored in the Engine's "PDETACHEDFIELD" table.
Dan -
How to pass the parameter in "Data Template"
Hi,
Can any one please help me out to sort the problem, "Passing Parameter and checking condition for the parameters in the "data template".
And also please tell me how to link the multiple query in "Data template", as per the user guide i have it says to use link tag. But its not working with my "Data template".
Please check the data template given below and help me out to sort the problem.
And one more thing is in table the data type for number and name is varchar. I dono weather i can use that data type in "Data template", please let me know if i can.
<?xml version="1.0"?>
<dataTemplate name="VENODR_DETAILS">
<parameters>
<parameter name="VENDOR_NUM" dataType="number"/>
<parameter name="VENDOR_NAME" dataType="char"/>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[SELECT pv.segment1 ven_num,
pv.vendor_name vname,
pvs.vendor_site_code VEN_SIT_CODE,
pvs.purchasing_site_flag PURCH_SIT_FLG,
pvs.pay_site_flag PAY_SIT_FLG,
pv.vendor_name VENDOR_ADDR_NAME,
pvs.address_line1 VENDOR_ADDR1,
pvs.address_line2 VENDOR_ADDR2,
pvs.city VENDOR_CITY,
pvs.state VENDOR_STATE,
pvs.zip VENDOR_ZIP
FROM vendors pv,supplier_info pvi,vendor_sites_all pvs
where pv.segment1 = pvi.vendor_id(+)
and pv.vendor_id = pvs.vendor_id
and (pv.segment1=:VENDOR_NUM or pv.vendor_name=:VENDOR_NAME)
]]>
</sqlStatement>
<sqlStatement name="Q2">
<![CDATA[select pvc.area_code||'-'||pvc.phone Contact_Phone,
pvc.last_name||' '||pvc.first_name||' '||pvc.middle_name cname
from vendor_contacts pvc,vendor_sites_all pvs,vendors pv
where pvs.vendor_site_id = pvc.vendor_site_id
and pv.vendor_id = pvs.vendor_id
and pv.segment1=(pv.segment1=:VENDOR_NUM or pv.vendor_name=:VENDOR_NAME)
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="VENDOR" source="Q1">
<element name="VENDOR_NUMBER" value="ven_num"/>
<element name="VENDOR_NAME" value="vname"/>
<element name="CATEGORY" value="VENDOR_CAT"/>
<element name="UPDATE_DATE" value="UPDATE_DT"/>
<group name="VENDOR_SITE" source="Q1">
<element name="VEN_SIT_CODE" value="VEN_SIT_CODE"/>
<element name="PURCH_SIT_FLG" value="PURCH_SIT_FLG"/>
<element name="PAY_SIT_FLG" value="PAY_SIT_FLG"/>
<element name="VENDOR_ADDR1" value="VENDOR_ADDR1"/>
<element name="VENDOR_ADDR2" value="VENDOR_ADDR2"/>
<element name="VENDOR_CITY" value="VENDOR_CITY"/>
<element name="VENDOR_STATE" value="VENDOR_STATE"/>
<element name="VENDOR_ZIP" value="VENDOR_ZIP"/>
</group>
</group>
<group name="VENDOR_CONTACT" source="Q2">
<element name="Contact_Phone" value="Contact_Phone"/>
<element name="cname" value="cname"/>
</group>
</dataStructure>
</dataTemplate>
Thanks in advance.
Regards,
SPHi Rani,
I see one issue in the Q2 with the where statement:
and pv.segment1=(pv.segment1=:VENDOR_NUM or pv.vendor_name=:VENDOR_NAME)
the right one should be
and pv.vendor_id = :VEN_VENDOR_ID
the variable VEN_VENDOR_ID you have to select from the first query Q1. Add here after select
pv.vendor_id VEN_VENDOR_ID,
Regarding the other question about the data types, well, number and varchar2 is fine, perhaps char also, but go with varchar2 instead.
One last note: you should not mix uppercase and lowercase, keep it clear and structured, check your element names and values.
Best Regards
Volker -
i would like to sync my second generation ipod touch to a new laptop with the recently updated version of itunes. in order to do this, it deletes all the music of the ipod. i would like to be able to save my music as i have spent alot of money purchases it. i have backed up the ipod in order not to loose any of the music but i cannot find where the songs are backed up to? can you please help me find where the songs have been backed up to so i can save them please
See:
Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
The iPod backup that iTunes makes does not include synced media like apps and music. -
Where to give the Employees confirmation date....
Hi experts...
Here im facing a problem when running a z report.
For some employees the system is not picking the confirmation dates.
Here im checking the contract elements infotype 0016..here everything is fine as 12 months...
Why the system is not picking the confirmation date for some employees.
Regards,
Sai.The process of storing date specifications can be automated based on the hiring action using dynamic actions. For eg. if the confirmation date needs to be stored based on the hiring date, then a simple dynamic action can be configured to populate a confirmation date in infotype 41 based the 0000 or 0001 infotype inputs in the hiring action.
In our case, we have stored the due date of confirmation in infotype 0019 as a task since we also wanted to track the closure of the confirmation process.
regards,
Anirudha
Maybe you are looking for
-
Error in data template while using database function
Hi, I have created a datatemplate in BI Publisher with the following code. <dataTemplate name = "AuditReport" dataSourceRef = "pg"> <dataQuery> <sqlStatement> SELECT b.*,s.audit_table_name,s.audit_operation,s.AUDIT_TIME_STAMP FROM bi_audit_records b,
-
Acrobat 9 Pro zerstört Hyperlinks beim Einfügen von PDF Dokumenten in andere
Hallo zusammen, folgendes Vorgehen führt zu einem Fehlverhalten beim Handling von Hyperlinks in PDF: Wir wandeln ein Worddokument mit Hilfe von Acrobat 9 Pro in eine PDF um. Im entstandenen PDF Dokument sind die Hyperlinks voll funktionstüchtig. (Hyp
-
Problem with a Zebra Printer TLP 2844
Hi all We have a problem with a Zebra TLP 2844 barcode printer. I can´t print any document(common documents or barcode levels Sapscript). I read and applied the note: "Note 179534 - Label printing with Zebra printers (SAPscript)" without sucesfully (
-
How to create Service and response profiles
Hello Gurus I have configured the IC Web Client in solution manager 4.0 system. But in sservice ticket i am not able to see the SLA info. Please tell me where to give these SLA parameters ? How to create service and response profiles?
-
Time Zone bug with 1.0.5.2304
I've noticed a problem with time zones in the latest version of the PlayBook OS. When you set the time zone to Saskatchewan it will display the correct time on the Date and Time page but the time that shows up in the status bar is one hour later. Any