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: 

Data records were not saved as no selection date was available

Former Member
0 Kudos

Hi,

When i am using bapi BAPI_DANGEROUSGOOD_SAVREPMUL

i got error "Data records were not saved as no selection date was available" but in the parameters i couldnt find this parameter.

How can i solve this issue?

Thx

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Did you fill VALID_FROM and VALID_TO in DANGEROUSGOODDATA, DANGEROUSGOODPACK and/or DANGEROUSGOODRANGE parameters.

if you filled all the required fields, could you give the application area and number of the message ?

Regards,

Raymond

11 REPLIES 11

raymond_giuseppi
Active Contributor
0 Kudos

Did you fill VALID_FROM and VALID_TO in DANGEROUSGOODDATA, DANGEROUSGOODPACK and/or DANGEROUSGOODRANGE parameters.

if you filled all the required fields, could you give the application area and number of the message ?

Regards,

Raymond

0 Kudos

Yes i filled all the mandatory fields.I think this problem is not about this BAPI.Because when i press F8 or debugging button in SE37,i see that aplicaiton log internal table is already filled with this message .Message no. DGA311(Data records were not saved as no selection date was available).

What do u mean by application area?

0 Kudos

(application area = message class)

Take a look at OSS [Note 891099 - Dangerous goods master IDOCs not posted / application log|https://service.sap.com/sap/support/notes/891099], SAP had the same problem than you (when posting IDOCS with this BAPI) and their corrections may help you if they don't solve the problem.

Regards,

Raymond

0 Kudos

Thx for the answer but i can not implement the note.Can not be implemented.

0 Kudos

Don't implement it, just read the corrections that SAP add to successfully call the BAPI, they added some ranges, try to adapt their correction in your program.

Look for the APPEND dangerousgoodrange. coding in the correction intructions.

Regards,

Raymond

0 Kudos

Hi,

Solved the problem thanks.

I added the VALTO field to range table and now it works.

Former Member
0 Kudos

solved

jaynarayans
Explorer
0 Kudos

Hi Raymond

In Lsmw I am using the Business object BUS1078 and getting the same error as above  Apprecite your help on this

 

 

 

Are you using method SaveReplicaMultiple?

Then, read documentation of the parameters I mentionned fifteen years ago.

For example: table parameter DANGEROUSGOODRANGE documentation ('The material, regulation, valid-from and valid-to fields must be filed.') 

0 Kudos

Thanks Raymond for the quick response. Yes it works. I missed the regulation field.

But when it creates DG , it created with Change Number . Can we Create DG without Change Number ? 

Valid from date is also picked up wrongly. Please suggest.

 

 

(Honestly I don't remember, don't wotk on this for 10 years) You could check (debug) call of HAZMAT_AENNR_GENERATE also insure start date is today. Else post a new question with tag such as SAP Environment, Health, and Safety Management