10-02-2009 6:47 AM
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
10-02-2009 7:08 AM
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
10-02-2009 7:08 AM
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
10-02-2009 7:31 AM
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?
10-02-2009 7:50 AM
(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
10-02-2009 10:03 AM
Thx for the answer but i can not implement the note.Can not be implemented.
10-02-2009 11:50 AM
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
10-06-2009 3:22 AM
Hi,
Solved the problem thanks.
I added the VALTO field to range table and now it works.
10-06-2009 3:22 AM
03-19-2024 1:36 PM
Hi Raymond
In Lsmw I am using the Business object BUS1078 and getting the same error as above Apprecite your help on this
03-19-2024 2:05 PM
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.')
03-22-2024 8:18 AM
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.
03-22-2024 8:36 AM
(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