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

LSMW Skip_record issue

Hi All,

I am using direct input method, program name : RM06IBI0 for Info records. My question is If I need to skip record based on the first value in my flat file, do I need to write the SKIP_RECORD statement in all the structures used, or writing it in the first structure of "Maintain Field Mapping and Conversion Rules" step will be sufficient.

And also, does it matter if I upload flat file from Local file or is it better to upload it from Application server.

I have searched many threads, but couldn't get the appropriate solution.

Thanks.

Lahari

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 20, 2012 at 03:37 AM

    Hi ,

    you can use SKIP_TRASACTION or SKIP_RECORD(which is useful when you have header+items ).

    better option is : - first you load file from PC .anyhow system write files into app serverbased on the logical path/file u have given at that step.

    regards

    Prabhu

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      if validation is failed at header level ..then you need to skip whole transaction by using skip_transaction.

      if validation is failed at item level and if you wanna skip only that item the use skip_record or if you dont want to create docment at all the use skip_transaction...

      you can call skip commands anywhere in the structures....

      
      
      select single infnr
               into lv_infnr
               from eine
              where infnr = bein0-infnr
                and ekorg = pir1-ekorg
                and werks = bein0-werks.
      if sy-subrc ne 0.
        write: / pir1-matnr, pir1-lifnr, 'PIR not found in POrg/Plant',
                 pir1-ekorg, pir1-werks.
        g_skip_transaction = yes.=>or skip_transaction......
      endif.
      
      

      regards

      Prabhu

  • Posted on Jan 20, 2012 at 03:40 AM

    you can use SKIP_TRANSACTION in event . __BEGIN_OF_TRANSACTION__

    SKIP_TRANSACTION.
    

    Add a comment
    10|10000 characters needed characters exceeded

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.