Skip to Content
0

UJD_PACKAGE LINK issue to run package link from Backend

Dec 15, 2016 at 11:25 AM

148

avatar image

Hi Folks ,

1.I am trying to execute package link from backend and for this i am using the method RUN_PACKAGE_LINK , which has input parameter as it_configuration , having one field of type uj_string , in which i am passing the xml code for which the package should run .

But it is not working anyway .

2.IF some one can help me with the answer prompt also, i am trying to run the package link to load data .

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Vadim Kalinin Dec 15, 2016 at 12:20 PM
0

Can you explain exactly what you are doing? Have you looked at the code of UJD_TEST_PACKAGE_LINK?

P.S. Please read also my answers here:

https://archive.sap.com/discussions/thread/3878535

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks for the reply Vadim .

Requirement - From BADI how to run that program actually i am not aware of that ,and also donot know what should be the answer prompt.

Requirement - In the package link while running whenever i check the package details (date to ) it is always get changed and is not as required . So I have written a abap code in the custom Badi and reading the data from tables - ujd_link and rshiedir so that i donot need to correct date every time .and this badi will be triggered from another package .

I have read the xml code from content field and changed the hierarchy ids for which we need to run the package according to new content (with updated hier id).For running the package link i am using the run_package_link method .In the method i have all values except one it_configuration. in it_Configuration it has one fiedl type UJ_STRING same as the field (content) having the xml code , so i have passed the xml code to that field (path) in it_configuration table .

When i executed it is giving one execption - "An exception with the type CX_XSLT_RUNTIME_ERROR occurred, but was neither handled locally, nor declared in a RAISING clause No valid source context supplied"(It appeared when i checked the status of the package in the view status ->package link.

Please advice if any solution exists for this .

Thanks in advance.

0

Sorry but copy/paste the same text looks strange and not professional. Please read the discussion till the end!

0
Priyanka Jagtap Dec 15, 2016 at 12:21 PM
0

Hi Raja,

Why not run the program UJD_TEST_PACKAGE_LINK to run the package link from BW backend????

JP

Show 6 Share
10 |10000 characters needed characters left characters exceeded

Hi JP ,

Thanks for the reply.

From BADI how to run that program actually i am not aware of that ,and also donot know what should be the answer prompt.

Requirement - In the package link while running whenever i check the package details (date to ) it is always get changed and is not as required . So I have written a abap code in the custom Badi and reading the data from tables - ujd_link and rshiedir so that i donot need to correct date every time .and this badi will be triggered from another package .

I have read the xml code from content field and changed the hierarchy ids for which we need to run the package according to new content (with updated hier id).For running the package link i am using the run_package_link method .In the method i have all values except one it_configuration. in it_Configuration it has one fiedl type UJ_STRING same as the field (content) having the xml code , so i have passed the xml code to that field (path) in it_configuration table .

When i executed it is giving one execption - "An exception with the type CX_XSLT_RUNTIME_ERROR occurred, but was neither handled locally, nor declared in a RAISING clause No valid source context supplied"(It appeared when i checked the status of the package in the view status ->package link.

Please advice for the solution .

Thanks in advance.

0

Looks like you didn't read my answer! Read the link I have provided - the selection is discussed here...

1

Can you explain which Date to gets changed in package logs??? And which hier ID's are you changing in the XML??

0

xml is not required if you directly program using the method RUN_PACKAGE_LINK!

0

Sory for the half information By Date to i mean - valid till ->package link ->package ->set prompts there we get three tabs and there in one of those we can find it with hierarchy name , version and date . so here the dates gets changed i hope i could explain whole scenario.

Is it possible to run the program from BADI ??

0

For sure it's possible if you read the link I provided! At the end there is a sample code to pass time periods to the package link!

You can test yourself (extract from my answer):

"In general you have to understand the structure of IT_CONFIGURATION passed to RUN_PACKAGE_LINK inside program UJD_TEST_PACKAGE_LINK.

I have set an external breakpoint in the beginning of RUN_PACKAGE_LINK and launched the package link (I set prompts after launching package link!). My test package link has 2 steps:..."

1