|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
![]() ![]() Morgan BourgeoisInscription : août 2003 Messages : 1 730 ![]() |
Bonjour,
j'essaie d'utiliser la BAPI_NEWORK_MAINTAIN pour créer des liens entre des activités d'un même network. Ca marche pour tous les types de relation lorsque je suis en unitée de durée de type SEMAINE, JOUR etc. La ou ca coince, c'est lorsque j'essaie d'exprimer les délais en pourcentage. Par exemple : lien entre l'activité 10 et l'activité 20 de type FS (Finish Start) avec le successeur qui doit débuter 10 % avant la fin du prédécesseur. La, ca coince. J'ai essayé ceci pour la table i_relation de type BAPI_NETWORK_RELATION : - remplir % dans DURATION_RELATION_UNIT - remplir P1 (iso code de %) dans DURATION_RELATION_UNIT_ISO - remplir PERCENT_OF_SUC_PR en lieu et place de DURATION_RELATION Dans tous les cas je me fais jeter comme un malpropre... qui aurait une idée ?
__________________
---------------------------------------------------- Consultant technico-fonctionnel SAP logistique - Mon site sur developpez --------------------------------------------------- Anakin Skywalker turn to the Dark Side after his failed attempt to upgrade R/2-D2 to R/3-D2. |
|
|
00
|
|
|
#2 |
|
Membre du Club
![]() Inscription : mars 2007 Messages : 62 ![]() |
Salut.
Que dit le message d'erreur? |
|
|
00
|
|
|
#3 |
![]() ![]() Morgan BourgeoisInscription : août 2003 Messages : 1 730 ![]() |
Que le type % n'est pas une unité valide (malgré le fait qu'il soit issu de la bonne routine de conversion qui marche pour les valeurs comme WEEKS ou DAY)
__________________
---------------------------------------------------- Consultant technico-fonctionnel SAP logistique - Mon site sur developpez --------------------------------------------------- Anakin Skywalker turn to the Dark Side after his failed attempt to upgrade R/2-D2 to R/3-D2. |
|
|
00
|
|
|
#4 |
|
Membre du Club
![]() Inscription : mars 2007 Messages : 62 ![]() |
Suivant la doc il faut renseigner PERCENT_OF_SUC_PR et du coup DURATION_KEY. Il dit quoi quand tu renseignes simplement ces deux champs et que tu laisse tomber les autres?
|
|
|
00
|
|
|
#5 | |
![]() ![]() Morgan BourgeoisInscription : août 2003 Messages : 1 730 ![]() |
Citation:
Tu l'as ou cette doc ? Parceque moi quand je vais dans la doc de la BAPI il me dit rien à ce propos :'(
__________________
---------------------------------------------------- Consultant technico-fonctionnel SAP logistique - Mon site sur developpez --------------------------------------------------- Anakin Skywalker turn to the Dark Side after his failed attempt to upgrade R/2-D2 to R/3-D2. |
|
|
|
00
|
|
|
#6 |
|
Membre du Club
![]() Inscription : mars 2007 Messages : 62 ![]() |
Transaction BAPI -> Alphabetical -> Network -> Maintain -> IRelation onglet Documentation
|
|
|
00
|
|
|
#7 | |
![]() ![]() Morgan BourgeoisInscription : août 2003 Messages : 1 730 ![]() |
Citation:
Bon hélas cette doc est la meme que j'ai quand je vais dans le bouton documentation du FM en SE37 et je n'ai rien de mon côté au sujet des poucentage ----------------------------------------------------------- EDIT : je reviens, je vais m'acheter une paire de lunettes et je suis de retour Maintenant je pense avoir compris d'ou venait le probleme : j'avais essayé de mettre une activité en pourcentage via la CJ20N, ensuite, j'ai utilisé la BAPI_NETWORK_GETDAIL pour vérifier ce que SAP mettait dans ce cas la et que de mon côté j'avais oublié. Je ne voyais rien du tout et pour cause, la valeur de duration_key pour une durée 'ABSOLUTE' ... c'est un espace bref merci beaucoup, je vais tester ca et je viens conclure le post si ca tourne
__________________
---------------------------------------------------- Consultant technico-fonctionnel SAP logistique - Mon site sur developpez --------------------------------------------------- Anakin Skywalker turn to the Dark Side after his failed attempt to upgrade R/2-D2 to R/3-D2. |
|
|
|
00
|
|
|
#8 |
|
Membre du Club
![]() Inscription : mars 2007 Messages : 62 ![]() |
Tu es bien descendu au niveau de la structure?
sinon voila la doc Import parameters IRelation Relationships Description Changes in relationships in a network are transfered in this structure. For each field that should be changed, enter a character in the corresponding field of the I_NETWORK_UPDATE structure. For information about the meaning of individual parameters, refer to the relevant data element documemtation. NETWORK_PREDECESSOR Order number/Network number ACTIVITY_PREDECESSOR Activity no. Network and Standard network NETWORK_SUCCESSOR Order number/Network number ACTIVITY_SUCCESSOR Activity no. Network and Standard network RELATION_TYPE Relationship type DURATION_RELATION_UNIT Time interval unit relationship DURATION_RELATION Time interval relationship DURATION_RELATION_UNIT_ISO ISO-Code f. unit of measurement FACTORY_CALENDAR Factory calendar ID PERCENT_OF_SUC_PR Time interval between predessor and successsor as percentage DURATION_KEY Key for interpreting time interval relationship WORK_CNTR Work center Parameter fields: NETWORK_PREDECESSOR Order/Network number ACTIVITY_PREDECESSOR Activity number in network and standard network NETWORK_SUCCESSOR Order/Network number ACTIVITY_SUCCESSOR Activity number in network and standard network RELATION_TYPE Type of Relationship (BOR 2002) DURATION_RELATION_UNIT Unit for the time interval between relationships DURATION_RELATION Time interval between relationships DURATION_RELATION_UNIT_ISO ISO code for unit of measurement FACTORY_CALENDAR Factory Calendar PERCENT_OF_SUC_PR % used to calc. time interval between predecessor/successor DURATION_KEY Key for defining time intervals in a relationship WORK_CNTR Work center PLANT Plant Field NETWORK_PREDECESSOR Order/Network number Definition Key which uniquely identifies an order within a client. (Back to field overview) Field ACTIVITY_PREDECESSOR Activity number in network and standard network No further documentation available in the logon language (Back to field overview) Field NETWORK_SUCCESSOR Order/Network number Definition Key which uniquely identifies an order within a client. (Back to field overview) Field ACTIVITY_SUCCESSOR Activity number in network and standard network No further documentation available in the logon language (Back to field overview) Field RELATION_TYPE Type of Relationship (BOR 2002) Use The system differentiates between the various types of relationships: Finish-start relationships Start-start relationships Finish-finish relationships Start-finish relationships (Back to field overview) Field DURATION_RELATION_UNIT Unit for the time interval between relationships No further documentation available in the logon language (Back to field overview) Field DURATION_RELATION Time interval between relationships Definition Value for time in the relationship. Procedure You can maintain the time interval as: an absolute a percent based on the duration of the predecessor a percent based on the duration of the successor The type of calculation used for the time interval is determined via the field time interval key in the relationship detail screen. (Back to field overview) Field DURATION_RELATION_UNIT_ISO ISO code for unit of measurement Definition ISO code for measurement units. An ISO code can be assigned to several internal measurement units. Use The ISO code is important for EDI. It is used to convert the internal SAP measurement units into standard measurement units. Data exchange via EDI requires internal measurement units to be converted into standard measurement units. A list of the current internationally agreed ISO codes can be ordered from the UN commission responsible (WP.4 Trade Facilitation Recommendations, Recommendation 20): UN Economic Commission for Europe Information Office Palais des Nations 1211 Geneva Switzerland phone: +4122 917 2893 fax: +4122 917 0036 e-mail: info.ece@unece.org or it can be consulted directly via internet: http://www.unece.org/trade/facil/tf_home.htm For additional information see OSS note 69063. (Back to field overview) Field FACTORY_CALENDAR Factory Calendar Use A factory calendar distinguishes between working days and non-working days. Dependencies If you have entered an exception rule for non-working days and have selected factory calendar, you must enter a factory calendar that is relevant to your company. (Back to field overview) Field PERCENT_OF_SUC_PR % used to calc. time interval between predecessor/successor Definition Percentage used to calculate the time interval for the relationship. This value can be based on: the duration of the predecessor the duration of the successor Dependencies If you enter a percentage for the time interval, you must also maintain the field Time Interval Key. (Back to field overview) Field DURATION_KEY Key for defining time intervals in a relationship Definition With this key you define how you want the system to determine the time interval in a relationship: as an absolute value as a percent based on the duration of the predecessor as a percent based on the duration of the successor Dependencies If you want to maintain the time interval as a percentage, you must maintain the field Time Interval Percent. (Back to field overview) Field WORK_CNTR Work center Definition Key identifying the work center. (Back to field overview) Field PLANT Plant Definition Key uniquely identifying a plant. (Back to field overview) |
|
|
00
|
|
|
#9 |
![]() ![]() Morgan BourgeoisInscription : août 2003 Messages : 1 730 ![]() |
Merci : cf Edit d emon post juste au dessus, on s'est croisés
__________________
---------------------------------------------------- Consultant technico-fonctionnel SAP logistique - Mon site sur developpez --------------------------------------------------- Anakin Skywalker turn to the Dark Side after his failed attempt to upgrade R/2-D2 to R/3-D2. |
|
|
00
|
|
|
#10 |
![]() ![]() Morgan BourgeoisInscription : août 2003 Messages : 1 730 ![]() |
MOralité de l'histoire : je devais effectivement remplir le champ RELATION_KEY
seulement il m'était bien difficile de voir la différence entre quand c'est rempli et quand ca ne l'est pas ... la valeur a renseigner était un espace :'(
__________________
---------------------------------------------------- Consultant technico-fonctionnel SAP logistique - Mon site sur developpez --------------------------------------------------- Anakin Skywalker turn to the Dark Side after his failed attempt to upgrade R/2-D2 to R/3-D2. |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com