Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Read AUSP from an archived Sales Order

Peter_Inotai
Active Contributor
0 Kudos

Hi,

How can I read the content of AUSP belongs to an archived sales order?

    CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' 
         EXPORTING 
              archive_handle          = im_handle 
         IMPORTING 
              record                  = lv_data 
              record_structure        = lv_structure 
         EXCEPTIONS 
              end_of_object           = 1 
              internal_error          = 2 
              wrong_access_to_archive = 3 
              OTHERS                  = 4. 

After this call I checked lv_structure in the loop, but there was no AUSP

Any idea?

Thanks,

Peter

5 REPLIES 5

Former Member
0 Kudos

Hello Peter,

I'm not very clear with your question. AUSP, says SE11, contains the characteristic vales. What exactly are you trying to read from the Archives? Is there an Archiving Object for the information you need (I haven't been able to find one)?

As I'm not an expert on this, I would like to know how the table AUSP is related to Sales Order. I imagine the <i>class type</i> has got something to with it, is that so?

Further, the example programs RSARCH* would help you understand how the ARCHIVE* Function Modules are used in common Archiving operations. Of particular interest may be the programs RSARCH03 and RSARCH05.

Please do let us know how it goes..

Regards,

Anand Mandalika.

0 Kudos

Hi Mandalika,

Thanks for your help.

1) Something wrong/changed with the reward program, there is no icon in your reply subject anymore:-(

I'll try to reward your answer, if it works again...so don't worry:-)))

2) Checked RSARCH03 and RSARCH05....not really AUSP related:-(

3) Try to rephrase my question:

Sales Order is archived with the related objects/tables. One of this table is AUSP (yes, it's for classification in Sales order for characteristic values).

You can diplay it via transaction SARI, Archive Explorer .

Arch object SD_VBAK. And select a Sales order, which contains classification (old way). Select technical view. You will find the list of tables, which belong to this Sales order. One of them is AUSP.

So, I'd like to get this content somehow.

4) I do know FMs ARCHIVE_READ_OBJECT, ARCHIVE_GET_NEXT_RECORD, ARCHIVE_CLOSE_FILE and IBASE_ARCHIVE_GET_TABLE.

However no idea how to get AUSP.

Just found CLASSIFY_READ_ARCHIVE_OBJECT, but now idea how to use...and if it can be used in case of Sales Orders.

5) In transaction AOBJ for archiving object SD_VBAK archiving class CLASSIFY is assigned in our system.

In transaction DB15 if you check tables in obect SD_VBAK, AUSP table is there (at least in our system).

Peter

0 Kudos

If anybody is interested or will be in the same situation in the future (and try to search in the forum:-)

I debugged transaction SARI, and the AUSP related data is read in program SAPLKASH / LKASHF01 in form CLASS_DATA_READ. The FM is dynamic, but the data is provided by FM CU_CONFIG_ARCHIVE_GET_TABLE when L_TABLE is AUSP.

Peter

0 Kudos

Thank you Peter, I was still trying to search for some FMs / Classes that would help read the data

But it was nice spending some time on this topic. Hope to have more such interesting ones...

Regards,

Anand Mandalika.

0 Kudos

Wow...thanks that you was busy to help me.

It's funny...until the problem was not solved I would have used the word "annoying" instead of "interesting"...but now it solved, it's not annoying anymore:-)

Regards,

Peter