Skip to Content
avatar image
Former Member

How to sort my batch number that has my Julian number combined together.

Currently my program is using a batch number that's combines with my Julian date to pull data. Its pulling data based on the newest year but how do I set it that it pulls it using the oldest year listed.

And another issue is how do I tell a program to ignore an error message.

So the program runs and its set to a specific plant and that plant doesn't have what it needs to create but it sends out an error and stops working. (that's what its doing now) but I want it to still send me the error if it can not be created at the plant but moves on to the next line to create that from a different plant.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 21, 2018 at 02:01 PM


    Although this is not a real question - I'll try to answer this:

    I assume we are talking about ABAP!?

    If there is no other way just split all you batch names into different ITab fields and sort as according to your requirements.

    How do you create your plant?

    What does "sends out an erro" mean? Do you get an email, a message, a dump,...?

    With CALL TRANSACTION you have the option of MESSAGES INTO itab.

    With BAPIs you have RETURN Table/Structure.

    Maybe you have to catch some exception? Standard exceptions or exception classes.



    Add comment
    10|10000 characters needed characters exceeded

    • Hi

      Sorry - but is this your first report?

      Just create a new local structure and itab with includes the structure of your it_items (CHARG?) and the needed date field(s)

      Fill the new itab from it_items and split the charg field into the date fields.

      You can now sort your new itab and work with this instead of it_items.