Thursday, July 7, 2011

SAP Basis transport guide

SAP Basis transport guide

You may be wondering if you can transport certain SAP objects, and if possible, how? Here are tips for diferent objects:

1 LSMW
There are 2 ways for transporting LSMW data from a system to another.

1.1 Export/import
This method gives you the opportunity to select the subprojects or objects you want to transfer. Hence you don't transfer the object a colleague might have created and that should stay in development system.
LSMW -> Extras -> Export project

1.2 Transport request
With this method, you can transport a LSMW project in full (you can not select the objects you want). With this method, the project will be transported as any other SAP object in a transport order.
LSMW -> Extras -> Create change request

2 Program variants
If you have several program variants in a development system that you want to transport, use the following method to transport them:
Execute program RSTRANSP (via se38) and inform
Show Me More

More on SAP Basis administration and NetWeaver administration
Get help from the community
Powered by ITKnowledgeExchange.comthe program and/or variant names (you can transport variant of several programs in one shot).

3 Layout
In some transactions, one can save layout of the screen (sort, filter, ... criteria). These layouts can be transported:
In the required transaction, when your layouts have been saved, go to Settings -> Layout -> Layout Management. Select the desired layouts and go to Layout -> Transport… There you can add your layouts in existing TO or create a new one.

4 DB data
In some unusual cases, you might have to transport data of a SAP table.

Go to transaction SE16, select your entries and go to Table entry -> Transport entries.
It's only possible for some tables...

If you cannot do it that way, you have to create a Workbench transport order with transaction SE10. When created, click on it, go in menu Request/task -> Object list -> Display object list. Go in modification mode and add a new line with:
PgmID = R3TR
Obj = TABU
Object name = Name of your table
Double-click on the created line and, depending on your need, put '*' in the key field or double-click on it and select the key you need to transport.

5 Queries
Queries, datasets and user groups can be exported/imported between the systems thanks to the program RSAQR3TR (see help online).

6 Standard texts
Standard texts used in SAPScript (created with transaction SO10) can be included in transport orders. You have to create a Workbench transport order with transaction SE10. When created, click on it, go in menu Request/task -> Object list -> Display object list. Go in modification mode and add a new line with:
PgmID = R3TR
Obj = TEXT
Object name = TEXT,,ST,

Example : R3TR / TEXT / TEXT,YMM_MEDRUCK_MAIN_16_EC,ST,F

You can also copy a Sapscript object (like standard text) with the program RSTXCPFS.

Wednesday, May 25, 2011

Create a Developer User in SAP system

create a user called: sapuser
with sap_all and sap_new profiles
when asked put this as the developer key:
36687663221261278694

Saturday, May 21, 2011

DEFAULT password for user sap*/ddic

login/passwd = sap*/06071992, login and create users using SU01

for a list of other default passwords check out link
http://cirt.net/passwords?vendor=SAP



Sunday, May 15, 2011

Screen painter error: EU_SCRP_WN32 : timeout during allocate / CPIC-CALL

I had the same Problems and solve it in the following way:

enter transaction ---> sm59

under TCP/IP-Connections ---> EU_SCRP_WN32 increase the CPIC-Timeout ( default 20 ). like 100 or more...

click here for more info
or
http://forums.sdn.sap.com/thread.jspa?threadID=1436111

Thursday, April 17, 2008

Add blockquote to a c file

#include"stdio.h"
#include"stdlib.h"

/****
Read in a file as input file.c
whenever you encounter '{', replace it with '{blockquote_begin'
whenever you encounter '}', replace it with 'blockquote_end}'
write output to file file.c.blog
****/

int main(int argc, char ** argv)
{

char *fout;
FILE *in, *out;
int len,c;
if ( argc == 2 )
{

in = fopen(argv[1],"r");
if(in==NULL)
{

printf("open file %s failed!\n",argv[1]);
return 1;
}
len=strlen(argv[1])+1+5;
fout=malloc(sizeof(*fout)*(len+1+5));
strcpy(fout,argv[1]);
strcat(fout,".blog");
out = fopen(fout,"w");
if(out==NULL)
{

printf("open file %s failed!\n",fout);
return 1;
}
printf ("in %s\nout %s\n",argv[1],fout);
}
else
{

printf("Usage: \n");
printf("%s \n",argv[0]);
return 2;
}

do
{

c=fgetc(in);
if( c == '{')
{

fprintf(out,"%c%s",'{',"blockquote_begin");
}
else if (c == '}')
{

fprintf(out,"%s,%c","blockquote_end",'}');
}
else if (c != EOF)
{

fputc(c,out);
}
}while (c!=EOF);
fclose(in);
fclose(out);
free(fout);
}

Initialize 2D Array

Three different ways to initialize a 2D array

char array[N][M];
and you want to initialize each member of that array to some character

//method 1, two loops
for(i=0;i < N;i++)
{

for(j=0;j < M;j++ )
{

a[i][j]='c';
}
}


//method2, one loop
char *p=a;
for(i=0;i < N*M;i++)
{

p[i]='d';
}


//method3, one line
memset(a,'e',N*M);

Wednesday, April 16, 2008

Convert Integer to String

Program convert an integer to string
/****
function that converts an integer into a string
representing of that integer....
[integer can start with an optional + or - sign]

intTOstring1() - uses while loop (need reverse() to
reverse the string

intTOstring2() - uses recursion ( don't need to reverse )

example
char s[100];
intTOstring(-134234, s);
printf(s);
output: -134234
****/

//This function uses recursion to convert integer to string
void intTOstring2(int x, char *s)
{

static int i = 0;
if (x < 0)
{

s[i++] = '-';
x = -x;
}
if ( x/10 )
{

intTOstring2( x/10, s );
}
s[i++] = x%10 + '0';
s[i] = '\0';
}

//This function uses a while loop to convert integer to string
//This function will then call reverse() function to reverse the string
void intTOstring1(int x, char *s)
{

int isNegative = 0,tmp;
char *p = s,*t = s,tmp1;
if( x == 0 )
{

*s = '0';
*(s+1) = '\0';
return;
}

if ( x < 0 )
{

isNegative=1;
x*=-1;
}

//keep dividing by 10 and collect each digit
while ( x > 0 )
{

tmp = x%10;
*p++ = tmp+'0';
x /= 10;
}
if( isNegative )
*p++ = '-';
*p = '\0';
}

//reverse the string
void reverse( char *s )
{

char *p = s,*t = s,tmp;

while ( *p )
p++;
while ( t < p )
{

tmp = *t;
*t++ = *--p;
*p = tmp;
}
}