Skip to Content
author's profile photo Former Member
Former Member

Upload Routings - LSMW

Ok experts, really need you help with this one. I'm upload routings via direct input program RCPTRA02 in LSMW. I need to attach an object dependecy to the operation. I think that I have all the field values that I need, but it does not update when the routings is created. Everthing else is there except for the assigned object dependency. Anyone have any clue what I'm missing here? I implemented a note that I thought would help, but it didn't. Really need some help with this one....

Here is a look at my LSMW structure that I'm using for the assignment of dependencies.



RCUOB1_DS                      Assignment of dependencies in DIRECT INPUT (datasets)                                                                                
5  Fields                                                                                
ACTTYP                       Processing type for objects to be imported                                               
                            Rule :   Constant                                                                                
Coding:  RCUOB1_DS-ACTTYP = 'H'.                                                                  
        OBJ                          Data objects of a task list                                                                                
Rule :   Constant                                                                                
Coding:  RCUOB1_DS-OBJ = 'O'.                                                                     
        PLNAL                        Group counter                                                                                
Rule :   Constant                                                                                
Coding:  RCUOB1_DS-PLNAL = '01'.                                                                  
        PLNFL                        Sequence                                                                                
Rule :   Constant                                                                                
Coding:  RCUOB1_DS-PLNFL = '000000'.                                                              
        VORNR                        Operation/Activity Number                                                                                
Source:  ROUTINGSD-OPERATION (operation)                                                                                
Rule :   Transfer (MOVE)                                                                                
Coding:  RCUOB1_DS-VORNR = ROUTINGSD-OPERATION.                                                   
        VORKN                        Node number (batch input)                                                                
        UVORN                        Operation/Activity Number                                                                                
Rule :   Constant                                                                                
Coding:  RCUOB1_DS-UVORN = ''.                                                                    
        UVOKN                        Node number (batch input)                                                                
        PSNFH                        Item number of the production resource/tool (batch input)                                
        PZLFH                        Counter for production resource/tool items (batch input)                                 
        KN_AL_FROM                   Character field length = 10                                                              
        KN_AL_TO                     Character field length = 10                                                                                
5  RCUOB2_DS                      API structure for dependency assignments (for datasets)                                                                                
5  Fields                                                                                
KNNAM                        Name of dependency                                                                                
Source:  ROUTINGSD-OBJDEP (Object Dependency)                                                                                
Rule :   Transfer (MOVE)                                                                                
Coding:  RCUOB2_DS-KNNAM = ROUTINGSD-OBJDEP.                                                  
            XKNNAM                       Name of dependency                                                                                
Source:  ROUTINGSD-OBJDEP (Object Dependency)                                                                                
Rule :   Transfer (MOVE)                                                                                
Coding:  RCUOB2_DS-XKNNAM = ROUTINGSD-OBJDEP.                                                 
            KNSRT                        Counter for sorting object assignments (Batch-Input)                                 
            LKENZ                        Deletion indicator                                                                                

Regards,

Rich Heilman

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2005 at 04:14 PM

    Hi Rich - which note did you put in?

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 29, 2005 at 04:32 PM

    Hi Rich!

    To get a starting, I would like to know two other information:

    Does your execution of the direct input stop by in FM CP_BD_EDIT_KNOWLEDGE?

    When you take one of your import data and test FM CUKD_API_DEP_READ, is this successfull?

    If ...edit_knowledge isn't called, something with assignments / customizing is wrong. In case of wrong customizing, also manual maintenance would run into problems, but it might also be a problem with specific masterdata of this route / wrong (not enough fields field) calling of the DI.

    In case api_dep_read won't work - maybe some global data is missing, then sorry for this test, but also wrong import data might be identified this way.

    But of course this is difficult to check 'offline'. I hope my comments are of any help...

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

    • Ok, I got it. I knew it had to be something simple. Here I need to have a kind of couter(from and to)

      <b> 
      KN_AL_FROM                   Character field length = 10                                       
                         Coding:  * Target field: RCUOB1_DS-KN_AL_FROM Character field length = 10  
                                   RCUOB1_DS-KN_AL_FROM = sy-tabix.                                  
      KN_AL_TO                     Character field length = 10                                       
                          Coding:  RCUOB1_DS-KN_AL_TO = sy-tabix. </b>                                   
      
      
      

      I set these counters to sy-tabix, and now all is well. Works very good now. I've tested with mulitple operations per routing and mulitple routings. No problems. Thanks for the replies anyway.

      It was note 526351 .

      Regards,

      Rich Heilman

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.