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: 

Data records were not saved as no selection date was available

Former Member
0 Kudos
1,624

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

RaymondGiuseppi
Active Contributor
0 Kudos
1,473

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

12 REPLIES 12

RaymondGiuseppi
Active Contributor
0 Kudos
1,474

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
1,473

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
1,473

(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
1,473

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

0 Kudos
1,473

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
1,473

Hi,

Solved the problem thanks.

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

Former Member
0 Kudos
1,473

solved

jaynarayans
Explorer
0 Kudos
1,444

Hi Raymond

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

 

 

 

1,436

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
1,375

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.

 

 

1,368

(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

0 Kudos
233

Hi,

I have added the fields VALID_FROM, VALID_TO  in the DANGEROUSGOODDATA, DANGEROUSGOODPACK, and DANGEROUSGOODRANGE parameters, but I still receive the same error message: 'Data records were not saved as no selection date was available'. Are there any other parameters I should check or any specific considerations to ensure the BAPI works correctly?

Thank you for your support