Application Development and Automation 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 only

TOA_DARA fields empty when Archiving SD invoices

marcelogb
Participant
0 Likes
1,566

Hi gurus,

We have a problem when archiving SD invoices. In some cases, when archiving, are ocurring errors that shows on SM58.

The error is always:

<<

ARCHIV_CREATE_TABLE SAP_AL_OUT 21.06.2011 18:22:23 SAP ArchiveLink: tipo objeto no asign.a ningún arc hivo (Customizing)

>>

And it's generated when saving the invoice from transaction VF01

We thought the problem could be that the object type was not maintained on the system but that's not the case, the problem is that the type is coming empty.

Watching inside the error, these fields are empty:

AR_OBJECT (should be SDINVOICE)

SAP_OBJECT (should be VBRK)

OBJECT_ID (should have the invoice number)

We were thinking about this TOA_DARA structure determination, but we could not see where it's been generating.

Do you know how is it possible that "sometimes" these fields go empty when processing sd invoices messages?

Thanks in advance

Hi gurus,

We have a problem when archiving SD invoices. In some cases, when archiving, are ocurring errors that shows on SM58.

The error is always:

<<

ARCHIV_CREATE_TABLE SAP_AL_OUT 21.06.2011 18:22:23 SAP ArchiveLink: tipo objeto no asign.a ningún arc hivo (Customizing)

>>

And it's generated when saving the invoice from transaction VF01

We thought the problem could be that the object type was not maintained on the system but that's not the case, the problem is that the type is coming empty.

Watching inside the error, these fields are empty:

AR_OBJECT (should be SDINVOICE)

SAP_OBJECT (should be VBRK)

OBJECT_ID (should have the invoice number)

We were thinking about this TOA_DARA structure determination, but we could not see where it's been generating.

Do you know how is it possible that "sometimes" these fields go empty when processing sd invoices messages?

Thanks in advance

6 REPLIES 6
Read only

markus_karsch5
Explorer
0 Likes
1,215

Hi John,

same problem here. Did you find a solution or have you opened a SAP message?

Regards

Markus

Read only

0 Likes
1,215

Hi Marcelo/Markus,

Me too facing the same problem. Can you please let me know if you got the solution.

Regards,

Sudheer T

Read only

0 Likes
1,215

Hi Sudheer,

In my case, I saved the TOA_DARA params into an aux var just before calling the OPEN_FORM. Then, I checked the params before calling the function which archives.


clear toa_dara_aux.

toa_dara_aux = toa_dara.

CALL FUNCTION 'OPEN FORM'...

...

...

...

if toa_dara is initial.

     toa_dara = toa_dara_aux.

endif.

CALL FUNCTION 'CONVERT_OTF_AND_ARCHIVE'

     EXPORTING

          arc_p = arc_params

          arc_i = toa_dara

          format = 'PDF'

     TABLES

          otf = otf.

Regards

Read only

0 Likes
1,215

Hello Marcelo Garcia,

I am facing the same error, TOA_DARA is not filled in my case, invoice is not archived.

Could you please help me out on this issue.

CONVERT_OTF_AND_ARCHIVE is already a part of CLOSE_FORM function module. it's called already.

how did you resolved it?

are you calling the function module CONVERT_OTF_AND_ARCHIVE once again after the close_form?

please help me.

Read only

0 Likes
1,215

Hello Munvar,

I call it after the CLOSE_FORM function module

Hope it helps

Regards

Read only

0 Likes
1,215

Hello Garcia,

could you please detail the code,

please let me know about how did you get the data to TOA_DARA_AUX structure??

Thanks,

Munvar Basha.