Doubt about BAPI
Hi Experts,
I have one doubt. I want to Attach document to the material of a particular BAPI that have been existed in the sap r/3 system.Which BAPI wil work for this to attach a document to the material.Please let me know . Its very urgent.
Helpful Answers wil be reward
Regards
Khanna
Hi.
Both of the listed BAPI's have no functionality/option to link a document!
Can anyone suggest a BAPI/RFC to link a Document while creating a Material? Also, You can link a Document to a Material by "BAPI_DOCUMENT_CHANGE2".
Similar Messages
-
Hi ALL
Can any body tell me how this FM works..
Can i use it to get the Scheduling agreement details from this
CALL FUNCTION 'BAPI_PO_GETDETAIL'
EXPORTING
PURCHASEORDER = W_EBELN
ITEMS = 'X'
ACCOUNT_ASSIGNMENT = ' '
SCHEDULES = ' '
HISTORY = ' '
ITEM_TEXTS = ' '
HEADER_TEXTS = ' '
SERVICES = ' '
CONFIRMATIONS = ' '
SERVICE_TEXTS = ' '
EXTENSIONS = ' '
IMPORTING
PO_HEADER = THEADER
PO_ADDRESS =
TABLES
PO_HEADER_TEXTS =
PO_ITEMS = TEKPO
PO_ITEM_ACCOUNT_ASSIGNMENT =
PO_ITEM_SCHEDULES =
PO_ITEM_CONFIRMATIONS =
PO_ITEM_TEXTS =
PO_ITEM_HISTORY =
PO_ITEM_HISTORY_TOTALS =
PO_ITEM_LIMITS =
PO_ITEM_CONTRACT_LIMITS =
PO_ITEM_SERVICES =
PO_ITEM_SRV_ACCASS_VALUES =
RETURN =
PO_SERVICES_TEXTS =
EXTENSIONOUT =Just pass the PO number the BAPI will get everything else for you.
CALL FUNCTION 'BAPI_PO_GETDETAIL1'
EXPORTING
purchaseorder = gs_tagpo_exists-ebeln
IMPORTING
poheader = gs_bapipo_header
TABLES
return = gt_bapipo_return
poitem = gt_bapipo_item
poschedule = gt_bapipo_schedule
poaccount = gt_bapipo_account.
Cheers
VJ -
Doubt about a null value assigned to a String variable
Hi,
I have a doubt about a behavior when assigning a null value to a string variable and then seeing the output, the code is the next one:
public static void main(String[] args) {
String total = null;
System.out.println(total);
total = total+"one";
System.out.println(total);
}the doubt comes when i see the output, the output i get is this:
null
nulloneA variable with null value means it does not contains a reference to an object in memory, so the question is why the null is printed when i concatenate the total variable which has a null value with the string "one".
Is the null value converted to string ??
Please clarify
Regards and thanks!
Carlosnull is a keyword to inform compiler that the reference contain nothingNo. 'null' is not a keyword, it is a literal. Beyond that the compiler doesn't care. It has a runtime value as well.
total contains null value means it does not have memory,No, it means it refers to nothing, as opposed to referring to an object.
for representation purpose it contain "null"No. println(String) has special behaviour if the argument is null. This is documented and has already been described above. Your handwaving about 'for representation purpose' is meaningless. The compiler and the JVM don't know the purpose of the code.
e.g. this keyword shows a hash value instead of memory addressNo it doesn't: it depends entirely on the actual class of the object referred to by 'this', and specifically what its toString() method does.
similarly "total" maps null as a literal.Completely meaningless. "total" doesn't 'map' anything, it is just a literal. The behaviour you describe is a property of the string concatenation operator, not of string literals.
I hope you can understand this.Nobody could understand it. It is compete nonsense. The correct answer has already been given. Please read the thread before you contribute. -
Doubt about Select statement.
Hi folks!!
I have a few doubts about the select statements, it may be a silly things but its useful for me.
what is difference between below statment.
1)SELECT * FROM TABLE.
2)SELECT SINGLE * FROM TABLE
3)SELECT SINGLE FROM TABLE.
Hope i will get answer,thanks in advance.
Regards
Richie..Hi,
try this and if possible use sap help.i mean place the cursor on select and press F1.
Types of select statements:
1. select * from ztxlfa1 into table it.
This is simple select statement to fetch all the data of db table into internal table it.
2. select * from ztxlfa1 into table it where lifnr between 'V2' and 'V5'.
Thisis using where condition between v2 and v5.
4. select * from ztxlfa1 where land1 = 'DE'. "row goes into default table work Area
5. select lifnr land1 from ztxlfa1
into corresponding fields of it "notice 'table' is omitted
where land1 = 'DE'.
append it.
endselect.
Now data will go into work area. and then u will add it to internal table by
append statement.
6. Table 13.2 contains a list of the various forms of select as it is used with internal tables and their relative efficiency. They are in descending order of most-to-least efficient.
Table 13.2 Various Forms of SELECT when Filling an Internal Table
Statement(s) Writes To
select into table it Body
select into corresponding fields of table it Body
select into it Header line
select into corresponding fields of it Header line
7. SELECT VBRK~VBELN
VBRK~VKORG
VBRK~FKDAT
VBRK~NETWR
VBRK~WAERK
TVKOT~VTEXT
T001~BUKRS
T001~BUTXT
INTO CORRESPONDING FIELDS OF TABLE IT_FINAL
FROM VBRK
INNER JOIN TVKOT ON VBRKVKORG = TVKOTVKORG
INNER JOIN T001 ON VBRKBUKRS = T001BUKRS
WHERE VBELN IN DOCNUM AND VBRK~FKSTO = ''
AND VBRK~FKDAT in date.
Select statement using inner joins for vbrk and t001 and tvkot table for this case based on the conditions
8. SELECT T001W~NAME1 INTO TABLE IT1_T001W
FROM T001W INNER JOIN EKPO ON T001WWERKS = EKPOWERKS
WHERE EKPO~EBELN = PURORD.
here selecting a single field into table it1_t001winner join on ekpo.
9. SELECT BUKRS LIFNR EBELN FROM EKKO INTO CORRESPONDING FIELDS OF IT_EKKO WHERE EBELN IN P_O_NO.
ENDSELECT.
SELECT BUTXT FROM T001 INTO IT_T001 FOR ALL ENTRIES IN IT_EKKO WHERE BUKRS = IT_EKKO-BUKRS.
ENDSELECT.
APPEND IT_T001.
here I am using for all entries statement with select statement. Both joins and for all entries used to fetch the data on condition but for all entries is the best one.
10. SELECT AVBELN BVTEXT AFKDAT CBUTXT ANETWR AWAERK INTO TABLE ITAB
FROM VBRK AS A
INNER JOIN TVKOT AS B ON
AVKORG EQ BVKORG
INNER JOIN T001 AS C ON
ABUKRS EQ CBUKRS
WHERE AVBELN IN BDOCU AND AFKSTO EQ ' ' AND B~SPRAS EQ
SY-LANGU
AND AFKDAT IN BDATE AND AVBELN EQ ANY ( SELECT VBELN FROM
VBRP WHERE VBRP~MATNR EQ ITEMS ).
Here we are using sub query in inner join specified in brackets.
Thanks,
chandu. -
Doubt about Bulk Collect with LIMIT
Hi
I have a Doubt about Bulk collect , When is done Commit
I Get a example in PSOUG
http://psoug.org/reference/array_processing.html
CREATE TABLE servers2 AS
SELECT *
FROM servers
WHERE 1=2;
DECLARE
CURSOR s_cur IS
SELECT *
FROM servers;
TYPE fetch_array IS TABLE OF s_cur%ROWTYPE;
s_array fetch_array;
BEGIN
OPEN s_cur;
LOOP
FETCH s_cur BULK COLLECT INTO s_array LIMIT 1000;
FORALL i IN 1..s_array.COUNT
INSERT INTO servers2 VALUES s_array(i);
EXIT WHEN s_cur%NOTFOUND;
END LOOP;
CLOSE s_cur;
COMMIT;
END;If my table Servers have 3 000 000 records , when is done commit ? when insert all records ?
could crash redo log ?
using 9.2.08muttleychess wrote:
If my table Servers have 3 000 000 records , when is done commit ? Commit point has nothing to do with how many rows you process. It is purely business driven. Your code implements some business transaction, right? So if you commit before whole trancaction (from business standpoint) is complete other sessions will already see changes that are (from business standpoint) incomplete. Also, what if rest of trancaction (from business standpoint) fails?
SY. -
Hi,everyone.
Now i want to use JCo and BAPI to execute a function(create sales order ps:transaction code is VA01).
How do i to find the BAPI that i need?
And where can i find some documents about BAPI?
Thx~~ a lot
PS:if this topic isn`t suitable in Java Programming,plz tell me thx ,^^
by LouisHI Louis,
You can find out the bapis , by running transaction -bapi (Bapi Explorer).
Here u get a list of standard BAPI's given by SAP.
u can select appropriate bapi from here.. Associated with each bapi documentation is there . from this u will get a clear picture of import params ,export params and tables.
Now to execute BAPI or RFC using JCO,
please go through this sample piece of code. fill the params of standard jco methods with appropriate parameters for your use.
private static JCO.Client client;
private static JCO.Repository repository;
client =
JCO.createClient(
"<client num>",
"<user name>",
"<password>",
"en",
"<server ip or server name>",
"<instance number>");
client.connect();
repository = new JCO.Repository("REP", client);
try {
IFunctionTemplate m_read_container;
m_read_container =repository.getFunctionTemplate("<RFC Name>");
JCO.Function function_read_cont = m_read_container.getFunction();
JCO.ParameterList importparam =
function_read_cont.getImportParameterList();
importparam.setValue(<Your value to pass>, "<Import parameter name as in RFC>");
client.execute(function_read_cont);
JCO.ParameterList tables =
function_read_cont.getTableParameterList();
//For Tables
JCO.Table container = tables.getTable("<Your table Name from table parameter>");
for (int iCtr = 0; iCtr < container.getNumRows(); iCtr++) {
container.setRow(iCtr);
Strin value = container.getString("<Tale fieldName>");
JCO.ParameterList exp_abs_read =
function_read_cont.getExportParameterList();//For Export Params
JCO.Structure st_abs_read =
exp_abs_read.getStructure("<If structure using then give structure name>");
for (int iCtrst = 0;iCtrst < st_abs_read.getNumFields();
iCtrst++) {
// String str_field_val = st_abs_read.getString("<Structure Field Name>"));
String fieldName = st_abs_read.getName(iCtrst);
} catch (Exception e) {
Regards
Kishor Gopinathan -
Doubts about BP number in SRM and SUS
Hello everyone,
I have some doubts about the BP number, especially for Vendors.
I am working with the implementation of SRM 5.0 with SUS in an extended classic scenario. We will use one server for SRM and other for SUS. We will use the self registration for vendor (in SUS). My questions are:
- Can I have the same BP number in SRM and SUS?? Or is it going to be different??
- When a vendor accesses at the site to make a self registration in SUS, the information is sent to SRM as prospect (by XI) and there the prospect is changed as vendor? After that, is it necessary to send something from SRM to SUS again? (to change the prospect to vendor)
- When is it necessary to replicate vendors from SRM to SUS??
Thanks
IváDear Ivan,
Here is answer to all your questions. Follow these steps for ROS configuration:
Pls note:
1. No need to have seperate clients for ROS and SUS. Create two clients for EBP and (SUS+ROS).
2. No need of XI to transfer new registered vendor from ROS to EBP
Steps to configure scenario:
1. Make entries in SPRO --> "Define backend system" on both clients.
You will ahev specify logical systems of both the clients (ROS as well as EBP)
2. Create RFCs on both clients to communicate with each other
3. In ROS client create Service User for supplier registration service with roles:
SAP_EC_BBP_CREATEUSER
SAP_EC_BBP_CREATEVENDOR
Grant u201CS_A.SCONu201D profile to the user.
4. Maintain service user in u201CLogon Datau201D tab of service : ros_self_reg in ROS client
5. Create Purchasing and vendor Organizational Structure in EBP client and maintain necessary
attributes. create vendor org structure in ROS client
6. Create your ROS registration questionnaires and assign to product categories- in ROS client
7. To transfer suppliers from registration system to EBP/Bidding system, Supplier pre-screening has to be
defined as supplier directory in SRM server - EBP client.
Maintain your prescreen catalog in IMG --> Supplier Relationship Management u2192 SRM Server u2192
Master Data u2192 Define External Web Services (Catalogs, Vendor Lists etc.)
8. Maintain this catalog Id in purchasing org structure under attribure "CAT" - in EBP client
9. Modify purchaser role in EBP client:
Open node for u201CROS_PRESCREENu201D and maintain parameter "sap-client" and ROS client number
10.Maintain organizational data in make settings for business partner
Supplier Relationship Management -> Supplier Self-Services -> Master Data -> Make Settings for the Business Partners. This information is actually getting getting stored in table BBP_MARKETP_INFO.
11. Using manage Business partner node with purchasers login (BBPMAININT), newly registsred vendors are pulled from Pre-screen catalog and BP is created in EBP client. If you you have SUS scenario, ensure to maintain "portal vendor" role here.
I hope this clarifies all your doubts.
Pls reward points for helpful answers
Regards,
Prashant -
I have some doubts about the possible uses of OBIEE. It happens that using OBIEE sometimes users demand report of an "analytical" type, that is aggregated analysis through OBIEE’s Answers, selecting data from dimension tables and measures from fact tables. That’s the ordinary purpose of business intelligence tools!!!
Some other times though, users demand to perform through Answers analyses of an "operating" type, that is simple extractions of some fields belonging to dimension tables, linked between each other through joins, (hence without querying fact tables): that happens because some of the tables brought in the datawarehouse are not directly linked to any fact table. In this way users want to use Answers to visualize data even for this kind of extractions (or operating reports).
Is this a correct use of the tool or is it just a “twisted” way of using it, always leading eventually to incorrect extractions? If that’s the case, is it possible to use instead BI Publisher, extracting the dataset through the "Sql Query" mode in a visual manner? The problem of the latter solution, in my case, relies in the fact that users are not enough skilled from the technical point of view: they would prefer to use Answers for every extraction, belonging both to the first type (aggregations) and the second one (extractions), that I just described. Can you suggest a methodology to clarify this situation?Hi,
I understand your point... But I think OBIEE doesn't allow having dimension "on their own", they must be joined to a fact table somehow. This way, when you do a query in answers using fields of two dimension tables a fact table should be always involved. When dimensions are conformed, several fact tables may be used, and OBIEE uses the "best" one in terms of performance. However, there are some tricks that you can do to make sure a particular fact table is used, like using the "implicit fact column" in the presentation layer.
So back to your point, using OBIEE for "operational" reporting as you call it is a valid option in my experience, but you have to make sure that the underlaying star schema supports the logic that your end users expect when they use just dimension fields.
Regards, -
Doubts about use of REPORTS_SERVERMAP with Forms11g HA
Hi,
I'm configuring a Linux 64bits Forms/Reports 11g HA environment, the point is that i have two nodes, each one with its Forms and Reports servers, let's say FormsA and ReportsA for the first node and FormsB and ReportsB for the seconde node.
i want FormsA to be able to call reports from ReportsB and FormsB to be able to call reports from ReportsA.
I've been reading about REPORT_SERVERMAP
http://docs.oracle.com/cd/E12839_01/bi.1111/b32121/pbr_conf003.htm#autoId5
But i have some doubts about its use:
1. I will not use a shared cluster file system or any way of cache solution, i will only have my rdf files on each node, and i'm wondering if just by configuring this parameter i will be able to get the effect mentioned above ??
2. The link provided says "Using RUN_REPORT_OBJECT. If the call specifies a Reports Server cluster name instead of a Reports Server name, the REPORTS_SERVERMAP environment variable must be set in the Oracle Forms Services default.env file"
In fact i'm using RUN_REPORT_OBJECT but
what is the Reports Server cluster name ?? and where do i find that name ??
3. Is this configuration well defined:
REPORTS_SERVERMAP=clusterReports:ReportsA;clusterReports:ReportsB
4. At forms applications when using RUN_REPORT_OBJECT, can i assume that the report server name will be the cluster name specified at the REPORTS_SERVERMAP ??
5. Which files should i modify rwservlet.properties or default.env ??
Hope you can help me :)
Regards
CarlosHi,
1. I will not use a shared cluster file system or any way of cache solution, i will only have my rdf files on each node, and i'm wondering if just by configuring this parameter i will be able to get the effect mentioned above ??
--> In such case what could go wrong is
Suppose Run_report_object executed jobs successfully to ReportsA
But web.show_document command for getjobid failed ( as ReportsA went down by this time)
--> You will not get the output shown ( though job was successful)
If shared cache was enabled, then Even if ReportsA is down, other cluster member ( say ReportsB)
will respond back to web.show_document.
Point 2,
--> Under HA is it highly recommended to use web.show_document ( a servlet call) to execute reports. This is to help use all HA features at the HTTP , Webcache or load balancer level.
However if there is migrated code or Run_report_object is must, then the recommendations as you see in the pointed document is must.
REPORTS_SERVERMAP setting needs to be configured in rwservlet.properties file and also in default.env Forms configuration file to map the Reports Server cluster name to the Reports Server running on the mid-tier where the Load Balancer forwarded the report request.
For example FormsA, ReportsA, cluster name say rep_cluster
default.env file
REPORTS_SERVERMAP=rep_cluster:ReportsA
Where "rep_cluster" is the Reports Server cluster name and "ReportsA" is the name of the Reports Server running on the same machine as FormsA
rwservlet.properties file
<reports_servermap>rep_cluster:ReportsA</reports_servermap>
At default.env this is not a valid entry
REPORTS_SERVERMAP=clusterReports:ReportsA;clusterReports:ReportsB
what is the Reports Server cluster name ?? and where do i find that name ??
--> This is created via EM on the report server side.
Would recommend to refer following documents at the myoracle support repository
How to Setup Reports HA (High Availability - Clusters) in Reports 11g [ID 853436.1]
REP-52251 and REP-56033 Errors When Calling Reports From Forms With RUN_REPORT_OBJECT Against a Reports Cluster in 11g. [ID 1074804.1]
Thanks -
Doubt about proxies implementation
hi experts i have small doubt about proxies implementation
1. if we r implementing client proxies, it means sap r/3(proxy)->>xi->>>file
system.here where we have to execute the SPROXY transaction. in sap r/3 or
in the xi server.and the next thing is where we have to write the report program
to trigger the interface.in sap r/3 or in the xi server.
2. if we r implementing server proxies, it means File->>xi->>>sap r/3
(proxy).here where we have to execute the SPROXY transaction. in sap r/3 or
in the xi server.
please clear me
Regards
giriSreeram,
The Integration Server and the client on which you generate the proxies should not be the same. If they are different then yes, you can use another client in your XI box itself to generate proxies and trigger the call to XI.
If you see this blog by Ravi ( incidentally he is my boss as well ) this is exactly what we have done as well.
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
When you say XI, you mean the Client on which the Integration Server is running! XI is basically a R3 instance with more functionality and its own Integration Engine.
Regards
Bhavesh -
About bapi with help of example
about bapi with help of example plz dont give links.
With the correct customizing (order types, etc...) the following BAPI will create a PM order for you.
Naturally the master data is also required to be created in SAP (Technical objects, Work places, etc...)
*& Report Z_BAPI_ALM_ORDER_MAINTAIN_TEST *
REPORT z_bapi_alm_order_maintain_test.
TABLES: mara,
resb. "anyagfoglalások táblája
DATA: it_methods LIKE STANDARD TABLE OF bapi_alm_order_method,
wa_methods LIKE LINE OF it_methods.
DATA: it_header LIKE STANDARD TABLE OF bapi_alm_order_headers_i,
wa_header LIKE LINE OF it_header.
DATA: it_operation LIKE STANDARD TABLE OF bapi_alm_order_operation,
wa_operation LIKE LINE OF it_operation.
DATA: it_component LIKE STANDARD TABLE OF bapi_alm_order_component,
wa_component LIKE LINE OF it_component.
DATA: it_component_up LIKE
STANDARD TABLE OF bapi_alm_order_component_up,
wa_component_up LIKE LINE OF it_component_up.
DATA: et_numbers LIKE STANDARD TABLE OF bapi_alm_numbers,
wa_numbers LIKE LINE OF et_numbers.
DATA: et_extension_in LIKE STANDARD TABLE OF bapiparex,
wa_extension_in LIKE LINE OF et_extension_in.
DATA: et_return LIKE STANDARD TABLE OF bapiret2,
wa_return LIKE LINE OF et_return.
DATA: it_resb LIKE STANDARD TABLE OF resb,
wa_resb LIKE LINE OF it_resb.
DATA: lv_commit TYPE i.
PARAMETERS: p_test AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_create RADIOBUTTON GROUP rg1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 4(30) text-rcr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_change RADIOBUTTON GROUP rg1.
SELECTION-SCREEN COMMENT 4(30) text-rch.
PARAMETERS: p_aufnr LIKE aufk-aufnr MEMORY ID anr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP.
PARAMETERS: p_compon AS CHECKBOX DEFAULT 'X'.
PARAMETERS: p_partn AS CHECKBOX DEFAULT 'X'.
START-OF-SELECTION.
IF p_aufnr IS INITIAL.
MOVE '007321002921' TO p_aufnr.
ENDIF.
PERFORM it_methods_fill.
PERFORM it_header_fill.
PERFORM it_operation_fill.
IF p_compon = 'X'.
PERFORM it_component_fill.
ENDIF.
REFRESH et_numbers.
break zaladev.
CALL FUNCTION 'Z_BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = it_methods
it_header = it_header
* IT_HEADER_UP =
* IT_HEADER_SRV =
* IT_HEADER_SRV_UP =
* IT_USERSTATUS =
* IT_PARTNER =
* IT_PARTNER_UP =
it_operation = it_operation
* IT_OPERATION_UP =
* IT_RELATION =
* IT_RELATION_UP =
it_component = it_component
it_component_up = it_component_up
* IT_TEXT = it_text
* IT_TEXT_LINES =
extension_in = et_extension_in
et_return = et_return
et_numbers = et_numbers.
CLEAR lv_commit.
LOOP AT et_return INTO wa_return.
IF wa_return-type = 'S' AND NOT wa_return-message_v2 IS INITIAL.
IF p_test IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
lv_commit = 1.
ENDIF.
EXIT.
ENDIF.
ENDLOOP.
IF lv_commit IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF.
break zaladev.
*& Form it_methods_fill
* text
* --> p1 text
* <-- p2 text
FORM it_methods_fill.
IF p_create = 'X'. "LÉTREHOZÁS
MOVE '1' TO wa_methods-refnumber.
MOVE 'HEADER' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%00000000001' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE '1' TO wa_methods-refnumber.
MOVE 'OPERATION' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%000000000010010' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE '2' TO wa_methods-refnumber.
MOVE 'OPERATION' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%000000000010020' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE '3' TO wa_methods-refnumber.
MOVE 'OPERATION' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%0000000000100200010' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE '4' TO wa_methods-refnumber.
MOVE 'OPERATION' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%0000000000100200020' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
IF p_compon = 'X'.
MOVE 1 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%00000000001' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE 2 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%00000000001' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
ENDIF.
MOVE '1' TO wa_methods-refnumber.
MOVE '' TO wa_methods-objecttype.
MOVE 'SAVE' TO wa_methods-method.
MOVE '%00000000001' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
ELSE. "MÓDOSÍTÁS
MOVE '1' TO wa_methods-refnumber.
MOVE 'HEADER' TO wa_methods-objecttype.
MOVE 'CHANGE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
IF p_compon = 'X'.
MOVE 1 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'CHANGE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE 2 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'CHANGE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE 3 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'DELETE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
ENDIF.
MOVE '1' TO wa_methods-refnumber.
MOVE '' TO wa_methods-objecttype.
MOVE 'SAVE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
ENDIF.
ENDFORM. " it_methods_fill
*& Form it_header_fill
* text
* --> p1 text
* <-- p2 text
FORM it_header_fill .
IF p_create = 'X'. "LÉTREHOZÁS
MOVE '%00000000001' TO wa_header-orderid.
MOVE 'D210' TO wa_header-order_type. "rendelésfajta
MOVE '2000' TO wa_header-planplant. "tervező gyár
MOVE '19' TO wa_header-mn_wk_ctr. "fel.munkahely
MOVE '2000' TO wa_header-plant. "fel.munkahely gyára
MOVE 'CUV-SZV-CSUR-ATEM-I...' TO wa_header-funct_loc. "műsz.hely
MOVE '' TO wa_header-equipment. "berendezés
MOVE '' TO wa_header-material. "anyagszám
* MOVE '' TO wa_header-LOC_WK_CTR. "fel.munkahely
* MOVE '' TO wa_header-LOC_COMP_CODE. "vállalat
* MOVE sy-datum TO wa_header-START_DATE. "kezdés dátuma
* MOVE sy-datum TO wa_header-FINISH_DATE. "befejezés dátuma
* MOVE '' TO wa_header-BASICSTART. "kezdés időpontja
* MOVE '' TO wa_header-BASIC_FIN. "befejezés időpontja
MOVE 'Teszt szöveg 1' TO wa_header-short_text. "szöveg
APPEND wa_header TO it_header.
ELSE. "MÓDOSÍTÁS
MOVE p_aufnr TO wa_header-orderid.
MOVE 'CUV-SZV-CSUR-ATEM-II..' TO wa_header-funct_loc. "műsz.hely
MOVE 'Teszt szöveg módosítva 2' TO wa_header-short_text. "szöveg
APPEND wa_header TO it_header.
ENDIF.
ENDFORM. " it_header_fill
*& Form it_operation_fill
* text
* --> p1 text
* <-- p2 text
FORM it_operation_fill .
IF p_create = 'X'. "LÉTREHOZÁS
MOVE 10 TO wa_operation-activity. "művelet
MOVE '' TO wa_operation-sub_activity. "al-művelet
MOVE 'PM01' TO wa_operation-control_key. "vezérlő kulcs
* MOVE '19' TO wa_operation-WORK_CNTR. "munkahely
* MOVE '2000' TO wa_operation-PLANT. "gyár
MOVE '' TO wa_operation-standard_text_key. "mintakulcs
MOVE 'Művelet leírása 1.sor' TO wa_operation-description."leírás
MOVE '' TO wa_operation-vendor_no. "szállító
* MOVE 3 TO wa_operation-quantity. "mennyiség
* MOVE 'KG' TO wa_operation-base_uom. "menny.egys.
* MOVE 500 TO wa_operation-PRICE. "ár
* MOVE 1 TO wa_operation-PRICE_UNIT. "áregység
* MOVE 'HUF' TO wa_operation-CURRENCY. "pénznem
* MOVE '' TO wa_operation-PERS_NO. "törzsszám
MOVE 10 TO wa_operation-work_activity. "művelet munkája
* MOVE 'KG' TO wa_operation-UN_WORK. "művelet munkája
MOVE 2 TO wa_operation-number_of_capacities. "szüks. kapacitás
APPEND wa_operation TO it_operation.
MOVE 20 TO wa_operation-activity. "művelet
MOVE '' TO wa_operation-sub_activity. "al-művelet
MOVE 'PM01' TO wa_operation-control_key. "vezérlő kulcs
* MOVE '19' TO wa_operation-WORK_CNTR. "munkahely
* MOVE '2000' TO wa_operation-PLANT. "gyár
MOVE '' TO wa_operation-standard_text_key. "mintakulcs
MOVE 'Művelet leírása 2.sor' TO wa_operation-description."leírás
MOVE '' TO wa_operation-vendor_no. "szállító
* MOVE 5 TO wa_operation-quantity. "mennyiség
* MOVE 'KG' TO wa_operation-base_uom. "menny.egys.
* MOVE 500 TO wa_operation-PRICE. "ár
* MOVE 1 TO wa_operation-PRICE_UNIT. "áregység
* MOVE 'HUF' TO wa_operation-CURRENCY. "pénznem
* MOVE '' TO wa_operation-PERS_NO. "törzsszám
MOVE 5 TO wa_operation-work_activity. "művelet munkája
* MOVE 'KG' TO wa_operation-UN_WORK. "művelet munkája
MOVE 1 TO wa_operation-number_of_capacities. "szüks. kapacitás
APPEND wa_operation TO it_operation.
MOVE 20 TO wa_operation-activity. "művelet
MOVE 10 TO wa_operation-sub_activity. "al-művelet
MOVE 'PM01' TO wa_operation-control_key. "vezérlő kulcs
* MOVE '19' TO wa_operation-WORK_CNTR. "munkahely
* MOVE '2000' TO wa_operation-PLANT. "gyár
MOVE '' TO wa_operation-standard_text_key. "mintakulcs
MOVE 'Alművelet leírása 2/1.sor' TO wa_operation-description."leírás
MOVE '' TO wa_operation-vendor_no. "szállító
* MOVE 5 TO wa_operation-quantity. "mennyiség
MOVE 'KG' TO wa_operation-base_uom. "menny.egys.
* MOVE 500 TO wa_operation-PRICE. "ár
* MOVE 1 TO wa_operation-PRICE_UNIT. "áregység
* MOVE 'HUF' TO wa_operation-CURRENCY. "pénznem
* MOVE '' TO wa_operation-PERS_NO. "törzsszám
MOVE 2 TO wa_operation-work_activity. "művelet munkája
* MOVE 'KG' TO wa_operation-UN_WORK. "művelet munkája
MOVE 1 TO wa_operation-number_of_capacities. "szüks. kapacitás
APPEND wa_operation TO it_operation.
MOVE 20 TO wa_operation-activity. "művelet
MOVE 20 TO wa_operation-sub_activity. "al-művelet
MOVE 'PM01' TO wa_operation-control_key. "vezérlő kulcs
* MOVE '19' TO wa_operation-WORK_CNTR. "munkahely
* MOVE '2000' TO wa_operation-PLANT. "gyár
MOVE '11' TO wa_operation-standard_text_key. "mintakulcs
MOVE 'Alművelet leírása 2/2.sor' TO wa_operation-description."leírás
MOVE '' TO wa_operation-vendor_no. "szállító
MOVE 5 TO wa_operation-quantity. "mennyiség
MOVE 'KG' TO wa_operation-base_uom. "menny.egys.
* MOVE 500 TO wa_operation-PRICE. "ár
* MOVE 1 TO wa_operation-PRICE_UNIT. "áregység
* MOVE 'HUF' TO wa_operation-CURRENCY. "pénznem
* MOVE '' TO wa_operation-PERS_NO. "törzsszám
MOVE 3 TO wa_operation-work_activity. "művelet munkája
* MOVE 'KG' TO wa_operation-UN_WORK. "művelet munkája
MOVE 1 TO wa_operation-number_of_capacities. "szüks. kapacitás
APPEND wa_operation TO it_operation.
ELSE. "MÓDOSÍTÁS
ENDIF.
ENDFORM. " it_operation_fill
*& Form it_component_fill
* text
* --> p1 text
* <-- p2 text
FORM it_component_fill.
IF p_create = 'X'. "LÉTREHOZÁS
MOVE '0010' TO wa_component-item_number.
MOVE '000000023336110300' TO wa_component-material. "cikkszám
MOVE '2000' TO wa_component-plant. "gyár
MOVE '0001' TO wa_component-stge_loc. "raktár
MOVE 1 TO wa_component-requirement_quantity. "felh.m.
MOVE '0020' TO wa_component-activity. "művelet
APPEND wa_component TO it_component.
MOVE '0020' TO wa_component-item_number.
MOVE '000000095000001900' TO wa_component-material. "cikkszám
MOVE '2000' TO wa_component-plant. "gyár
MOVE '' TO wa_component-stge_loc. "raktár
MOVE 2 TO wa_component-requirement_quantity. "felh.m.
MOVE '0020' TO wa_component-activity. "művelet
MOVE 'N' TO wa_component-item_cat. "tételtípus
MOVE '0000000014' TO wa_component-vendor_no. "szállító
APPEND wa_component TO it_component.
ELSE. "MÓDOSÍTÁS
SELECT * FROM resb
INTO TABLE it_resb
WHERE aufnr EQ p_aufnr.
IF sy-subrc = 0.
READ TABLE it_resb INTO wa_resb
WITH KEY aufnr = p_aufnr.
MOVE wa_resb-rsnum TO wa_component-reserv_no.
ELSE.
CLEAR wa_component-reserv_no.
ENDIF.
MOVE '0010' TO wa_component-item_number.
MOVE '0001' TO wa_component-res_item.
* MOVE '000000023336110400' TO wa_component-material. "cikkszám
* MOVE '2000' TO wa_component-plant. "gyár
* MOVE '0001' TO wa_component-stge_loc. "raktár
MOVE 6 TO wa_component-requirement_quantity. "felh.m.
MOVE '0020' TO wa_component-activity. "művelet
APPEND wa_component TO it_component.
MOVE 'X' TO wa_component_up-requirement_quantity.
MOVE 'X' TO wa_component_up-activity.
APPEND wa_component_up TO it_component_up.
MOVE '0020' TO wa_component-item_number.
MOVE '0002' TO wa_component-res_item.
* MOVE '000000095000001800' TO wa_component-material. "cikkszám
* MOVE '2000' TO wa_component-plant. "gyár
* MOVE '0001' TO wa_component-stge_loc. "raktár
MOVE 6 TO wa_component-requirement_quantity. "felh.m.
MOVE '0010' TO wa_component-activity. "művelet
APPEND wa_component TO it_component.
* MOVE 'X' TO wa_component_up-material.
MOVE 'X' TO wa_component_up-requirement_quantity.
MOVE 'X' TO wa_component_up-activity.
APPEND wa_component_up TO it_component_up.
MOVE '0030' TO wa_component-item_number.
MOVE '000000023336110400' TO wa_component-material. "cikkszám
MOVE '2000' TO wa_component-plant. "gyár
MOVE '0001' TO wa_component-stge_loc. "raktár
MOVE 7 TO wa_component-requirement_quantity. "felh.m.
MOVE '0020' TO wa_component-activity. "művelet
APPEND wa_component TO it_component.
ENDIF.
ENDFORM. " it_component_fill -
Hi All I have a doubt in BAPI.
I have created a function module which is remote enabled module. I didnu2019t create any BAPI using Tcode SWO1 or BAPI. Am using this function module in my VB code to get the data from SAP, Its working fine am getting all data from SAP database.
My Question is since we can use sap Function module (which is remote enabled module) with out creating BAPI. Then what is the use of creating BAPI.?
If we click on radio button Remote enabled module is that function module act as BAPI?
Please help me.
Regards
Prajwal K.Hi Prajwal,
Please check this link
RFC and BAPI Interfaces to SAP Systems
http://help.sap.com/saphelp_45b/helpdata/en/cf/8ccab761ea11d2804a00c04fada2a1/content.htm
BAPI's are the remote enabled Function modules which are defined in the Business Object Repository (BOR) as the methods of the business objects.I can say BAPI is the subset of RFC. RFC connects to the other system via BAPI and vice versa.
BAPI methods are RFC enabled function modules. The difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call.Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.BAPI is having all Key fields, methods, interfaces etc.
Best regards,
raam -
Doubt about unicode conversion
Dear Friends,
I have a doubt about the unicode conversion. I have read (one server strategy) that I have to do export (R3load), delete the ECC 6.0 non-unicode, install an unicode database and then import with R3load. My doubt is about the deletion of ECC 6.0 non unicode. Why? can I convert to unicode only with an export (R3load) and subsequent import (R3load) without any deletion?. Obviously I must to change the SAP kernel with a unicode one. Is it correct?
Cheersyou can not convert a SAP System to unicode by just exchanging the executables from non unicode to unicode ones.
a non unicode SAP Oracle database is typically running with a database codepage WE8DEC or US7ASCII (well this one is out of support).
so every string stored in the database is stored using this codepages or SAP-Internal codepages.
When converting to unicode you have to convert also the contents of the database to unicode. As unicode implementation starts at a time where Oracle did not support mixed codepage databases (one tablespace codepage WE8DEC the other one UTF8) inplace conversions are not possible. To keep things simpler, we still do not support mixed codepage databases.
Therefore you have to export the contents of your database and import it to a newly created database with a different codepage if you want to migrate to unicode.
regards
Peter -
Hi everyone!
I have a doubt about applying patch.
I just applied this patch (using GUI):
Oracle® Database Patch Set Notes
*10g Release 2 (10.2.0.4) Patch Set 3 for Microsoft Windows (32-Bit)*
Initially, there was an error stating that some other process is accessing one particular dll.
I ignored it.
I rerun the patch installation thinking that I need to get that dll as well.
It gave a list of what has been installed and what can be installed.
So, I selected all the remainders and installed.
It was successful. Now, would it have ignored that dll or installed it?
Please advice.
Thanks in advance.
Cheers!
Nith
Edited by: user645399 on Nov 26, 2010 10:24 AMuser645399 wrote:
Hi everyone!
I have a doubt about applying patch.
I just applied this patch (using GUI):
Oracle® Database Patch Set Notes
*10g Release 2 (10.2.0.4) Patch Set 3 for Microsoft Windows (32-Bit)*
Initially, there was an error stating that some other process is accessing one particular dll.
I ignored it.
I rerun the patch installation thinking that I need to get that dll as well.
It gave a list of what has been installed and what can be installed.
So, I selected all the remainders and installed.
It was successful. Now, would it have ignored that dll or installed it?
Please advice.
Thanks in advance.
Cheers!
Nith
Edited by: user645399 on Nov 26, 2010 10:24 AMEvenif you've stopped all the windows services, sometimes some DLLs remains utilized. What I do is, make all the oracle related services manual and then restart the server.
You can't ignore any dll related errors. If a dll is in use, oracle patching process will not replace that with a newer version of dll. I'll strongly recommend the use of ' Microsoft Process Monitor' utility to monitor, what is running on my server.
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Regards,
S.K. -
Doubt about Scan and Update Catalog Objects That Require Updates link
Hi,
I have a doubt about 'Scan and Update Catalog Objects That Require Updates' link in Administration,
how can I know how many objects that required upgrading before I click this link???
in doc.
http://docs.oracle.com/cd/E28280_01/bi.1111/e10541/prescatadmin.htm#BIESG3750
section 17.2.4 Updating Catalog Objects
It is said 'You can confirm the need to update by viewing the metrics in Fusion Middleware Control. In the Catalog folder, find a metric called "Reads Needing Upgrade" with description "The number of objects read that required upgrading." '
but I don't find it . my OBIEE version :11.1.1.6.2
conld you pleae help me ??
thank you in advance.That link should be there in 6 version.
I've verified in 11g6 version doc the same is existing
ref: http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/prescatadmin.htm#BAJDDFFI
BTW:
http://docs.oracle.com/cd/E28280_01/bi.1111/e10541/prescatadmin.htm#BIESG3750is 11g7 version
Thanks,
http://cool-bi.com
Maybe you are looking for
-
PB slow down on windows 7 and above?
So i have a PB classic application that is on 12.5 running on windows 7. What looks like is happening is we have seen a general across the board slow down in all processes vs when it was running on XP. It looks like the application is doing a lot of
-
How to turn off brush size dialog when holdng stylus on tablet.
Yesterday I signed up to try the latest version of Photoshop (CC) from previously working in CS6. There is a new behavior that when I hold down my stylus for more than a half-second or so on my tablet, a swirling circle icon appears and then a floati
-
How can I get small samples of a song to use in personal DVDs?DVD
I make personal DVDs from my travel pictures and put music with them. Is there a simple way or a user friendly software that will allow me to just use part of a song to go along with certain slides in a DVD? For instance, I was in the Ice Hotel in
-
Firefox 6.2 is unstable and crashes all the time. What can I do to fix it?
-
Error by quantity PO / SRM-SUS
Hello. I have SRM 5.0 extended scenario, ECC 6.0 in scene SRM-SUS when rejection an element of the PO the quantity changes to zero. When the PO of SRM is going to update the one of R/3 the system sends the following errors of backend: PurchaseOrder