Lsmw to create relationship a002 between position to position
Hi expertise,
i need help in how to create lsmw to create relationship a002 between position to position.
regards:
Priyaranjan
Here is a step by step guide on how to use LSMW:
http://www.sap-topjobs.com/LSMW.pdf
Similar Messages
-
How to create relationship between two records using MDM Java APIs
Hi,
I am trying to create relationship between two records using Java Apis. Please guide me in doing this.
Regards,
NirajHi Niraj,
There is ModifyRelationshipsCommand:
http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/data/commands/ModifyRelationshipsCommand.html
Retrieve Relationship command:
http://help.sap.com/javadocs/MDM/current/com/sap/mdm/schema/commands/GetRelationshipListCommand.html
Also, please refer similar thread, MDM Java API and relationships.
Hope it helps..
Regards,
Mandeep Saini -
What is rfc of creating relationship between ibase and partner?
I need bapi or rfc for assign a partner to ibase.
create relationship between ibase and parten.
pls.Hi
check this link
Re: BAPI for creating IBASE structure
Regards
Pavan -
Problem In LSMW during creating position
hi all,
my scenrio is i am creating a unit of type O and after this i have to create position for it.
i create a single recording for this. first i create a unit then position will create. but during creating position it will take a object ID of unit. but position has internal range it will assigned internaly but in my case it is taking object id of unit that is been created.
how to get object ID of position???
thanks
Sachinhi manoj,
thanks for ur answer,
there is one problem, when i m running my lsmw in my system it is running fine. but when i run my lsmw in other system , in my recording , it automatically assigning object id to the field object id which is blank.
i dont know y this is so?
thanks
Sachin -
Creating Relationships between views, causes writable mapping error
Hi
I'm using the DBAdapter in ESB (10.1.3.3), which uses Toplink and I am trying to create a relationship between a table and a view. None of the objects have any keys or indexes, so I am creating a relationship directly.
When I have created the adapter service and compile the ESB, I get the following error:
Descriptor EmployeePhonesV -> The following primary key fields are unmapped: STAFF_NUMBER
Descriptor EmployeePhonesV -> The following primary key fields have no writable mappings: STAFF_NUMBER
When I imported the view, I had to tell it that the primary key was a composite as there is no real unique key field.
Is this a known problem that I can't create relationships between views???
Any help most appreciated.
ChrisHello Chris,
The exception is stating there isn't a mapping capable of setting the STAFF_NUMBER field. How do you have this field mapped? Generally there should be a writable either direct-to-field mapping or OnetoOne mapping using this field though other types of mappings will work.
Best Regards,
Chris Delahunt -
CRM - Bapi for creating relationship between BPs with sales area data
Hi
I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
Example - I would like to create relationship type CRMH03.
Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
Does anybody know such a bapi?
Regards
RadekHey Radek,
I am actually looking for the same functionality. Were you able to find a solution although no one replied to your question in this thread? If so, it would be very helpful for me to know. Maybe you have to combine more BAPIs in order to add the organization information to the relationship. But I have no idea how.
Best Regards
Mirko -
How to create relationShip between two resources??
Hi,
Is there any manual process on workbench to create relationShip between two resources like repositoryClient.createRelationship() API does.
Regards
SunilHi Niraj,
There is ModifyRelationshipsCommand:
http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/data/commands/ModifyRelationshipsCommand.html
Retrieve Relationship command:
http://help.sap.com/javadocs/MDM/current/com/sap/mdm/schema/commands/GetRelationshipListCommand.html
Also, please refer similar thread, MDM Java API and relationships.
Hope it helps..
Regards,
Mandeep Saini -
How we will create relationship with org unit and task catalog
HI Experts
How we can create relationship between Org unit and Task Catalog in Organisation management once we grouped all the tasks in one group.
For Example we have one org unit under that we have 3 depts those will consider as org units only.under 3 depts we have professor,Lecturer,Reader as jobs and positions also.If we create Professor tasks in task catalog which all the tasks will be assigned to positions as well.
If it is Org unit and Task catalog how we can create relationship.
Thanks
RajjiHi,
Please try.
DATA: lt_hrp1001 TYPE STANDARD TABLE OF P1001.
DATA: lw_hrp1001 TYPE p1001.
lw_hrp1001-mandt = sy-mandt.
lw_hrp1001-plvar = parent_pos-plvar.
lw_hrp1001-otype = parent_pos-otype.
lw_hrp1001-objid = other_pos.
lw_hrp1001-istat = parent_pos-istat.
lw_hrp1001-begda = sy-datum.
lw_hrp1001-endda = lc_endda.
lw_hrp1001-infty = '1001'.
lw_hrp1001-aedtm = sy-datum.
lw_hrp1001-uname = sy-uname.
lw_hrp1001-rsign = codes.
lw_hrp1001-relat = relats.
lw_hrp1001-sclas = lc_sclas.
lw_hrp1001-sobid = cord_pos.
append lw_hrp1001 to lt_hrp1001.
CALL FUNCTION 'RH_INSERT_INFTY'
EXPORTING
fcode = 'INSE'
vtask = 'S'
commit_flg = 'X'
TABLES
innnn = lt_hrp1001
EXCEPTIONS
no_authorization = 1
error_during_insert = 2
repid_form_initial = 3
corr_exit = 4
begda_greater_endda = 5
OTHERS = 6.
Hope this helps.
regards,
Xiang Li -
Organisation Management Relationship Job to Position
Has anyone made the relationship (S B007) between Position and Job mandatory? I want to ensure that every Position that is created, is linked to a generic Job. In other words you CANNOT create a Position with a Job
I have hacked around in the IMG in tables : -
T777O
T778V
T77ZR
But, to no avail.......Hi,
You can mandate the relationship for a position with job by making a small modification in the table V778O.
In that table select S (position) and view the existing relationship (here position will be related to an org.unit) and delete the existing relationship and create a new relationship S B007 C and save it.
And now if you create a position system automatically gives a pop up box to create a relationship with a job for that position.
Like this you can make mandatory relationship for a position with job.
Hope this will help you.All the best.
Regards,
Vasu. -
Creating Relationships and using synchronization parameters in SUP
Hello Experts ,
I am developing an iPhone application using generated code from sup .
I want to put forward some querries that i have in my mind .
Basically my scenario is i have an equipment list and details for each equipment .
On iPhone one page displays the list and on clicking on any equipment i go to another page displaying eq details .
1.How do i filter data for details based on particular equipment number selected on first screen .
2.In SUP i have 2 mbo's , one for eqpmnt and another for details .Does creating relationship between them in sup changes generated code and filters data automatically in xcode .
3.Do i have to use synchronization parameters in this case to filter out data .
If not please tell me how should i go forward about this .
Any kind of help would be appreciated .
Thanks & Regards ,
Rockky .Hi Rockky,
1- If you want to filter data on page displays list then you have to create synchronization parameters. Once you retrieved data from back-end it all comes to CDB (sybase consolidated database) so synchronization parameter filters data from cdb for which input you entered.
2- If you display detail of any equipment you have to set relation between root and child MBO.
there is a very clear tutorial which sybase provides you can find samples about using relations and synchronization prmtrs:
http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01213.0200/doc/pdf/sup_tutorials_ioscodegen.pdf
Regards
Tahir -
LSMW for creating project CJ20N
Hi,
I need to create projects by using transaction cj20n, I tried to find any standard sap project/bapi/idoc that I can use in my LSMW to create the project, but could not find.
Has anyone aware of any standard SAP technique to use in LSMW for creating the project by transaction CJ20N. I am just trying not to create custom recording for the conversion.
Thanks,I have a program for inserting WBS by Batch-input.
report Z_PS_BI_0001
no standard page heading
line-size 80.
*------------------------------- TABLES -------------------------------*
tables : proj , " Définition de projet
prps , " Elément d'OTP - données de base
jest , " Statut individuel par objet
tj02t . " Textes de statuts système
*-------------------------------- DATA --------------------------------*
types : begin of type_prps ,
pspnr like prps-pspnr ,
objnr like prps-objnr ,
posid like prps-posid ,
psphi like prps-psphi ,
pspid like proj-pspid ,
end of type_prps.
data itab_prps type sorted table of type_prps
with unique key pspnr
with header line
initial size 30000.
data : bdc_tab type standard table of bdcdata
with header line .
*------------------------ OPTIONS DE SELECTION ------------------------*
selection-screen begin of block b1 with frame title text-t01.
parameters : p_nom(12) type c
default 'Z_'
obligatory ,
p_kokrs like proj-vkokr
obligatory,
p_bukrs like bsis-bukrs
obligatory .
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-t02.
select-options : s_pspnr for proj-pspnr ,
s_posid for prps-posid .
selection-screen end of block b2.
*-------------------------------- MAIN --------------------------------*
start-of-selection.
* Recherche des données.
perform p_recherche_donnees.
* Création du dossier batch-input
perform p_creation_dossier.
* Edition du compte rendu d'execution.
perform p_edition.
end-of-selection.
* Procédure P_RECHERCHE_DONNEES. *
* Recherche des données nécessaires au programme. *
form p_recherche_donnees.
types : begin of type_prhi ,
posnr like prhi-posnr ,
up like prhi-up ,
end of type_prhi.
data itab_prhi type sorted table of type_prhi
with non-unique key up
with header line
initial size 30000.
data : begin of itab_otp occurs 100 ,
pspnr like prps-pspnr , " OTP
pspn like proj-pspnr , " Projet
posid like prps-posid , " Texte OTP
objnr like prps-objnr , " Objet
end of itab_otp.
data : begin of itab_tmp_otp_1 occurs 100 ,
posnr like prhi-posnr ,
up like prhi-up ,
end of itab_tmp_otp_1.
data : begin of itab_tmp_otp_2 occurs 100 ,
pspnr like itab_otp-pspnr ,
end of itab_tmp_otp_2.
data : v_ligne(9) type n.
* Liste tout les elements d'OTP de niveau 2 pour les projets
* selectionnees.
select b~pspnr a~pspnr b~posid b~objnr
into table itab_otp
from proj as a
inner join prps as b
on b~psphi eq a~pspnr
where a~pspnr in s_pspnr
and a~profl eq '0000010'
and a~vkokr eq p_kokrs
and b~posid in s_posid
and b~stufe eq '2'
and b~pkokr eq p_kokrs.
* Tri de la table
sort itab_otp.
* Chargement de la pseudo PRHI
select posnr up
into corresponding fields of table itab_prhi
from prhi
client specified
where mandt eq sy-mandt
and up ne space.
* Extrait la liste des OTP a rechercher.
append lines of itab_otp to itab_tmp_otp_2.
* Tri
sort itab_tmp_otp_2.
* Créé la liste des OTPs dépendant des OTPs de niveaux 2.
loop at itab_tmp_otp_2.
loop at itab_prhi
where up = itab_tmp_otp_2-pspnr.
move : itab_prhi-posnr to itab_tmp_otp_1-posnr ,
itab_prhi-up to itab_tmp_otp_1-up ,
itab_prhi-posnr to itab_tmp_otp_2-pspnr .
append : itab_tmp_otp_1, itab_tmp_otp_2.
endloop.
delete itab_tmp_otp_2.
endloop.
* Recherche si plus petit niveau.
loop at itab_tmp_otp_1.
read table itab_prhi
with key up = itab_tmp_otp_1-posnr.
if sy-subrc eq space.
delete itab_tmp_otp_1.
endif.
endloop.
sort itab_tmp_otp_1 by posnr.
* Recherche de l'objet pour chacun des OTPs trouvés.
loop at itab_tmp_otp_1.
select single objnr posid psphi
into (itab_prps-objnr, itab_prps-posid, itab_prps-psphi)
from prps
where pspnr eq itab_tmp_otp_1-posnr.
if sy-subrc eq space.
move itab_tmp_otp_1-posnr to itab_prps-pspnr.
append itab_prps.
endif.
endloop.
* Recherche si les OTPs ont bien le statut Budget seul.
loop at itab_prps.
select single *
from jest
where objnr eq itab_prps-objnr
and stat eq 'E0002'
and inact eq ' '.
if sy-subrc ne space.
delete itab_prps.
endif.
endloop.
* Recherche texte projet.
loop at itab_prps.
select single pspid
into itab_prps-pspid
from proj
where pspnr eq itab_prps-psphi.
if sy-subrc eq space.
modify itab_prps.
endif.
endloop.
* Compte le nombre de ligne à traiter.
describe table itab_prps lines v_ligne.
if v_ligne eq space.
write : /1 'Aucune donnée à traiter.'.
stop.
endif.
endform. " P_RECHERCHE_DONNEES.
* Procédure P_CREATION_DOSSIER. *
* Création du dossier batch-input. *
form p_creation_dossier.
data : v_estat type j_estat.
* Recherche de la position du statut Budget seul.
select min( estat )
into v_estat
from tj30t
where stsma eq '00000001'
and spras eq sy-langu.
if v_estat ne 'E0002'.
write : /1 'Customizing statut modifié ! Programme inutilisable !'.
stop.
endif.
* Ouverture du dossier batch-input.
perform open_bdc using p_nom.
* Boucle sur la table des données.
loop at itab_prps.
* Ecran de saisie Projet / OTP
perform bdc_dynpro using 'SAPLCJWB'
'0100'.
perform bdc_field using 'BDC_OKCODE'
'=LETB'.
perform bdc_field using '*PROJ-PSPID'
itab_prps-pspid.
perform bdc_field using '*PRPS-POSID'
itab_prps-posid.
* Sélectionne la première ligne et demande les statuts utilisateurs.
perform bdc_dynpro using 'SAPLCJWB'
'0901'.
perform bdc_field using 'BDC_OKCODE'
'=STAT'.
perform bdc_field using 'RCJ_MARKL-MARK(01)'
'X'.
* Déselectionne la zone Budget/Seul
perform bdc_dynpro using 'SAPLBSVA'
'0300'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_field using 'J_STMAINT-ANWSO(01)'
* Enregistre et sort.
perform bdc_dynpro using 'SAPLCJWB'
'0901'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
* Enregistrement de la transaction.
perform insert_bdc using 'CJ02'.
endloop.
* Fermeture du dossier batch-input.
perform close_bdc.
endform. " P_CREATION_DOSSIER
* Procédure P_EDITION. *
* Edition du compte rendu d'éxecution. *
form p_edition.
write : /1 'Compte rendu de la création du dossier Batch-Input.'.
skip 2.
write : /1 'Dossier Batch-Input' ,
p_nom ,
'créé avec succés.'.
skip 4.
write : /1 'Liste des OTPs que le Batch-Input devrait modifier.'.
loop at itab_prps.
write : /5 itab_prps-posid.
endloop.
endform. " P_EDITION.
* Form OPEN_BDC *
* Ouverture du dossier Batch-Input. *
form open_bdc using v_nom_dossier.
call function 'BDC_OPEN_GROUP'
exporting
client = sy-mandt " Numéro de mandant
group = v_nom_dossier " Nom dossier batch
keep = 'X' " Code
user = sy-uname " Nom utilisateur
exceptions
client_invalid = 1
destination_invalid = 2
group_invalid = 3
group_is_locked = 4
holddate_invalid = 5
internal_error = 6
queue_error = 7
running = 8
system_lock_error = 9
user_invalid = 10
others = 11.
if sy-subrc ne 0.
write : /1 'Impossible de créer le dossier batch-input.' ,
/1 'Erreur :' , sy-subrc.
stop.
endif.
refresh bdc_tab.
clear bdc_tab.
exit.
endform. " OPEN_BDC
* Form CLOSE_BDC *
* Fermeture du dossier BTCI *
form close_bdc.
call function 'BDC_CLOSE_GROUP'
exceptions
not_open = 1
queue_error = 2
others = 3.
if sy-subrc ne 0.
write : /1 'Impossible de fermer le dossier batch-input.' ,
/1 'Erreur :' , sy-subrc.
endif.
endform. " CLOSE_BDC
* Form BDC_DYNPRO *
* Alimentation de la ligne d'entête de BDCTAB *
form bdc_dynpro using value(progname)
value(dynpronr).
* Efface la header-line.
clear bdc_tab.
* Insertion des valeurs.
bdc_tab-program = progname.
bdc_tab-dynpro = dynpronr.
bdc_tab-dynbegin = 'X'.
* Enregistrement des valeurs.
append bdc_tab.
endform. " BDC_DYNPRO
* Form BDC_FIELD *
* Traitement des enregistrements de la structure BDCTAB *
* --> FIELDNAME Nom du champ *
* --> FIELDVALUE Valeur du champ *
form bdc_field using value(fieldname) value(fieldvalue).
* Efface la header-line.
clear bdc_tab.
* Insertion des valeurs.
bdc_tab-fnam = fieldname.
bdc_tab-fval = fieldvalue.
* Enregistrement des valeurs.
append bdc_tab.
endform. " BDC_FIELD
* Form BDC_CURSOR *
* Positionnement du curseur sur un champ particulier *
form bdc_cursor using value(fieldname) value(fieldvalue).
* Efface la header-line.
clear bdc_tab.
* Insertion des valeurs.
bdc_tab-fnam = fieldname.
bdc_tab-fval = fieldvalue.
* Enregistrement des valeurs.
append bdc_tab.
endform. " BDC_CURSOR
* Form INSERT_BDC *
* Insertion dans le dossier BTCI *
* Attention : la transaction est codée en dur *
form insert_bdc using t_code.
call function 'BDC_INSERT'
exporting
tcode = t_code
tables
dynprotab = bdc_tab
exceptions
internal_error = 1
not_open = 2
queue_error = 3
tcode_invalid = 4
printing_invalid = 5
posting_invalid = 6
others = 7.
if sy-subrc ne 0.
write : /1 text-003 ,
/1 'Erreur :' , sy-subrc.
endif.
refresh bdc_tab.
clear bdc_tab.
endform. " INSERT_BDC
comment in french -
Hi Experts,
i have the customerrequirement for creating relationships via ELM e.g. importing accounts and relate them to imported contact persons. Is there a way to do this via ELM or using the trx bub1?
I am looking for a possibilty to create accounts in the role "prospects", but there is only a note (915015) for crm 4.0 .
Does this apply to 7.0 as well?
Kindly awaiting your helpful responses
HannesHi.
With ELM you are able to get this relationship created... just upload a csv file in which one of the columns is the customer name, and the other is the contact person name. The number off lines you have for the same customer name, the system creates a BP number for this customer, and a BP number for each line representing the contact person and assigns a relationship between them.
Just kindly do a simple teste in ELM functionality to check it.
Regards.
Susana Messias -
Views in create relationship screen
Hello !
I am trying to create a partnerlink that fetches data from SQL Server Table and view. Now the list comes for both and I select them then I define the primary key for the view.
When I try to create the relationship between both. It comes parent table and child table. in both lists the view is not coming.
is relations is restricted to tables or there is a way I can view it and create relation with it
Thanks,
BaraaHi
May I know which version of bpel process manager you are using.
It is not possible to create relationship over views in the 10.1.2.
You can try the same with Oracle BPEL process Manager 10.1.3
HTH!!! -
How to create an relation between two block
Oracle forms 6i
Hai All
I have created a form in that i have four button ADD, QUERY, SAVE ,EXIT.
I have two block named Leader and members.
Four fields in leader block namely name , codeno, deptcode, unitid.
When i pressed query button and the cursor goes to name field in leader when i enter the name of leader and click
enter i gives the codeno, deptcode and unitid of the leader_name.
so now i have created another block in tabular structure to bring the members in the same deptcode that belongs to Leader_name.
So pls tell me the steps how to create the relation between these two blocks.
when i enter the leader_name and gives enter it needs to bring the codeno, deptcode, unitid and
I also need to gives the members in that deptcode..
Thanks In Advance
Srikkanth.MIf it is possible to create relationship with one table No.
Or
I have created a pre-Query in the detali block and my code is
set_block_property ('block_name', default_where, 'deptcode = (select deptcode from emplmaster where name like :block_in_which_leader_name.leader_name_field');BTW no need of joining here it can be solve by set the block's where clause as u said in ur earlier post above. Just changing the little bit this statement and then try.
If numeric
set_block_property ('block_name', default_where, 'deptcode = '||:block_in_which_leader_name.leader_name_field);
Otherwire
set_block_property ('block_name', default_where, 'deptcode = '''||:block_in_which_leader_name.leader_name_field||'''');-Ammad -
Create DB link between my local system and remote system
Hi,
I need help to create DB link between my local system Database and remote system database both the database are oracle.
Please check the script which i have written is correct or not. Its giving me error sql command not ended properly
create public database link MERU_PROD_LOCAL_PROD
CONNECT TO SUDHIR
identified by sudhir123
using (DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 23.23.150.144)
(Port = 1521)
(CONNECT_DATA = (SERVICE_NAME = sudhir)
I am executing this command in my local system connecting to the remote database link. Please suggest me is this method correct.
Thanks
SudhirHi Hilton,
I fixed that issue. Now i am creating the DB link this ways please check is this proper or not
create or replace database link meru_prod_local_prod connect to portal identified by Oracle!123 using 'MERUPROD';
remote machine
User Name: portal
Password : Oracle!123
MERUPROD is the tnsora entry
It gives error as
Error starting at line 1 in command:
create or replace database link meru_prod_local_prod connect to portal identified by Oracle!123 using 'MERUPROD'
Error at Command Line:1 Column:18
Error report:
SQL Error: ORA-00922: missing or invalid option
00922. 00000 - "missing or invalid option"
*Cause:
*Action:
Maybe you are looking for
-
Maybe bug : ListCollectionView.addAll with a filter function
Hi, I think I found a bug in the flex SDK. I've checked in JIRA and it seems that it is not yet reported. This simple code raise a "out of bouds exception" (flex SDK 4.1) : var list:ArrayCollection = new ArrayCollection(); list.filterFunction = filte
-
How to send computer screen to sleep whilst watching Apple TV via airplay using Yosemite?
Does anybody know how to send computer screen to sleep whilst watching Apple TV via airplay using Yosemite? I've tried the hot key Shift + Control + Eject, but that sends the TV's screen as well as my iMac's screen to sleep at the same time. I don't
-
Help.... cant access object
public void getProduct(Product item) this.product = item; System.out.println(this.product); public boolean orderProduct(int productCode, int orderAmount) boolean validOrder = false; if(this.product == null) return validO
-
Replaced title name track with "check"
Last year, my MacBook internal drive crashed. I had backups with the earlier version of Backup by Apple. I installed a new drive, did a clean install, and retrieved all the files I needed from Backup. I went back now and then to find other files, and
-
Error installing Oracle9.2.0 on RedHat Enterprise3
Hi, I tried to install Oracle9.2.0 on Linux RedHat Enterprise3, when run ./runInstaller the oracle gui installer not completed it just stop at 0% progress and when look logs file at /oracle/oraInventory/logs/ it content: Java.lang.UnsatisfiedFieldErr