Message Include * is used in multiple main programs (210)
Hi,
I get the message:
Select a main program in Properties View on tab "Source"
Include /SAPDMC/SAP_LSMW_READ_FORMS is used in multiple main programs (210).
when I want to modify an include in LSMW.
The effect is for example that I cannot open the declaration of a data element.
Is there something I can do?
Best regards
Volker
Hi Michael,
I have updated ADT to newest version (com.sap.adt.core is now 2.31.5).
When I type something in that Include or save it, the error message is now displayed in status bar (which is of course much better, and I can at least edit the file):
However, when I try to activate this Include, same popup comes as earlier with this error message. It is still not possible to edit the main program in properties.
What I also found out:
If I create new include, let's name it Z_INCL1, and use it in one program - Z_PROG1, include Z_INCL1 will have as main program Z_PROG1 and everything works fine. (of course).
When I create Z_PROG2 which is including Z_INCL1, main program of Z_INCL1 will be Z_INCL1 and I can no longer compile Z_INCL1. (So far there was nothing new).
Now when I remove Include statement from Z_PROG2, main program of Z_INCL1 will still be Z_INCL1 and I still cannot compile Z_INCL1 with the same error message even thougt it is now only included in 1 program again. I have to remove include statement also from Z_PROG1 and than I am able to compile Z_INCL1 again.
Have a nice day!
O.
Similar Messages
-
How do I creaet Enhancement Implementations for multiple main programs?
I need to implement an enhancement (ENHANCEMENT-SECTION buchen_03 SPOTS es_mm06ef0b_buchen INCLUDE BOUND.) in an include (MM06EF0B_BUCHEN) that is used by 2 different main programs (SAPLMEPO & SAPMM06E).
When I create an implementation, it is created for a specific main program.
How can I create an implementation that is executed irrespective of which main program calls the include?
Thanks
Rajeev NatarajanHello,
plaese apply my note 1020176.
Read the note carefully. It is absolutly necessary to activate the object in the specified order when appling the note!
Alternativly: Import SP12 when it is avialable.
Best Regards
Michael -
Why do we need to point at main program when activating include?
Hi There Abapers,
Just a quick question, because I faced such issue when implementing OSS notes.
When activating objects I am asked to point out the main program for one of includes changed.
This inclde is used in ~30 programs.
As far as OSS note doesn't say a word about main program in fact I am not able to check it, I need to pick random program from a list up.
The question is...
Why do we need to point at main program when activating include as we are only changing the sub-object (include)?
Will this 'random main program selection' bring some negative effects in the future?
Will be thankful for some expert opinion
Kind Regards,
P.You should check all main programs when activating an include, to make sure that all main programs are still syntactically correct even with the changed include.
Thomas -
How to use dynamic selection screen inputs in main program
hi all,
its a report where in it calls one dynamic selection screen( user need to enter the parameters here) after that i need to use those inputs for some check, can any buddy help how to use/ get that input parameters into main program.
regards,
vara..Hi,
i think u have created that dynamic selection screen in seperate program and calling to ur main program.instead of that u just create that synamic selection screen program as include program and include it in ur main program.
or u need to use set/get parameter id concept.
rgds,
bharat. -
No main program for include..
hi,
i have created an include and when i do a syntax check, i get the message, "there is no main program for this include". what does that mean ? how to overcome this issue ?
only when this is resolved further statements can be checked.
thksonly executable program can be sintax checked.
to check this include.
include it in other report program and check it.
go to se38
create report.
reprot z_test.
include <name>.
no check the sintax.
go through
http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
Edited by: S.r.v.r.Kumar on Jun 18, 2008 8:11 PM -
Hi Guys,
Can anyone of you tell me how can we find the main program of a particular include program.
Thanks,
RajeevHI sunderasan,
Thanks for the reply. I tried doing what you suggested and now the thing is when used the where used list tab it showed few programs but now I am not sure which one is the main one, in my case it showed me one z program and one J_1HKORD, so I am not sure which one to take. The thing is I want to activate few include programs and when I tried doing it asked me the main program .
Thanks,
Rajeev -
When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message. I use Exchange 2010 only local users.
I think there is not native rule for this, but you could try a transport rule which removes all attachments over a very small file size like 1KB.
http://blogs.technet.com/b/exchange/archive/2009/05/11/3407435.aspx
CRM Advisor -
Our service provider add one digit to all nos. After I update all contacts using one of available programs, contacts are updated but messages received appear with pure phone nos not contact name??any fix
http://discussions.apple.com/thread.jspa?threadID=2280669&tstart=0
-
MacBook Pro i5 with retina will not recognize WD Passport even though I successfully used it to transfer programs and files from my older MacBook ten days ago. It receives power from the USB, but when using Time Machine I receive the message that there is not an external device connected.
If the modem is also a router, either use the modem in bridge and run pppoe client on the TC.. that is assuming ADSL or similar eg vdsl. If it is cable service.. and the modem is a router, then bridge the TC.. go to internet page and select connect by ethernet and below that set connection sharing to bridge.
Please tell us more about the modem if the above gives you issues. -
Insert include program in a main program dynamically
Hi All,
I would like to add one 'Z' INCLUDE program in my 'Z' Executable Program. Is there any Standard Function module or Class and Method or any other option available?
Example:
Include Program name:ZINCLUDE (which is already existing in SAP)
Standard Program Name: ZEXECUTE (which is already existing in SAP)
Now, I want to insert include program ZINCLUDE in my executable program ZEXECUTE.Could you please sugget me on this?
Thanks,
Vishnu.Hi All,
Below is the samle program which i did for my requirement.
DATA:itab TYPE TABLE OF string,
wa_tab LIKE LINE OF itab,
lv_string TYPE string.
* Read the data from already existing Executable Program
READ REPORT 'YVISHNU_TEST127' INTO itab.
IF sy-subrc = 0.
* Append Include program to itab
lv_string = 'INCLUDE ole2incl.'.
wa_tab = lv_string.
APPEND wa_tab TO itab.
BREAK 50120c1941.
* Insert Main program by Including above Include program
INSERT REPORT 'YVISHNU_TEST127' FROM itab.
ENDIF.
Thanks for your help.
Thanks,
Vishnu -
Can we use same data definition with multiple concurrent programs?
Hi,
My requirement is as below:
I have two concurrent programs (say CP1 and CP2), both concurrent programs need to use same data definition (the same data template xml file) and same RTF layout template. However when registering data definition in the E-Biz, the data definition code must match concurrent program, hence I have to create two definitions (for the same data template xml file) and because layout template is attached with data definition I have to duplicate the layout definition also.
In summary, i have to create two (duplicate) Data Definition and Layout Template for the same dataTemplate.xml and Layout.rtf files. Is there any way to avoid this duplication?
The only issue with duplication is any change in xml or rtf needs to be updated in all the four definitions (2 data definitions and 2 layout definitions).
Thanks
BhavikI found the resolution and thought of sharing
you can see this post
*[How to use same data definition/template between multiple concurrent programs? |http://techatwork.wordpress.com/2009/08/06/how-to-use-same-data-definitiontemplate-between-multiple-concurrent-programs/]*
Thanks
Bhavik -
Passing arguments into main program using eclipse
If I want to pass a file into my Main program using "file redirection" I would do the following when running my program from the command prompt:
C:\ MainProgram < inputfile.txt
How do I do this using Eclipse SDK(WinXP)? I have investigated the options for passing in "Program Arguments" and still can't figure it out. Can anyone please help? What do I type in the Program Arguments text box?
Thank you,
MarkWell, input redirection is a shell thing, so Eclipse may not support it like that. (Maybe it does, somehow, but if it does it's just aping shell behavior for convenience.)
What I'd suggest, is to create an option to your program to read a specified file. Maybe something like
MainProgram -input intputfile.txt
Then give that as an argument in Eclipse.
If this is for testing purposes, another option is to create a test class, and hardcode the filename in there. -
While verifying and repairing permissions using the disk utiliaty program, I get the message: Warning the SUID file "system/library/core has been modified and will not be repaired. What is this and do I need to take some corrective actions? Thanks. WDG
Ignore it, your fine.
http://support.apple.com/kb/TS1448?locale=da_DK
If your tuning up your Mac, you need to read all the tricks.
Step by Step to fix your Mac -
I just re set-up my MacBookAir and it works veeeery slow. I did install the email accounts as IMAP and I choose as an option to keep copies of my messages including the attachments for offline viewing. Is that what slows down my computer?
I wonder because, even though I have little data saved on this computer, if I go to "Finder" / "Search for" / "All photos" appear 7,883 items (looks like there are all the attachments from my email messages...)Thanks a lot Jason. So, cache them locally means that it saves them on my hard drive? I do have a lot of files and large multimedia attachments.
You say my machine will be sluggish until this is done... Shall I understand that soon enough this problem will disappear? If not, will any of the next actions help?:
- choose to keep copies of my messages for offline viewing but omit attachments
- select "All the photos" from "Search in" in "Finder" and send them to Trash (will this command delete the attachments also from my emails server? and all the photos already saved on my computer in folders?)
- waiting until my machine finished the "indexing" (Whatever what that means...)
Thank you for getting back to me as you can,
Camelia -
How to apply security paramters in a main program to interact with webservi
Hi ,
I am working with weblogic 10.1.3 and running build.xml in eclipse for EE
I would like to know the steps to include security parameters to authenticate with weblogic server and call webservice
I have written a build.xml that takes input as wsdl , When I run the build.xml it generates
all the necessary stubs and interfaces
I have written a main program that imports generated classes and invoke the webservice method
below are buidl.xml and two classes( main program and one java class) which I used to invoke webservice
Build.xml
=====
<project name="webservices-simple_client" default="all">
<!-- set global properties for this -->
<property name="wls.hostname" value="localhost" />
<property name="wls.port" value="8002" />
<property name="example-output" value="output" />
<property name="clientclass-dir" value="${example-output}/srcclasses" />
<property name="clientclassfiles-dir" value="${example-output}/classfiles" />
<path id="client.class.path">
<pathelement path="${clientclass-dir}" />
<pathelement path="${java.class.path}" />
</path>
<taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
<target name="clean">
<delete dir="${clientclass-dir}" />
<delete dir="../src/com/bea/wlcp/wlng/ws/presence" />
<delete dir="../src/org/csapi/schema/paralyx/common/v2_1" />
<delete dir="../src/org/csapi/schema/paralyx/presence/consumer/v2_3/local" />
<delete dir="../src/org/csapi/schema/parlayx/presence/v2_3" />
<echo message="Cleaning Completed" />
</target>
<target name="build-client">
<clientgen wsdl="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer?WSDL" destdir="${clientclass-dir}" generatepolicymethods="true" packageName="com.bea.wlcp.wlng.ws.presence" />
<javac srcdir="${clientclass-dir}" destdir="${clientclassfiles-dir}" includes="**/*.java" />
<copy overwrite="true" todir="../src">
<fileset dir="${clientclass-dir}" />
</copy>
<copy overwrite="true" todir="../src">
<fileset dir="${clientclassfiles-dir}" />
</copy>
<delete dir="${clientclass-dir}" />
<delete dir="${clientclassfiles-dir}" />
<echo message="Building Completed" />
</target>
<target name="all" depends="clean,build-client" />
</project>
======================================================
import java.net.URI;
import javax.xml.rpc.Stub;
import javax.xml.ws.BindingProvider;
import java.net.Proxy;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.List;
import weblogic.webservice.wsdl.WsdlPort;
import weblogic.wsee.connection.transport.http.HttpTransportInfo;
import weblogic.wsee.jaxrpc.ServiceImpl;
import org.csapi.schema.parlayx.common.v2_1.PolicyException;
import org.csapi.schema.parlayx.common.v2_1.SimpleReference;
import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresence;
import org.csapi.schema.parlayx.presence.consumer.v2_3.local.SubscribePresenceResponse;
import com.bea.wlcp.wlng.et.core.module.session_manager.GTUsernameTokenPolicy;
import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
import com.bea.wlcp.wlng.ws.presence.PresenceConsumer;
import com.bea.wlcp.wlng.ws.presence.PresenceConsumerService_Impl;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import weblogic.xml.crypto.wss.WSSecurityContext;
import weblogic.xml.crypto.wss.provider.CredentialProvider;
@SuppressWarnings("deprecation")
public class Main {
@SuppressWarnings("unchecked")
public static void main(String[] args) throws javax.xml.rpc.ServiceException,PolicyException{
try{
/*PresenceConsumerService_Impl pcs_impl = new PresenceConsumerService_Impl("http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL");
PresenceConsumer pc = (PresenceConsumer) pcs_impl.getPresenceConsumer();
UserCredentialsvalidation gt = new UserCredentialsvalidation("sdpai","sdp");*/
SimpleReference rf = new SimpleReference();
rf.setCorrelator("correlatorid");
rf.setEndpoint(URI.create("http://localhost:8002/PresenceConsumerService/services/PresenceConsumer"));
rf.setInterfaceName("PresenceConsumer");
SubscribePresence sb = new SubscribePresence();
sb.setApplication("sdp");
sb.setPresentity(URI.create("tel:1234"));
sb.setReference(rf);
System.out.println(" Before calling subscribe presence ==" );
//SubscribePresenceResponse spr = pc.subscribePresence(sb);
System.out.println(" Hi There here 2226678565");
System.out.println(" Hi There here 333");
//raja
String strUrl = "http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL";
Stub objStub = (Stub) new PresenceConsumerService_Impl().getPresenceConsumer();
objStub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"sdpai");
objStub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"sdp");
objStub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,strUrl);
PresenceConsumer port = (PresenceConsumer) objStub;
String returnVal = "";
System.out.println(" Hi There here 77");
SubscribePresenceResponse spr = port.subscribePresence(sb);
System.out.println(spr);
//ended here
catch(Exception e)
e.printStackTrace();
=======================================
UserCredentialsvalidation.java
import com.bea.wlcp.wlng.et.core.module.session_manager.SessionManagerService_Impl;
import com.bea.wlcp.wlng.schema.ews.common.ServiceException;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManager;
import com.bea.wlcp.wlng.ws.sessionmanager.SessionManagerService;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import javax.xml.rpc.Stub;
import java.util.ArrayList;
import java.util.List;
public class UserCredentialsvalidation implements PolicyBase {
private String username;
private String password;
public UserCredentialsvalidation(String username, String password) {
this.username = username;
this.password = password;
String sessionManagerURL="http://localhost:8002/session_manager/SessionManager";
SessionManagerService accessservice = null;
try {
accessservice = (SessionManagerService) new SessionManagerService_Impl(sessionManagerURL+"?WSDL");
SessionManager port = accessservice.getSessionManager();
System.out.println(" port >>>>>");
System.out.println(" port >>>>>" +port);
UserCredentialsvalidation pbase = new UserCredentialsvalidation();
pbase.prepareStub((Stub)port,username,password);
} catch (Exception e) {
System.out.println(" helo helo");
// TODO Auto-generated catch block
e.printStackTrace();
public UserCredentialsvalidation() {
// TODO Auto-generated constructor stub
public void prepareStub(Stub stub,String username,String password) throws Exception {
List<ClientUNTCredentialProvider> credProviders = new ArrayList<ClientUNTCredentialProvider>();
System.out.println(" username >>> " + username.getBytes());
System.out.println(" password >>> " + password.getBytes());
credProviders.add(new ClientUNTCredentialProvider(username.getBytes(),
password.getBytes()));
System.out.println("setting standard wssec");
stub._setProperty("weblogic.wsee.security.wss.CredentialProviderList",
credProviders);
System.out.println("Getting property from stub== " + stub._getProperty("weblogic.wsee.security.wss.CredentialProviderList"));
@Override
public void prepareStub(Stub port) throws Exception {
// TODO Auto-generated method stub
=========================================
When I run the main program I am getting below exception
Before calling subscribe presence ==
Hi There here 2226678565
Hi There here 333
Hi There here 77
java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Unable to add security token for identity] FaultActor [null]No Detail; nested exception is:
weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:37)
at Main.main(Main.java:62)
Caused by: weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Unable to add security token for identity
at weblogic.wsee.codec.soap11.SoapCodec.decodeFault(SoapCodec.java:355)
at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeFault(CodecHandler.java:115)
at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:100)
at weblogic.wsee.ws.dispatch.client.CodecHandler.handleFault(CodecHandler.java:88)
at weblogic.wsee.handler.HandlerIterator.handleFault(HandlerIterator.java:309)
at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:269)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:213)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:150)
at weblogic.wsee.ws.WsStub.invoke(WsStub.java:87)
at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:337)
at com.bea.wlcp.wlng.ws.presence.PresenceConsumer_Stub.subscribePresence(PresenceConsumer_Stub.java:32)
... 1 more
Caused by: weblogic.xml.crypto.wss.WSSecurityException: Unable to add security token for identity
at weblogic.wsee.security.wss.SecurityPolicyDriver.processIdentity(SecurityPolicyDriver.java:175)
at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:73)
at weblogic.wsee.security.WssClientHandler.processOutbound(WssClientHandler.java:71)
at weblogic.wsee.security.WssClientHandler.processRequest(WssClientHandler.java:55)
at weblogic.wsee.security.WssHandler.handleRequest(WssHandler.java:74)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:107)
at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:132)
... 4 more
==========================================================
I am working for 3 days to solve this issue, but helpless :(
Please tell me I am going in right way , I read many forums and implemented different ways , but getting same problem, that too before calling webservice method .
Do i need to do anything more apart from adding username and password parameters
Please tell me the exact steps how to perform authentication with webservices
Your answer will help me a lot .
Thanks in Advance
Regards
RajasekharPlease ignore this thread
Maybe you are looking for
-
Why won't my computer read my iPhone?
It notifies me that I have plugged in my phone but it does not allow me to add music. The part of iTunes that usually pops up when an iPhone is plugged in does not pop up, so I am not able to add music or really do anything. I have reinstalled itunes
-
Updating a report source/viewer with new filename
I posted earlier about this problem but now can be more specific so thought a re-post was in order. I am trying to setup an asp.net website using .NET 2.0 and Crystal Reports 2008. Rather than having a seperate page for each possible report with a vi
-
Load multiple records in 1 table from 1 line in text file w/sql loader
hi guys, quick question, perhaps someone can help. searched around and didn't see this question asked before, and can't find any answer in SQL Loader faqs or docs. i know i can extract multiple logical records from a single physical record in the inp
-
Fill database table from internal table
I made one table ZDISP_CHDOC_CC and want to fill that table from internal table.and i got runtime error. that duplicate entry and two entry are like 10 200000 likhp 10 10 200000 likp 10 DESCRIBE TABLE IT_CH
-
How to I get the apple TV to connect to my NAS drive (network drive)
HI, I have a NAS dive on my network which I use to store all my files/music on. Currently, I have ALL my itunes content on the nas drive which is fine for my pc/laptop to access via itunes but, I would like to configure my Apple TV to do the same. Ca